Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Ticket #1207 (new defect)

Opened 7 years ago

Last modified 5 years ago

wpa-psk association (hostapd) from dcs-6620g problem

Reported by: ksc Assigned to:
Priority: minor Milestone:
Component: madwifi: other Version: v0.9.2
Keywords: Cc:
Patch is attached: 0 Pending:

Description

Hi I'm not sure whether this is a madwifi or hostapd issue, hope someone can enlighten.

I'm setting up a madwifi AP (0.9.2, kernel 2.4.27) in master mode, and I use a wifi camera dlink dcs-6620g to connect as a sta to it. Everything works fine in unencrypted and wep mode. However wpa-psk doesn't seem to work. It associates and breaks continuously. I grabbed the debug log from hostapd and attached it below.

Compared to a successful association from an XP & ubuntu client, it seems that the error is in this that the camera device is not replying according to the 4 way handshake, thereby initiating a disconnect.

ath20: STA 00:13:46:xx:xx:xx WPA: sending 1/4 msg of 4-Way Handshake
TX EAPOL - hexdump(len=113): 00 13 46 xx xx xx 00 15 6d xx xx xx 88 8e 02 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 03 c1 1f c5 27 10 2c 83 cb 5b 96 c9 44 6f 19 10 f2 e8 c3 19 de 4d 82 84 8d 48 fc 57 bf 60 9b 77 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ath20: STA 00:13:46:xx:xx:xx WPA: EAPOL-Key timeout

Is this a problem with
- madwifi driver
- hostapd authenticator, or
- wifi camera's wpa supplicant implementation is incompatible?

How can I further isolate the problem? thanks...

Here's the attached debug output from hostapd (00:13:46 is the camera device)

WPA: 00:13:46:xx:xx:xx WPA_PTK_GROUP entering state IDLE
WPA: 00:13:46:xx:xx:xx WPA_PTK entering state AUTHENTICATION
WPA: 00:13:46:xx:xx:xx WPA_PTK entering state AUTHENTICATION2
WPA: 00:13:46:xx:xx:xx WPA_PTK entering state INITPSK
WPA: 00:13:46:xx:xx:xx WPA_PTK entering state PTKSTART
ath20: STA 00:13:46:xx:xx:xx WPA: sending 1/4 msg of 4-Way Handshake
TX EAPOL - hexdump(len=113): 00 13 46 xx xx xx 00 15 6d xx xx xx 88 8e 02 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 01 c1 1f c5 27 10 2c 83 cb 5b 96 c9 44 6f 19 10 f2 e8 c3 19 de 4d 82 84 8d 48 fc 57 bf 60 9b 77 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
IEEE 802.1X: 5 bytes from 00:13:46:xx:xx:xx
   IEEE 802.1X: version=1 type=1 length=0
   ignoring 1 extra octets after IEEE 802.1X packet
