wpa_supplicant: works for 10 seconds, then fails, then works..

lorenzo lagrespan
Mon Dec 26 09:59:21 PST 2005


greetings everybody. I'm having a problem with wpa_supplicant in a
WPA-PSK environment.
My configuration works, but just for 10 seconds. I get an IP address
via DHCP, everything is fine.  After that there's a DISCONNECT event,
and the re-auth phase begins again. It works for 10 seconds and back
again.

here's the brief (no -d option) output from wpa_supplicant (debug output below):

---
Associated with 00:40:05:55:e5:3d
Authentication with 00:40:05:55:e5:3d timed out.
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
Trying to associate with 00:40:05:55:e5:3d (SSID='XXXX' freq=0 MHz)
Associated with 00:40:05:55:e5:3d
---

and then again, every 10 seconds.

wpa_version: I've tried both 0.4.6 and 0.5, the first from debian
source archive and the latter compiled from the website. So I don't
think it's a bug.
access point: d-link dwl-900 ap+
wireless card: intel ipw2200 (but I'm using wpa_supplicant with
-Dwext, because -Dipw gives me a lot of OPERATION_NOT_SUPPORTED..
something wrong with the drivers, but that' another story)

hypotesis: I think there's something wrong with the authentication or
group auth. Seems like if I cannot authenticate the access point after
10 seconds the card will disconnect. I don't know where to tell
wpa_supplicant NOT to do this. I tried almost every combination of the
options given in the examples, but my knowledge of the thing is not
enough.

here's my wpa_supplicant.conf:

---
ctrl_interface=/var/run/wpa_supplicant
network={
	ssid="XXXX"
	proto=WPA
	pairwise=TKIP
	group=TKIP
	key_mgmt=WPA-PSK
	psk=...XXX...
	bssid=00:40:05:55:e5:3d
}
---

here's the long output of wpa_supplicant:

---
Associated to a new BSS: BSSID=00:40:05:55:e5:3d
No keys have been configured - skip key clearing
Associated with 00:40:05:55:e5:3d
WPA: Association event - clear replay counter
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: SUPP_BE entering state IDLE
EAP: EAP entering state INITIALIZE
EAP: EAP entering state IDLE
Setting authentication timeout: 10 sec 0 usec
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
EAPOL: startWhen --> 0
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: txStart
WPA: drop TX EAPOL in non-IEEE 802.1X mode (type=1 len=0)
RX EAPOL from 00:40:05:55:e5:3d
Setting authentication timeout: 10 sec 0 usec
IEEE 802.1X RX: version=1 type=3 length=95
  EAPOL-Key type=254
State: ASSOCIATED -> 4WAY_HANDSHAKE
WPA: RX message 1 of 4-Way Handshake from 00:40:05:55:e5:3d (ver=1)
WPA: WPA IE for msg 2/4 - hexdump(len=24): dd 16 00 50 f2 01 01 00 00
50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: Renewed SNonce - hexdump(len=32): a0 56 c9 c6 c4 e2 ba 12 68 53
ec 54 13 89 25 f6 b4 2d ed 8f c0 99 45 4d 1f 39 12 e3 54 7b ec 3b
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
WPA: Sending EAPOL-Key 2/4
RX EAPOL from 00:40:05:55:e5:3d
IEEE 802.1X RX: version=1 type=3 length=121
  EAPOL-Key type=254
State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
WPA: RX message 3 of 4-Way Handshake from 00:40:05:55:e5:3d (ver=1)
WPA: IE KeyData - hexdump(len=26): dd 18 00 50 f2 01 01 00 00 50 f2 02
01 00 00 50 f2 02 01 00 00 50 f2 02 00 00
WPA: Sending EAPOL-Key 4/4
WPA: Installing PTK to the driver.
WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
wpa_driver_wext_set_key: alg=2 key_idx=0 set_tx=1 seq_len=6 key_len=32
State: 4WAY_HANDSHAKE -> GROUP_HANDSHAKE

[and afeter 10 seconds]

Authentication with 00:40:05:55:e5:3d timed out.
Added BSSID 00:40:05:55:e5:3d into blacklist
State: GROUP_HANDSHAKE -> DISCONNECTED
wpa_driver_wext_disassociate
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
EAPOL: External notification - portEnabled=0
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portValid=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING

[and then it authenticates, and such]

...any idea?

thanks in advance
(and please feel free to contact me via e-mail directly if I have been
an idiot 'til now and the solution is very quick)

--
:lorenzo grespan
GPG Key fingerprint = 5372 1B49 9E61 747C FB9A  4DAE 5D2A A9A0 74B4 8F1A




More information about the Hostap mailing list