wpa ctrl interface issue

wang baisheng bsh_wang
Tue Aug 7 23:28:21 PDT 2007


Hi,
	I use wpa_ctrl_request  connecting an AP and I can connect ok, but after a 
while I receive a CTRL-EVENT-DISCONNECTED event and wpa reauth, then I 
receive CTRL-EVENT-CONNECTED, then CTRL-EVENT-DISCONNECTED, then 
CTRL-EVENT-CONNECTED. What's wrong ? And the follwing is my cmmond sequence:

1 ADD_NETWORK
2 SET_NETWORK 
3 some authentication set
4 ENABLE_NETWORK 

The output :

msg:<2>Trying to associate with 00:1a:70:e5:23:f2 (SSID='testtest' freq=2437 
MHz)
msg:<2>Associated with 00:1a:70:e5:23:f2
msg:<2>WPA: Key negotiation completed with 00:1a:70:e5:23:f2 [PTK=CCMP 
GTK=TKIP]
msg:<2>CTRL-EVENT-CONNECTED - Connection to 00:1a:70:e5:23:f2 completed (auth) 
[id=0 id_str=]
msg:<2>CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
msg:<2>Associated with 00:1a:70:e5:23:f2
msg:<2>Authentication with 00:1a:70:e5:23:f2 timed out.
msg:<2>CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
msg:<2>Trying to associate with 00:1a:70:e5:23:f2 (SSID='testtest' freq=2437 
MHz)
msg:<2>Associated with 00:1a:70:e5:23:f2
msg:<2>Authentication with 00:1a:70:e5:23:f2 timed out.
msg:<2>CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
msg:<2>Trying to associate with 00:1a:70:e5:23:f2 (SSID='testtest' freq=2437 
MHz)
msg:<2>Associated with 00:1a:70:e5:23:f2
.......

	And to my strange, if the ap has wep encrytion, everything is ok. What I said 
happened when the ap has wpa1/wpa2 encryption. By the way, If I run 
wpa_supplicant manully, everything is ok.

	BRs,
	Baisheng




More information about the Hostap mailing list