ath20: STA 00:13:46:xx:xx:xx WPA: EAPOL-Key timeout
WPA: 00:13:46:xx:xx:xx WPA_PTK entering state PTKSTART
ath20: STA 00:13:46:xx:xx:xx WPA: sending 1/4 msg of 4-Way Handshake
TX EAPOL - hexdump(len=113): 00 13 46 xx xx xx 00 15 6d xx xx xx 88 8e 02 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 02 c1 1f c5 27 10 2c 83 cb 5b 96 c9 44 6f 19 10 f2 e8 c3 19 de 4d 82 84 8d 48 fc 57 bf 60 9b 77 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ath20: STA 00:13:46:xx:xx:xx WPA: EAPOL-Key timeout
WPA: 00:13:46:xx:xx:xx WPA_PTK entering state PTKSTART
ath20: STA 00:13:46:xx:xx:xx WPA: sending 1/4 msg of 4-Way Handshake
TX EAPOL - hexdump(len=113): 00 13 46 xx xx xx 00 15 6d xx xx xx 88 8e 02 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 03 c1 1f c5 27 10 2c 83 cb 5b 96 c9 44 6f 19 10 f2 e8 c3 19 de 4d 82 84 8d 48 fc 57 bf 60 9b 77 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ath20: STA 00:13:46:xx:xx:xx WPA: EAPOL-Key timeout
WPA: 00:13:46:xx:xx:xx WPA_PTK entering state PTKSTART
ath20: STA 00:13:46:xx:xx:xx WPA: sending 1/4 msg of 4-Way Handshake
TX EAPOL - hexdump(len=113): 00 13 46 xx xx xx 00 15 6d xx xx xx 88 8e 02 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 04 c1 1f c5 27 10 2c 83 cb 5b 96 c9 44 6f 19 10 f2 e8 c3 19 de 4d 82 84 8d 48 fc 57 bf 60 9b 77 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
WPA: 00:13:46:xx:xx:xx WPA_PTK entering state DISCONNECT
madwifi_sta_deauth: addr=00:13:46:xx:xx:xx reason_code=2
WPA: 00:13:46:xx:xx:xx WPA_PTK entering state DISCONNECTED
WPA: 00:13:46:xx:xx:xx WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:13:46:xx:xx:xx key_idx=0
ioctl[unknown???]: Invalid argument
ath20: STA 00:13:46:xx:xx:xx IEEE 802.1X: unauthorizing port
madwifi_set_sta_authorized: addr=00:13:46:xx:xx:xx authorized=0
ioctl[unknown???]: Invalid argument
ath20: STA 00:13:46:xx:xx:xx IEEE 802.11: deauthenticated due to local deauth request
Wireless event: cmd=0x8c04 len=20
ath20: STA 00:13:46:xx:xx:xx IEEE 802.11: disassociated

Change History

(follow-up: ↓ 2 ) 03/20/07 15:36:38 changed by mrenzmann

Please try again with MadWifi v0.9.3 and see if that changes the situation. Interoperability with wpa_supplicant and hostapd has been improved a bit in v0.9.3. Please report back about the results.

(in reply to: ↑ 1 ) 03/21/07 04:14:29 changed by ksc

Result is still the same after trying madwifi 0.9.3 against hostapd 0.5.7

ath_hal: 0.9.18.0 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
wlan: 0.8.4.2 (0.9.3)
ath_rate_sample: 1.2 (0.9.3)
ath_pci: 0.9.4.5 (0.9.3)
wifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboA rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
wifi0: mac 5.9 phy 4.3 radio 3.6
wifi0: Use hw queue 1 for WME_AC_BE traffic
wifi0: Use hw queue 0 for WME_AC_BK traffic
wifi0: Use hw queue 2 for WME_AC_VI traffic
wifi0: Use hw queue 3 for WME_AC_VO traffic
wifi0: Use hw queue 8 for CAB traffic
wifi0: Use hw queue 9 for beacons
wifi0: Atheros 5212: mem=0x80000000, irq=12
wifi1: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi1: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi1: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi1: H/W encryption support: WEP AES AES_CCM TKIP
wifi1: mac 5.9 phy 4.3 radio 4.6
wifi1: Use hw queue 1 for WME_AC_BE traffic
wifi1: Use hw queue 0 for WME_AC_BK traffic
wifi1: Use hw queue 2 for WME_AC_VI traffic
wifi1: Use hw queue 3 for WME_AC_VO traffic
wifi1: Use hw queue 8 for CAB traffic
wifi1: Use hw queue 9 for beacons
wifi1: Atheros 5212: mem=0x800c0000, irq=9

Debug from hostapd

Wireless event: cmd=0x8c03 len=20
ath20: STA 00:13:46:xx:xx:xx IEEE 802.11: associated
  New STA
