'WPA authenticator requests disconnect: STA xxx reason 2' after PTKINITDONE

Andrew nitr0
Fri Aug 6 02:41:32 PDT 2010


Hi.
I tried to run hostapd on DWA-520 card (that successfully works on 
Gentoo) with LEAF (small linux distro, currently in development with 
2.6.32.10 kernel) I've got a disconnect after authentication. 
wpa_supplicant on client successful - and then receive disconnect event:

<2>Trying to associate with 00:21:91:97:xx:xx(SSID='NiTr0' freq=2442 MHz)
<2>Associated with 00:21:91:97:xx:xx
<2>WPA: Key negotiation completed with 00:21:91:97:xx:xx[PTK=CCMP GTK=TKIP]
<2>CTRL-EVENT-CONNECTED - Connection to 00:21:91:97:xx:xxcompleted 
(reauth) [id=0 id_str=]
<2>CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys

Here is log of hostapd (with -K -dd options):

mgmt::auth
authentication: STA=1c:4b:d6:85:xx:xx auth_alg=0 auth_transaction=1 
status_code=0 wep=0
   New STA
wlan0: STA 1c:4b:d6:85:xx:xx IEEE 802.11: authentication OK (open system)
wlan0: STA 1c:4b:d6:85:xx:xx MLME: 
MLME-AUTHENTICATE.indication(1c:4b:d6:85:xx:xx, OPEN_SYSTEM)
wlan0: STA 1c:4b:d6:85:xx:xx MLME: 
MLME-DELETEKEYS.request(1c:4b:d6:85:xx:xx)
authentication reply: STA=1c:4b:d6:85:xx:xx auth_alg=0 
auth_transaction=2 resp=0 (IE len=0)
MGMT (TX callback) ACK
mgmt::auth cb
wlan0: STA 1c:4b:d6:85:xx:xx IEEE 802.11: authenticated
MGMT
mgmt::assoc_req
association request: STA=1c:4b:d6:85:xx:xx capab_info=0x431 
listen_interval=10
WMM IE - hexdump(len=7): 00 50 f2 02 00 01 00
Validating WMM IE: OUI 00:50:f2  OUI type 2  OUI sub-type 0  version 1  
QoS info 0x0
   new AID 1
wlan0: STA 1c:4b:d6:85:xx:xx IEEE 802.11: association OK (aid 1)
MGMT (TX callback) ACK
mgmt::assoc_resp cb
wlan0: STA 1c:4b:d6:85:xx:xx IEEE 802.11: associated (aid 1)
wlan0: STA 1c:4b:d6:85:xx:xx MLME: 
MLME-ASSOCIATE.indication(1c:4b:d6:85:xx:xx)
wlan0: STA 1c:4b:d6:85:xx:xx MLME: 
MLME-DELETEKEYS.request(1c:4b:d6:85:xx:xx)
wlan0: STA 1c:4b:d6:85:xx:xx WPA: event 1 notification
wlan0: STA 1c:4b:d6:85:xx:xx WPA: start authentication
WPA: 1c:4b:d6:85:xx:xx WPA_PTK entering state INITIALIZE
wlan0: STA 1c:4b:d6:85:xx:xx IEEE 802.1X: unauthorizing port
WPA: 1c:4b:d6:85:xx:xx WPA_PTK_GROUP entering state IDLE
WPA: 1c:4b:d6:85:xx:xx WPA_PTK entering state AUTHENTICATION
WPA: 1c:4b:d6:85:xx:xx WPA_PTK entering state AUTHENTICATION2
WPA: 1c:4b:d6:85:xx:xx WPA_PTK entering state INITPSK
WPA: 1c:4b:d6:85:xx:xx WPA_PTK entering state PTKSTART
wlan0: STA 1c:4b:d6:85:xx:xx WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8 
kde_len=0 keyidx=0 encr=0)
IEEE 802.1X: 1c:4b:d6:85:xx:xx TX status - version=2 type=3 length=95 - 
ack=1
IEEE 802.1X: 121 bytes from 1c:4b:d6:85:xx:xx
    IEEE 802.1X: version=1 type=3 length=117
wlan0: STA 1c:4b:d6:85:xx:xx WPA: received EAPOL-Key frame (2/4 Pairwise)
WPA: 1c:4b:d6:85:xx:xx WPA_PTK entering state PTKCALCNEGOTIATING
WPA: PTK derivation - A1=00:21:91:97:xx:xx A2=1c:4b:d6:85:xx:xx
WPA: PMK - hexdump(len=32): 2c 06 61 cb d2 a3 0e fe 0d aa fe 10 bf fc e4 
8d 25 16 2d 91 7a 1e 7b 59 3f 96 f6 44 3c cb ad 12
WPA: PTK - hexdump(len=48): 13 f3 cf 60 0e c8 b1 92 dd 33 d0 9d f3 7b d5 
c5 23 e5 e3 9a 5d c4 1d 4f a9 50 02 aa 53 c7 b1 da b5 8e 6a 45 f4 60 e5 
85 08 f1 40 24 2a 7c 15 99
WPA: 1c:4b:d6:85:xx:xx WPA_PTK entering state PTKCALCNEGOTIATING2
WPA: 1c:4b:d6:85:xx:xx WPA_PTK entering state PTKINITNEGOTIATING
wlan0: STA 1c:4b:d6:85:xx:xx WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=2 secure=1 mic=1 ack=1 install=1 pairwise=8 
kde_len=94 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=104): 30 18 01 00 00 0f ac 02 
02 00 00 0f ac 04 00 0f ac 02 01 00 00 0f ac 02 0c 00 dd 1a 00 50 f2 01 
01 00 00 50 f2 02 02 00 00 50 f2 04 00 50 f2 02 01 00 00 50 f2 02 dd 26 
00 0f ac 01 01 00 9c ca 95 20 d9 ed 7e d1 a7 05 64 bf f3 3f 54 7b be 95 
2d 98 6f d6 bb 2a 99 6c 08 1f 36 d6 47 7d dd 00 00 00 00 00 00 00 00 00
IEEE 802.1X: 1c:4b:d6:85:xx:xx TX status - version=2 type=3 length=199 - 
ack=1
IEEE 802.1X: 99 bytes from 1c:4b:d6:85:xx:xx
    IEEE 802.1X: version=1 type=3 length=95
wlan0: STA 1c:4b:d6:85:xx:xx WPA: received EAPOL-Key frame (4/4 Pairwise)
WPA: 1c:4b:d6:85:xx:xx WPA_PTK entering state PTKINITDONE
hostapd_wpa_auth_disconnect: WPA authenticator requests disconnect: STA 
1c:4b:d6:85:xx:xx reason 2
wlan0: STA 1c:4b:d6:85:xx:xx IEEE 802.11: deauthenticated due to local 
deauth request

Where is trouble?



More information about the Hostap mailing list