WPA2-PSK with TKIP fails to set GTK/PTK to driver: ioctl[IEEE80211_IOCTL_SETMODE]: No such device or address

kstauffer uglymouse
Sun Feb 18 03:57:17 PST 2007


You were right, tkip module was not loaded.
Thanks for that!

WPA/WPA2 Problems still remains though.

I tried wpa/wpa2 without wmm and it did not make any difference(I've 
heard that ar5213 based chips have some problems with WMM even they have 
support).
Also using CCMP/TKIP encryption doesn't make any difference.
In WPA2 mode, wpa_supplicant reports Authentication to be successfull but
right after that, 4way handshake is restarted.

I managed to get debug logs from AP and it discards 4th eapol frame with
following message when WPA2 is used:
AP:
paed: w 0-DEVPR eapol_rsn_  Replay counter mismatch (got 16777216 exp 2,
discarding EAPOL-Key.

I'm very confused at the moment, where does it get that 16777216?

Full wpa_supplicant, AP logs can be found from:
http://www.saunalahti.fi/~krisst/WPA2_FAIL.rar

I also attached .cap file of wireless traffic.

I appreciate any help I get and thanks for your last answer

-Kristian
Jouni Malinen kirjoitti:
> On Tue, Feb 13, 2007 at 02:01:59AM +0200, kstauffer wrote:
>
>   
>> For some reason GTK or PTK cannot be installed to driver and 
>> authentication to WPA2 AP fails when TKIP is used.
>>     
>
> Please make sure that wlan_tkip module is loaded (e.g., try to run
> "modprobe wlan_tkip" to load it). I would also recommend testing this
> with WMM disabled since there are some special cases with Atheros
> hardware when using TKIP with WMM and I don't know whether madwifi
> supports all of them.
>
>   
>> If switched to CCMP, authentication is successfull according to 
>> wpa_supplicant logs but immediately after authentication 4Way Handshake 
>> is restarted and it fails.
>> "WPA: 4-Way Handshake failed - pre-shared key may be incorrect" message 
>> appears, though PSK is correct.
>>     
>
> Can you please test this, too, with WMM disabled? The AP operations in
> WPA2+WMM mode is somewhat suspicious since it claims to only support two
> replay counters, but WMM would usually use four..
>
>   





More information about the Hostap mailing list