ath20: STA 00:13:46:xx:xx:xx WPA: event 1 notification
madwifi_del_key: addr=00:13:46:xx:xx:xx key_idx=0
ath20: STA 00:13:46:xx:xx:xx WPA: start authentication
WPA: 00:13:46:xx:xx:xx WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:13:46:xx:xx:xx key_idx=0
madwifi_set_sta_authorized: addr=00:13:46:xx:xx:xx authorized=0
ath20: STA 00:13:46:xx:xx:xx IEEE 802.1X: unauthorizing port
WPA: 00:13:46:xx:xx:xx WPA_PTK_GROUP entering state IDLE
WPA: 00:13:46:xx:xx:xx WPA_PTK entering state AUTHENTICATION
WPA: 00:13:46:xx:xx:xx WPA_PTK entering state AUTHENTICATION2
WPA: 00:13:46:xx:xx:xx WPA_PTK entering state INITPSK
WPA: 00:13:46:xx:xx:xx WPA_PTK entering state PTKSTART
ath20: STA 00:13:46:xx:xx:xx WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)
TX EAPOL - hexdump(len=113): 00 13 46 xx xx xx 00 15 6d xx xx xx 88 8e 02 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 01 fc eb e0 a6 f6 92 7d e0 6d aa 16 96 d6 cb 27 53 71 28 3f ee 89 1b 1d 81 79 64 f1 7f 01 4a 5d 56 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
IEEE 802.1X: 5 bytes from 00:13:46:xx:xx:xx
   IEEE 802.1X: version=1 type=1 length=0
   ignoring 1 extra octets after IEEE 802.1X packet
ath20: STA 00:13:46:xx:xx:xx WPA: EAPOL-Key timeout
WPA: 00:13:46:xx:xx:xx WPA_PTK entering state PTKSTART
ath20: STA 00:13:46:xx:xx:xx WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)
TX EAPOL - hexdump(len=113): 00 13 46 xx xx xx 00 15 6d xx xx xx 88 8e 02 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 02 fc eb e0 a6 f6 92 7d e0 6d aa 16 96 d6 cb 27 53 71 28 3f ee 89 1b 1d 81 79 64 f1 7f 01 4a 5d 56 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ath20: STA 00:13:46:xx:xx:xx WPA: EAPOL-Key timeout
WPA: 00:13:46:xx:xx:xx WPA_PTK entering state PTKSTART
ath20: STA 00:13:46:xx:xx:xx WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)
TX EAPOL - hexdump(len=113): 00 13 46 xx xx xx 00 15 6d xx xx xx 88 8e 02 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 03 fc eb e0 a6 f6 92 7d e0 6d aa 16 96 d6 cb 27 53 71 28 3f ee 89 1b 1d 81 79 64 f1 7f 01 4a 5d 56 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ath20: STA 00:13:46:xx:xx:xx WPA: EAPOL-Key timeout
WPA: 00:13:46:xx:xx:xx WPA_PTK entering state PTKSTART
ath20: STA 00:13:46:xx:xx:xx WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)
TX EAPOL - hexdump(len=113): 00 13 46 xx xx xx 00 15 6d xx xx xx 88 8e 02 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 04 fc eb e0 a6 f6 92 7d e0 6d aa 16 96 d6 cb 27 53 71 28 3f ee 89 1b 1d 81 79 64 f1 7f 01 4a 5d 56 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
WPA: 00:13:46:xx:xx:xx WPA_PTK entering state DISCONNECT
hostapd_wpa_auth_disconnect: WPA authenticator requests disconnect: STA 00:13:46:xx:xx:xx reason 2
madwifi_sta_deauth: addr=00:13:46:xx:xx:xx reason_code=2
WPA: 00:13:46:xx:xx:xx WPA_PTK entering state DISCONNECTED
WPA: 00:13:46:xx:xx:xx WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:13:46:xx:xx:xx key_idx=0
ioctl[IEEE80211_IOCTL_DELKEY]: Invalid argument
madwifi_del_key: Failed to delete key (addr 00:13:46:xx:xx:xx key_idx 0)
madwifi_set_sta_authorized: addr=00:13:46:xx:xx:xx authorized=0
ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
madwifi_set_sta_authorized: Failed to unauthorize STA 00:13:46:xx:xx:xx
ath20: STA 00:13:46:xx:xx:xx IEEE 802.1X: unauthorizing port
Could not set station 00:13:46:xx:xx:xx flags for kernel driver (errno=29).
ath20: STA 00:13:46:xx:xx:xx IEEE 802.11: deauthenticated due to local deauth request
Wireless event: cmd=0x8c02 len=102
Custom wireless event: 'STA-TRAFFIC-STAT
mac=00:13:46:xx:xx:xx
rx_packets=1
rx_bytes=19
tx_packets=4
tx_bytes=428
'
Wireless event: cmd=0x8c04 len=20
ath20: STA 00:13:46:xx:xx:xx IEEE 802.11: disassociated
Signal 2 received - terminating
Flushing old station entries
madwifi_sta_deauth: addr=ff:ff:ff:ff:ff:ff reason_code=3
Deauthenticate all stations
madwifi_set_privacy: enabled=0
madwifi_set_ieee8021x: enabled=0
madwifi_set_iface_flags: dev_up=0

