[Madwifi-devel] WPA-PSK with hostapd bug?
Status: Beta
Brought to you by:
otaku
From: Chuanhua L. <ch...@po...> - 2004-10-28 11:23:41
|
Hi, everyone,=20 I try to make WPA-PSK run on my board, but I get the following = error, =20 hostapd -dddd -B etc/hostapd.conf Configuration file: etc/hostapd.conf madwifi_set_iface_flags: dev_up=3D0 br0: port 2(ath0) entering disabled state Using interface ath0 with hwaddr 00:90:96:63:a6:68 and ssid 'thiru_wpa' madwifi_set_ieee8021x: enabled=3D1 madwifi_configure_wpa: group key cipher=3D1 madwifi_configure_wpa: pairwise key ciphers=3D0x2 madwifi_configure_wpa: key management algorithms=3D0x2 madwifi_configure_wpa: rsn capabilities=3D0x0 madwifi_configure_wpa: enable WPA=3D 0x1 madwifi_set_iface_flags: dev_up=3D1 br0: port 2(ath0) entering learning state madwifi_set_privacy: enabled=3D1 WPA: group state machine entering state GTK_INIT GMK - hexdump(len=3D32): 61 64 6d 31 20 20 20 20 20 20 4c 69 6e 6b 20 65 = 6e 63 61 70 3a 45 74 68 65 72 6e 65 74 20 20 48 GTK - hexdump(len=3D32): 41 9b 88 98 36 b2 0b 00 dc 2d 83 bf e4 d4 a3 e5 = e3 08 da e3 16 1d f8 10 90 86 90 71 79 eb 44 a4 WPA: group state machine entering state SETKEYSDONE madwifi_set_key: alg=3DTKIP addr=3D00:00:00:00:00:00 key_idx=3D1 Flushing old station entries Deauthenticate all stations madwifi_sta_deauth: addr=3Dff:ff:ff:ff:ff:ff reason_code=3D2 ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument In fact, I digging the code and find=20 ieee80211_ioctl_setmlme() case IEEE80211_MLME_DISASSOC: case IEEE80211_MLME_DEAUTH: switch (ic->ic_opmode) { case IEEE80211_M_STA: /* XXX not quite right */ ieee80211_new_state(ic, IEEE80211_S_INIT, mlme->im_reason); break; case IEEE80211_M_HOSTAP: ni =3D ieee80211_find_node(ic, mlme->im_macaddr); if (ni =3D=3D NULL){ //Here returned, because broadcast address = can't find one matched station, maybe it is bug return -EINVAL; } How can we fix this bug? It is very apparent that we don't consider = deauthentiate/disassoicate all stations in ieee80211_ioctl_setmlme(). Thanks, hualab |