uname -a: Linux OpenWrt 2.6.28.10 #1 Thu Oct 22 23:46:40 CEST 2009 armv5teb GNU/Linux
I am trying to configure my NSLU2 to use a acer wlan 11g usb dongle which uses the zd1211rw driver.
1. using wpa_supplicant
I have compiled trunk rev 18124 and the wireless dongle works fine in sta mode using wpasupplicant, with /etc/config/wireless setup with
config wifi-device "wlan0"
option type "mac80211"
option channel auto
config wifi-iface
option device wlan0
# option network lan
option mode "sta"
option ssid r-stue
option encryption none
Problem 1 (using wpasupplicant):
The wlan connection is working fine using /etc/wpa_supplicant to specify the psk2 key and so on, but it seems that I when I disconnect eth0 I also loose the wlan connection, and also when adding an init script of:
start() {
echo start
wpa_supplicant -Dwext -iwlan0 -B -c/etc/wpa_supplicant.conf
sleep 15
udhcpc -i wlan0
}
and asking it to start at boot with /etc/init.d/wpa_supplicant enable it will only start if also eth0 is connected at bootup.
Does anybody know how to configure the openwrt to only use wpasupplicant as a sole network connection ?
2. using /etc/config/wireless without wpa_supplicant
When configuring the wireless setup without using wpa_supplicant manually, with a /etc/config/wireless of:
config wifi-device "wlan0"
option type "mac80211"
option channel 6
option macaddr 00:11:E2:04:98:AB
config wifi-iface
option device "wlan0"
# option network lan
option mode "sta"
option ssid "r-stue"
option encryption "psk2"
option passphrase 1
option key "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
the wlan0 interface is not brougth up after rebooting, and when restarting the network manually with /etc/init.d/network restart, I get the following error message:
PHY for wifi device wlan0 not found
PHY for wifi device wlan0 not found
and "cat /sys/class/ieee80211/phy0/macaddress"
gives the following mac address (which seems very strange)
c12e00c0
If I change the wireless config macaddr line to read " option macaddr c12e00c0" I get the following result:
ifconfig: invalid hw-addr 00:c12e00c0
Problem 2 (without wpa_supplicant
It seems like the zd1211rw driver (or the mac80211 driver) registrert a really weird mac address.
Changing the mac addr using "ifconfig wlan0 hw ether 00:11:E2:04:98:AB" also did not help.
Does anybody have any experiences with zd1211rw and the issues above ?
Regards,
Rune
(Last edited by rune.evjen on 16 Nov 2009, 23:19)