03/25/07 19:29:32 changed by mtutak@nixz.net

I got similar behavior using hostapd 0.5.7+madwifi 0.9.3. Windows with buildin wireless manager connects without problems (WPA2+AES), but on the same card (USB, Ralink RT73) and Ralink custom wireless manager makes continuous connect-disconnect events. Exactly the same problems are with connecting Windows Mobile 5.0 using WPA+TKIP (WM5 has no WPA2 support). Connecting fails with log like this:

...
WPA: 00:02:78:88:57:c6 WPA_PTK entering state PTKSTART
wlan0: STA 00:02:78:88:57:c6 WPA: sending 1/4 msg of 4-Way Handshake
...
WPA: 00:02:78:88:57:c6 WPA_PTK entering state DISCONNECT
hostapd_wpa_auth_disconnect: WPA authenticator requests disconnect: STA 00:02:78:88:57:c6 reason 2
madwifi_sta_deauth: addr=00:02:78:88:57:c6 reason_code=2
WPA: 00:02:78:88:57:c6 WPA_PTK entering state DISCONNECTED
...

What does "reason_code=2" means in human language?

05/22/07 08:38:44 changed by anonymous

I am also seeing this when trying to connect from WinXP SP2 client to AP running on madwifi-0.9.3 + hostapd-0.4.9 + kernel 2.6.20 on Fedora Core 6.

ath0: STA 00:0e:35:78:10:f2 IEEE 802.11: associated
  New STA
