WPA2 authentication failure for iphone/android

chris janusz chrisjanusz007 at gmail.com
Mon Mar 17 14:05:30 EDT 2014


Hi:
  I have my AP(using hostapd 2.0) configured and seems to working fine for
laptop (with WPA2).
  It also works fine for iphone/android if no authentication or WPA
authentication.  But with WPA2, Laptop works fine, for IOS or Android it
just say "failed to join network".
Googled around, i do have "eap_server=0" and "ieee8021x=0" in my
hostapd.conf file.

Can anybody shed some lights on this?


The log shows following messages when i try to associate my iphone:

nl80211: Event message available
nl80211: New station 5c:59:48:3a:4b:94
nl80211: Assoc Req IEs - hexdump(len=127): 00 07 6d 64 6d 39 78 31 35 01 08
82 84 8b 96 24 30 48 6c 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00
0f ac 02 0c 00 32 04 0c 12 18 60 2d 1a 0c 18 1b ff 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 dd 09 00 10 18 02 00 00 45 00 00
dd 1e 00 90 4c 33 0c 18 1b ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 dd 07 00 50 f2 02 00 01 00
wlan0: Event ASSOC (0) received
wlan0: STA 5c:59:48:3a:4b:94 IEEE 802.11: associated
STA included RSN IE in (Re)AssocReq
  New STA
ap_sta_add: register ap_handle_timer timeout for 5c:59:48:3a:4b:94 (300
seconds - ap_max_inactivity)
wlan0: STA 5c:59:48:3a:4b:94 WPA: event 1 notification
wpa_driver_nl80211_set_key: ifindex=12 alg=0 addr=0x949d0 key_idx=0
set_tx=1 seq_len=0 key_len=0
   broadcast key
Get randomness: len=32 entropy=0
WPA: Assign ANonce - hexdump(len=32): 59 a1 79 05 81 7c 00 e2 ab 5a 14 5c
57 78 36 b6 9d e2 19 ff ee fc 5b 78 94 3f b6 bb fd d9 36 50
WPA: 5c:59:48:3a:4b:94 WPA_PTK entering state INITPSK
WPA: 5c:59:48:3a:4b:94 WPA_PTK entering state PTKSTART
wlan0: STA 5c:59:48:3a:4b:94 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)
WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 1)
hostapd_new_assoc_sta: reschedule ap_handle_timer timeout for
5c:59:48:3a:4b:94 (300 seconds - ap_max_inactivity)
wlan0: Event EAPOL_RX (27) received
IEEE 802.1X: 121 bytes from 5c:59:48:3a:4b:94
   IEEE 802.1X: version=2 type=3 length=117
WPA: Received EAPOL-Key from 5c:59:48:3a:4b:94 key_info=0x10a type=2
key_data_length=22
WPA: Received Key Nonce - hexdump(len=32): 74 05 a0 2b fd 4c ea 62 ac e9 ce
90 74 83 b7 c4 be 24 0e db 12 46 6d cc dc c9 19 b2 cd 96 26 9d
WPA: Received Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 01
wlan0: STA 5c:59:48:3a:4b:94 WPA: received EAPOL-Key frame (2/4 Pairwise)
WPA: 5c:59:48:3a:4b:94 WPA_PTK entering state PTKCALCNEGOTIATING
WPA: PTK derivation - A1=00:03:7f:06:c0:1e A2=5c:59:48:3a:4b:94
WPA: Nonce1 - hexdump(len=32): 59 a1 79 05 81 7c 00 e2 ab 5a 14 5c 57 78 36
b6 9d e2 19 ff ee fc 5b 78 94 3f b6 bb fd d9 36 50
WPA: Nonce2 - hexdump(len=32): 74 05 a0 2b fd 4c ea 62 ac e9 ce 90 74 83 b7
c4 be 24 0e db 12 46 6d cc dc c9 19 b2 cd 96 26 9d
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=48): [REMOVED]
WPA: 5c:59:48:3a:4b:94 WPA_PTK entering state PTKCALCNEGOTIATING2
WPA: 5c:59:48:3a:4b:94 WPA_PTK entering state PTKINITNEGOTIATING
wlan0: STA 5c:59:48:3a:4b:94 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=46 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=56): [REMOVED]
WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 1)
wlan0: Event EAPOL_RX (27) received
IEEE 802.1X: 4 bytes from 5c:59:48:3a:4b:94
   IEEE 802.1X: version=1 type=2 length=0
IEEE 802.1X: Ignore EAPOL message - 802.1X not enabled and WPS not used
wlan0: STA 5c:59:48:3a:4b:94 WPA: EAPOL-Key timeout
WPA: 5c:59:48:3a:4b:94 WPA_PTK entering state PTKINITNEGOTIATING
wlan0: STA 5c:59:48:3a:4b:94 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=46 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=56): [REMOVED]
WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 2)
nl80211: Event message available
nl80211: Delete station 5c:59:48:3a:4b:94
wlan0: Event DISASSOC (1) received
wlan0: STA 5c:59:48:3a:4b:94 IEEE 802.11: disassociated
wlan0: STA 5c:59:48:3a:4b:94 WPA: event 2 notification
wpa_driver_nl80211_set_key: ifindex=12 alg=0 addr=0x949d0 key_idx=0
set_tx=1 seq_len=0 key_len=0
   addr=5c:59:48:3a:4b:94
WPA: 5c:59:48:3a:4b:94 WPA_PTK entering state DISCONNECTED
WPA: 5c:59:48:3a:4b:94 WPA_PTK entering state INITIALIZE
wpa_driver_nl80211_set_key: ifindex=12 alg=0 addr=0x949d0 key_idx=0
set_tx=1 seq_len=0 key_len=0
   addr=5c:59:48:3a:4b:94
wlan0: STA 5c:59:48:3a:4b:94 IEEE 802.1X: unauthorizing port
hostapd_ht_operation_update current operation mode=0x0
hostapd_ht_operation_update new operation mode=0x0 changes=0
ap_free_sta: cancel ap_handle_timer for 5c:59:48:3a:4b:94
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.shmoo.com/pipermail/hostap/attachments/20140317/efc94d46/attachment.htm>


More information about the HostAP mailing list