hostapd / ath9k 4-way handshake fail

Masashi Honma honma
Tue Jul 14 17:30:06 PDT 2009


> I wanted to compare PMK,PTK in hostapd and wpa_supplicant but messages show
> "[REMOVED]" instead of the keys. Is it possible to configure them to show the 
> keys?

You can use "-K" option.

Regards,
Masashi Honma.

Hector Akamine wrote:
> 12345678901234567890123456789012345678901234567890123456789012345678901234567890
> 
> Hi,
> I have hostapd / ath9k failing in the 4-way handshake. 
> (error message in hostapd is "WPA: invalid MIC in msg 2/4 of 4-Way Handshake")
>>From I have read in previous posts, this is usually caused by 
>  a mismatch in the passphrases in AP and STA, but  
> this seems not to be the case this time (hostapd and wpa_supplicant 
> config files are below).
> 
> AP: hostapd 0.6.9 / ath9k (adapter is NEC PA-WL300NC) / fedora 11 
> STA: wpa_supplicant 0.6.9 / wext (adapter is Intel 5100 AGN) / fedora 11 
> 
> In the AP I tried with kernel 2.6.29.5-191.fc11 (the latest that can be 
> retrieved with yum) and 2.6.31-0.67.rc2.git9.fc12 (the latest I could 
> find in koji) but the problem persists
> 
> Instead of using wpa_supplicant as STA, I also tried with the windows XP 
> supplicant (with the same Intel adapter, and with another adapter), without 
> change. The STAs connect ok with other APs, so I think this is an AP issue.
> 
> Any hint on what can be wrong?
> I wanted to compare PMK,PTK in hostapd and wpa_supplicant but messages show
> "[REMOVED]" instead of the keys. Is it possible to configure them to show the 
> keys?
> 
> Thank you,
> Hector
> 
> 
> -------------------
> 
> hostapd config file:
> 
> interface=wlan1
> driver=nl80211
> logger_syslog=-1
> logger_syslog_level=2
> logger_stdout=-1
> logger_stdout_level=2
> dump_file=/tmp/hostapd.dump
> ctrl_interface=/var/run/hostapd
> ctrl_interface_group=0
> ssid=hostapdAP-sta001
> country_code=JP
> hw_mode=a
> channel=40
> beacon_int=100
> auth_algs=1
> wme_enabled=0
> ieee80211n=0
> wpa=1
> wpa_passphrase=sta001pass
> wpa_key_mgmt=WPA-PSK
> wpa_pairwise=TKIP
> 
> ----------
> 
> wpa_supplicant config file:
> 
> ctrl_interface=/var/run/wpa_supplicant
> eapol_version=1
> ap_scan=1
> fast_reauth=1
> country=JP
> network={
>     ssid="hostapdAP-sta001"
>     proto=WPA
> 	key_mgmt=WPA-PSK
> 	pairwise=TKIP
> 	group=TKIP
>     psk="sta001pass" 
> }
> ----------------------
> 
> _______________________________________________
> HostAP mailing list
> HostAP at lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
> 
> 



More information about the Hostap mailing list