ath0: STA 00:0e:35:78:10:f2 WPA: event 1 notification
ath0: STA 00:0e:35:78:10:f2 WPA: start authentication
WPA: 00:0e:35:78:10:f2 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:0e:35:78:10:f2 key_idx=0
ath0: STA 00:0e:35:78:10:f2 IEEE 802.1X: unauthorizing port
madwifi_set_sta_authorized: addr=00:0e:35:78:10:f2 authorized=0
WPA: 00:0e:35:78:10:f2 WPA_PTK_GROUP entering state IDLE
WPA: 00:0e:35:78:10:f2 WPA_PTK entering state AUTHENTICATION
WPA: 00:0e:35:78:10:f2 WPA_PTK entering state AUTHENTICATION2
WPA: 00:0e:35:78:10:f2 WPA_PTK entering state INITPSK
WPA: 00:0e:35:78:10:f2 WPA_PTK entering state PTKSTART
ath0: STA 00:0e:35:78:10:f2 WPA: sending 1/4 msg of 4-Way Handshake
TX EAPOL - hexdump(len=113): 00 0e 35 78 10 f2 00 19 e0 83 0d dd 88 8e 02 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 01 d9 d5 6d 14 b0 98 b5 f1 6c ef 43 e8 05 4e ef 4b 6b 93 4f e5 95 78 3b ff cf 97 97 95 a9 fa 50 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ath0: STA 00:0e:35:78:10:f2 WPA: EAPOL-Key timeout
WPA: 00:0e:35:78:10:f2 WPA_PTK entering state PTKSTART
ath0: STA 00:0e:35:78:10:f2 WPA: sending 1/4 msg of 4-Way Handshake
TX EAPOL - hexdump(len=113): 00 0e 35 78 10 f2 00 19 e0 83 0d dd 88 8e 02 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 02 d9 d5 6d 14 b0 98 b5 f1 6c ef 43 e8 05 4e ef 4b 6b 93 4f e5 95 78 3b ff cf 97 97 95 a9 fa 50 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ath0: STA 00:0e:35:78:10:f2 WPA: EAPOL-Key timeout
WPA: 00:0e:35:78:10:f2 WPA_PTK entering state PTKSTART
ath0: STA 00:0e:35:78:10:f2 WPA: sending 1/4 msg of 4-Way Handshake
TX EAPOL - hexdump(len=113): 00 0e 35 78 10 f2 00 19 e0 83 0d dd 88 8e 02 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 03 d9 d5 6d 14 b0 98 b5 f1 6c ef 43 e8 05 4e ef 4b 6b 93 4f e5 95 78 3b ff cf 97 97 95 a9 fa 50 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ath0: STA 00:0e:35:78:10:f2 WPA: EAPOL-Key timeout
WPA: 00:0e:35:78:10:f2 WPA_PTK entering state PTKSTART
ath0: STA 00:0e:35:78:10:f2 WPA: sending 1/4 msg of 4-Way Handshake
TX EAPOL - hexdump(len=113): 00 0e 35 78 10 f2 00 19 e0 83 0d dd 88 8e 02 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 04 d9 d5 6d 14 b0 98 b5 f1 6c ef 43 e8 05 4e ef 4b 6b 93 4f e5 95 78 3b ff cf 97 97 95 a9 fa 50 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
WPA: 00:0e:35:78:10:f2 WPA_PTK entering state DISCONNECT
madwifi_sta_deauth: addr=00:0e:35:78:10:f2 reason_code=2
WPA: 00:0e:35:78:10:f2 WPA_PTK entering state DISCONNECTED
WPA: 00:0e:35:78:10:f2 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:0e:35:78:10:f2 key_idx=0
ioctl[unknown???]: Invalid argument
ath0: STA 00:0e:35:78:10:f2 IEEE 802.1X: unauthorizing port
madwifi_set_sta_authorized: addr=00:0e:35:78:10:f2 authorized=0

hostapd.conf:

interface=ath0
driver=madwifi
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=5
ctrl_interface_group=0
macaddr_acl=0
deny_mac_file=/etc/hostapd.deny
auth_algs=1
eapol_key_index_workaround=0
eap_server=0
dump_file=/tmp/hostapd.dump
wpa=1
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
ssid="myssid"
wpa_passphrase=password
wpa_group_rekey=600
wpa_gmk_rekey=86400

Does anybody have any updates on this?

02/07/08 01:44:35 changed by mikmorg@mdmsolutions.org

I am having this same issue with a print server connecting with PSK. Is this thread alive?

02/11/08 15:51:24 changed by admin@estei.fr

Hi I have exactly the same problem. All works fine in open mode, but when i switch to wpa, it associate and immediatly disassociate.

04/10/08 23:24:27 changed by nospam@127oo1.de

ACK!

Same problem here, using hostapd v0.5.9 and madwifi 0.9.4 using hardware 00:0e.0 Ethernet controller: Atheros Communications Inc. AR5413 802.11abg NIC (rev 01)

05/21/08 16:25:21 changed by anonymous

Hi people, I add the same problem, and I solved it !

For me, the problem came from the macaddr. Because I'm not using the mac provided by the atheros card, I set another.

See : ifconfig wifi0 gives me 00:03:7F:0C:C0:47

I changed the mac of my vap with the command : iwpriv ath0 ethermac 00:17:33:80:00:20

after that, iwconfig ath0 gave me the right mac, but ifconfig still gave me the mac from atheros. And this was my problem. So I just typed : ifconfig ath0 hw ether 00:17:33:80:00:20

And now it's working !

Hope this help,

06/02/08 14:04:02 changed by anonymous

I also have the same problem with my linux AP AP is hostapd 05.10+ madwifi + wpn311 pci card

