1
Zaurus - pdaXrom / Wpa-supplicant Configuration
« on: December 06, 2006, 03:35:48 am »
Hi folks,
in the past I used WEP but since my new wireless router supports WPA-PSK I thought it is a good idea to use it.
So I installed hostapd and wpa-supplicant and changed the default wpa_supplicant.conf to support my wlan.
It worked almost right out of the box without problems (There is a bug in /etc/rc.d/init.d/wpa_supplicant, the "--" has to be removed).
I wrote a small script to connect, but I have not yet figured out how to give my zaurus a name. The iwconfig after "Setting Wireless" shows no effect. Here is my script:
I use this script to connect. To disconnect I just eject the card.
How do you use wpa-supplicant? Any suggestions for improvements?
Cheers, Jan
in the past I used WEP but since my new wireless router supports WPA-PSK I thought it is a good idea to use it.
So I installed hostapd and wpa-supplicant and changed the default wpa_supplicant.conf to support my wlan.
It worked almost right out of the box without problems (There is a bug in /etc/rc.d/init.d/wpa_supplicant, the "--" has to be removed).
I wrote a small script to connect, but I have not yet figured out how to give my zaurus a name. The iwconfig after "Setting Wireless" shows no effect. Here is my script:
Code: [Select]
#!/bin/sh
# Wireless lan settings script
echo "Resetting wireless"
ifconfig wlan0 down
dhcpcd -k
killall dhcpcd
rm /var/run/dhcpcd-wlan0.pid 2> /dev/null
#rm /var/run/wpa_supplicant/wlan0 2> /dev/null
sleep 1
echo -n "Setting wireless ...."
iwconfig wlan0 nick Zaurus rate auto power 1
sleep 1
echo "Turning up network"
/etc/rc.d/init.d/wpa_supplicant restart
dhcpcd wlan0
sleep 2
ifconfig wlan0
echo "done"
I use this script to connect. To disconnect I just eject the card.
How do you use wpa-supplicant? Any suggestions for improvements?
Cheers, Jan