problem continues in hostap/hostapd/wpa_supplicant - new development release, v0.4.5

David P. Reed dpreed
Tue Sep 27 06:53:37 PDT 2005


I continue to have problems with wpa_supplicant and ndiswrapper when I 
am trying merely to associate with auth_alg=SHARED and WEP keys.   For 
some reason, the EAPOL state machine still wants to force 
authentication, so after associating and connecting, a timeout happens, 
and wpa_supplicant forces a disconnection.   See script below, which is 
generated, where the relevant wpa_supplicant.conf says:

network={
        ssid="Reed.com"
        key_mgmt=NONE
        auth_alg=SHARED
        wep_key0=...
        wep_key1=...
        wep_key2=...
        wep_tx_keyidx=0
        priority=5
}

I have marked the point in the transcript where connection succeeds, and 
then after a pause of many seconds, the connection is killed.

What's suspicious is the "portControl=ForceAuthorized" line after 
SCANNING->ASSOCIATING.   I can't figure out why wpa_supplicant.c does 
this, but I'm no WPA expert.

I used to love WAPROAMD, it worked for this case just fine.


----------------- begin transcript --------------------

[root at manatee wpa_supplicant]# ./wpa_supplicant -Dndiswrapper -iwlan0 
-cwpa_example.conf -dd
Initializing interface 'wlan0' conf 'wpa_example.conf' driver 'ndiswrapper'
Configuration file 'wpa_example.conf' -> 
'/home/david/wireless_stuff/hostap/wpa_supplicant/wpa_example.conf'
Reading configuration file 
'/home/david/wireless_stuff/hostap/wpa_supplicant/wpa_example.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
opensc_engine_path='/usr/lib64/opensc/engine_opensc.so'
pkcs11_engine_path='/usr/lib64/opensc/engine_pkcs11.so'
pkcs11_module_path='/usr/lib64/pkcs11/opensc-pkcs11.so'
Line: 314 - start of a new network block
ssid - hexdump_ascii(len=17):
     6d 65 64 69 61 20 6c 61 62 20 38 30 32 2e 31 31   media lab 802.11
     67                                                g
key_mgmt: 0x4
Line: 319 - start of a new network block
ssid - hexdump_ascii(len=8):
     52 65 65 64 2e 63 6f 6d                           Reed.com
key_mgmt: 0x4
auth_alg: 0x2
wep_key0 - hexdump(len=5): [REMOVED]
wep_key1 - hexdump(len=5): [REMOVED]
wep_key2 - hexdump(len=5): [REMOVED]
wep_tx_keyidx=0 (0x0)
priority=5 (0x5)
Priority group 5
   id=1 ssid='Reed.com'
Priority group 0
   id=0 ssid='media lab 802.11g'
Initializing interface (2) 'wlan0'
ENGINE: Loading dynamic engine
ENGINE: Loading OpenSC Engine from /usr/lib64/opensc/engine_opensc.so
ENGINE: 'SO_PATH' '/usr/lib64/opensc/engine_opensc.so'
ENGINE: 'ID' 'opensc'
ENGINE: 'LIST_ADD' '1'
ENGINE: 'LOAD' '(null)'
ENGINE: Loading pkcs11 Engine from /usr/lib64/opensc/engine_pkcs11.so
ENGINE: 'SO_PATH' '/usr/lib64/opensc/engine_pkcs11.so'
ENGINE: 'ID' 'pkcs11'
ENGINE: 'LIST_ADD' '1'
ENGINE: 'LOAD' '(null)'
ENGINE: 'MODULE_PATH' '/usr/lib64/pkcs11/opensc-pkcs11.so'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
ioctl[SIOCSIWPMKSA]: No such device
SIOCGIWRANGE: too old (short) data - assuming WPA is not supported
Own MAC address: 00:90:4b:58:33:06
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: No such device
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: No such device
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: No such device
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: No such device
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
Setting scan request: 0 sec 100000 usec
Wireless event: cmd=0x8b06 len=12
Wireless event: cmd=0x8b2a len=24
Wireless event: cmd=0x8b2a len=24
Wireless event: cmd=0x8b2a len=24
Wireless event: cmd=0x8b2a len=24
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 811 bytes of scan results (3 BSSes)
Scan results: 3
Selecting BSS from priority group 5
0: 00:09:5b:5c:7e:f4 ssid='Reed.com' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
1: 00:09:5b:2f:2f:64 ssid='Reedb.com' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
2: 00:0f:66:4e:b5:e9 ssid='linksys' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - no WPA/RSN IE
   selected non-WPA AP 00:09:5b:5c:7e:f4 ssid='Reed.com'
Trying to associate with 00:09:5b:5c:7e:f4 (SSID='Reed.com' freq=2442 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
Overriding auth_alg selection: 0x2
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: clearing own WPA/RSN IE
No keys have been configured - skip key clearing
State: SCANNING -> ASSOCIATING
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - portControl=ForceAuthorized
Wireless event: cmd=0x8c02 len=151
Custom wireless event: 
'ASSOCINFO(ReqIEs=0008526565642e636f6d010882848b962430486c32040c121860dd06001018010000 
RespIEs=010482848b9632080c1218243048606c)'
Association info event
req_ies - hexdump(len=34): 00 08 52 65 65 64 2e 63 6f 6d 01 08 82 84 8b 
96 24 30 48 6c 32 04 0c 12 18 60 dd 06 00 10 18 01 00 00
resp_ies - hexdump(len=16): 01 04 82 84 8b 96 32 08 0c 12 18 24 30 48 60 6c
WPA: clearing own WPA/RSN IE
Wireless event: cmd=0x8b15 len=24
Wireless event: new AP: 00:09:5b:5c:7e:f4
State: ASSOCIATING -> ASSOCIATED
Associated to a new BSS: BSSID=00:09:5b:5c:7e:f4
Associated with 00:09:5b:5c:7e:f4
WPA: Association event - clear replay counter
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state S_FORCE_AUTH
EAPOL: SUPP_BE entering state IDLE
EAP: EAP entering state INITIALIZE
EAP: EAP entering state IDLE
Cancelling authentication timeout
State: ASSOCIATED -> COMPLETED
CTRL-EVENT-CONNECTED - Connection to 00:09:5b:5c:7e:f4 completed (auth)

<<<*********connection is now present, but times out, saying: *******

EAPOL: idleWhile --> 0
EAP: EAP entering state FAILURE
CTRL-EVENT-EAP-FAILURE EAP authentication failed

----------end transcript ------------------------------





More information about the Hostap mailing list