it seems to be specific to windows mobile 5 using wpa-tkip , if i connect using windows xp sp2 or nintendo wii it works fine .

Problem only happenned with qtech s200 smartphone .

08/13/08 20:32:53 changed by Andrej Podzimek <andrej@podzimek.org>

The same problem with Madwifi 0.9.4 and hostapd 0.6.3. This time there is no problem with MAC addresses...

The situation got much worse after IntelPro? sofware update on a Windows XP SP2 client.

01/04/09 22:27:55 changed by anonymous

Hello,

I just bought a Samsung Player Addict mobile phone which is running Windows Mobile 6.1. My gateway use an atheros miniPCI card with madwifi driver version 0.9.4+r3772. I was using an old hostapd 0.5.10 from Debian and I just updated it to 0.6.6 (and used the good madwifi sources to build it).

The issue is still the same: Sometimes connexion works for a few minutes, sometimes it can't connect at all. After a while connexion gets broken.

Here is my config file:

interface=wlan
driver=madwifi
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=0
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=LEVERT
hw_mode=g
channel=60
beacon_int=100
dtim_period=2
max_num_sta=255
rts_threshold=2347
fragm_threshold=2346
macaddr_acl=0
auth_algs=3
ignore_broadcast_ssid=0
wme_enabled=1
wme_ac_bk_cwmin=4
wme_ac_bk_cwmax=10
wme_ac_bk_aifs=7
wme_ac_bk_txop_limit=0
wme_ac_bk_acm=0
wme_ac_be_aifs=3
wme_ac_be_cwmin=4
wme_ac_be_cwmax=10
wme_ac_be_txop_limit=0
wme_ac_be_acm=0
wme_ac_vi_aifs=2
wme_ac_vi_cwmin=3
wme_ac_vi_cwmax=4
wme_ac_vi_txop_limit=94
wme_ac_vi_acm=0
wme_ac_vo_aifs=2
wme_ac_vo_cwmin=2
wme_ac_vo_cwmax=3
wme_ac_vo_txop_limit=47
wme_ac_vo_acm=0
eapol_key_index_workaround=0
eap_server=0
own_ip_addr=127.0.0.1
wpa=1
wpa_passphrase=mykey
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP 
}}

A full hostapd debug log is available here:
http ://woippy.le-vert.net/divers/log.hostapd

01/04/09 22:39:31 changed by anonymous

I have a Samsung Player Addict phone running Windows Mobile 6.1 and a madwifi powered Debian gateway.

Feel free to drop me a mail at gandalf@le-vert.net if you need additionnal informations or testing :)

Thanks in advance.

01/04/09 22:48:48 changed by anonymous

Here is somebody else who have the same kind of messages with a pocket pc: 1561

01/04/09 22:53:30 changed by anonymous

Another ticket without any fix which may be related: 539

01/04/09 23:45:54 changed by anonymous

WPA: Send EAPOL(secure=1 mic=1 ack=1 install=0 pairwise=0 kde_len=32 keyidx=1 encr=1)                                                                                                                                                                                          
Plaintext EAPOL-Key Key Data - hexdump(len=40): [REMOVED]                                                                                                                                                                                                                      
TX EAPOL - hexdump(len=153): 00 0b 6c 9e 37 77 00 0b 6b 35 c7 1d 88 8e 02 03 00 87 fe 03 92 00 20 00 00 00 00 00 00 00 04 5d ef e3 44 ce e8 83 c6 5a 6e 70 c6 a2 c5 e7 9b a5 1f 73 7a 18 38 0f 7a 9c 7d 67 b9 5c 93 7c 7c 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 53 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 09 ce 25 6c 55 c8 b5 d3 45 81 d5 a6 3e 1c ea 0f 00 28 a7 89 64 1d 07 ce 9b 86 15 92 31 5d 5e 1c b8 d5 08 60 3c ea 92 5a e3 3f a3 93 ea 65 17 85 48 f2 a1 93 8c 75 90 04 51 ad                                                       
IEEE 802.1X: 99 bytes from 00:0b:6c:9e:37:77                                                                                                                                                                                                                                   
   IEEE 802.1X: version=1 type=3 length=95                                                                                                                                                                                                                                     
wlan: STA 00:0b:6c:9e:37:77 WPA: received EAPOL-Key frame (2/2 Group)                                                                                                                                                                                                          
WPA: 00:0b:6c:9e:37:77 WPA_PTK_GROUP entering state REKEYESTABLISHED                                                                                                                                                                                                           
wlan: STA 00:0b:6c:9e:37:77 WPA: group key handshake completed (WPA)                                                                                                                                                                                                           
WPA: 00:0b:6c:9e:37:77 WPA_PTK_GROUP entering state IDLE                                                                                                                                                                                                                       
Wireless event: cmd=0x8c03 len=20                                                                                                                                                                                                                                              
wlan: STA 00:0b:6c:9e:37:77 IEEE 802.11: associated                                                                                                                                                                                                                            
wlan: STA 00:0b:6c:9e:37:77 WPA: event 1 notification                                                                                                                                                                                                                          
madwifi_del_key: addr=00:0b:6c:9e:37:77 key_idx=0                                                                                                                                                                                                                              
wlan: STA 00:0b:6c:9e:37:77 WPA: event 4 notification                                                                                                                                                                                                                          
madwifi_del_key: addr=00:0b:6c:9e:37:77 key_idx=0                                                                                                                                                                                                                              
WPA: 00:0b:6c:9e:37:77 WPA_PTK entering state AUTHENTICATION2                                                                                                                                                                                                                  
WPA: 00:0b:6c:9e:37:77 WPA_PTK entering state INITPSK                                                                                                                                                                                                                          
WPA: 00:0b:6c:9e:37:77 WPA_PTK entering state PTKSTART                                                                                                                                                                                                                         
wlan: STA 00:0b:6c:9e:37:77 WPA: sending 1/4 msg of 4-Way Handshake                                                                                                                                                                                                            
WPA: Send EAPOL(secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)                                                                                                                                                                                           
TX EAPOL - hexdump(len=113): 00 0b 6c 9e 37 77 00 0b 6b 35 c7 1d 88 8e 02 03 00 5f fe 00 8a 00 10 00 00 00 00 00 00 00 05 5d ef e3 44 ce e8 83 c6 5a 6e 70 c6 a2 c5 e7 9b a5 1f 73 7a 18 38 0f 7a 9c 7d 67 b9 5c 93 7c 8f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00                                                                                                                                                                               
wlan: STA 00:0b:6c:9e:37:77 WPA: EAPOL-Key timeout                                                                                                                                                                                                                             
WPA: 00:0b:6c:9e:37:77 WPA_PTK entering state PTKSTART                                                                                                                                                                                                                         
wlan: STA 00:0b:6c:9e:37:77 WPA: sending 1/4 msg of 4-Way Handshake                                                                                                                                                                                                            
WPA: Send EAPOL(secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)                                                                                                                                                                                           
TX EAPOL - hexdump(len=113): 00 0b 6c 9e 37 77 00 0b 6b 35 c7 1d 88 8e 02 03 00 5f fe 00 8a 00 10 00 00 00 00 00 00 00 06 5d ef e3 44 ce e8 83 c6 5a 6e 70 c6 a2 c5 e7 9b a5 1f 73 7a 18 38 0f 7a 9c 7d 67 b9 5c 93 7c 8f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00                                                                                                                                                                               
wlan: STA 00:0b:6c:9e:37:77 WPA: EAPOL-Key timeout                                                                                                                                                                                                                             
WPA: 00:0b:6c:9e:37:77 WPA_PTK entering state PTKSTART                                                                                                                                                                                                                         
wlan: STA 00:0b:6c:9e:37:77 WPA: sending 1/4 msg of 4-Way Handshake                                                                                                                                                                                                            
WPA: Send EAPOL(secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)                                                                                                                                                                                           
TX EAPOL - hexdump(len=113): 00 0b 6c 9e 37 77 00 0b 6b 35 c7 1d 88 8e 02 03 00 5f fe 00 8a 00 10 00 00 00 00 00 00 00 07 5d ef e3 44 ce e8 83 c6 5a 6e 70 c6 a2 c5 e7 9b a5 1f 73 7a 18 38 0f 7a 9c 7d 67 b9 5c 93 7c 8f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00                                                                                                                                                                               
wlan: STA 00:0b:6c:9e:37:77 WPA: EAPOL-Key timeout                                                                                                                                                                                                                             
WPA: 00:0b:6c:9e:37:77 WPA_PTK entering state PTKSTART                                                                                                                                                                                                                         
wlan: STA 00:0b:6c:9e:37:77 WPA: sending 1/4 msg of 4-Way Handshake                                                                                                                                                                                                            
WPA: Send EAPOL(secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)                                                                                                                                                                                           
TX EAPOL - hexdump(len=113): 00 0b 6c 9e 37 77 00 0b 6b 35 c7 1d 88 8e 02 03 00 5f fe 00 8a 00 10 00 00 00 00 00 00 00 08 5d ef e3 44 ce e8 83 c6 5a 6e 70 c6 a2 c5 e7 9b a5 1f 73 7a 18 38 0f 7a 9c 7d 67 b9 5c 93 7c 8f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00                                                                                                                                                                               
WPA: 00:0b:6c:9e:37:77 WPA_PTK entering state DISCONNECT                                                                                                                                                                                                                       
hostapd_wpa_auth_disconnect: WPA authenticator requests disconnect: STA 00:0b:6c:9e:37:77 reason 2                                                                                                                                                                             
madwifi_sta_deauth: addr=00:0b:6c:9e:37:77 reason_code=2                                                                                                                                                                                                                       
WPA: 00:0b:6c:9e:37:77 WPA_PTK entering state DISCONNECTED                                                                                                                                                                                                                     
WPA: 00:0b:6c:9e:37:77 WPA_PTK entering state INITIALIZE                                                                                                                                                                                                                       
madwifi_del_key: addr=00:0b:6c:9e:37:77 key_idx=0                                                                                                                                                                                                                              
ioctl[IEEE80211_IOCTL_DELKEY]: No such file or directory                                                                                                                                                                                                                       
madwifi_del_key: Failed to delete key (addr 00:0b:6c:9e:37:77 key_idx 0)                                                                                                                                                                                                       
madwifi_set_sta_authorized: addr=00:0b:6c:9e:37:77 authorized=0                                                                                                                                                                                                                
ioctl[IEEE80211_IOCTL_SETMLME]: No such file or directory                                                                                                                                                                                                                      
madwifi_set_sta_authorized: Failed to unauthorize STA 00:0b:6c:9e:37:77                                                                                                                                                                                                        
wlan: STA 00:0b:6c:9e:37:77 IEEE 802.1X: unauthorizing port                                                                                                                                                                                                                    
Could not set station 00:0b:6c:9e:37:77 flags for kernel driver (errno=29).                                                                                                                                                                                                    
wlan: STA 00:0b:6c:9e:37:77 IEEE 802.11: deauthenticated due to local deauth request                                                                                                                                                                                           
Wireless event: cmd=0x8c02 len=103                                                                                                                                                                                                                                             
Custom wireless event: 'STA-TRAFFIC-STAT                                                                                                                                                                                                                                       
mac=00:0b:6c:9e:37:77                                                                                                                                                                                                                                                          
rx_packets=24                                                                                                                                                                                                                                                                  
rx_bytes=2292                                                                                                                                                                                                                                                                  
tx_packets=12                                                                                                                                                                                                                                                                  
tx_bytes=1825                                                                                                                                                                                                                                                                  
'                                                                                                                                                                                                                                                                              
Wireless event: cmd=0x8c04 len=20                                                                                                                                                                                                                                              
wlan: STA 00:0b:6c:9e:37:77 IEEE 802.11: disassociated

A new clean log...