[data included] help! wpa_supplicant with WEP never associates, just timeout-loops

David P. Reed dpreed at reed.com
Mon May 30 17:10:10 EDT 2005


I have a fairly vanilla system: FC3, madwifi running pretty standard on
a Compaq Evo N610c.   ath0 associates just fine without wpa_supplicant
with an access point using WEP shared keys and ifup, specifying the
proper key.

I cannot get wpa_supplicant to associate, however.    It finds the
access point and tries to associate, but times out and loops retrying.
Here is the output from wpa_supplicant 4.1 (3.8 does the same thing),
followed by my network block.   (the same thing also happens on my
x86_64 laptop with both ndiswrapper and  madwifi).

Please help with some suggestions for what to look at, I've looked at
zillions of things, including coding a really long (60 sec) timeout!
I'm hardly a newbie to computing or Linux, but I'm a complete newbie to
wpa_supplicant, and this is just frustrating.  I really want to shift my
setup to wpa rather than WEP, but this doesn't give me much confidence
that wpa_supplicant will work for me.

-------------------------- wpa_supplicant output ------------
Initializing interface 'ath0' conf '/etc/wpa_supplicant.conf' driver 
'madwifi'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
opensc_engine_path='/usr/lib/opensc/engine_opensc.so'
pkcs11_engine_path='/usr/lib/opensc/engine_pkcs11.so'
pkcs11_module_path='/usr/lib/pkcs11/opensc-pkcs11.so'
Line: 285 - start of a new network block
ssid - hexdump_ascii(len=8):
      52 65 65 64 2e 63 6f 6d                           Reed.com
key_mgmt: 0x4
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)
auth_alg: 0x2
Priority group 5
    id=0 ssid='Reed.com'
Initializing interface (2) 'ath0'
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]: Operation not supported
Own MAC address: 00:11:50:54:cd:c6
wpa_driver_madwifi_del_key: keyidx=0
wpa_driver_madwifi_del_key: keyidx=1
wpa_driver_madwifi_del_key: keyidx=2
wpa_driver_madwifi_del_key: keyidx=3
wpa_driver_madwifi_set_countermeasures: enabled=0
wpa_driver_madwifi_set_drop_unencrypted: enabled=1
Setting scan request: 0 sec 100000 usec
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Wireless event: cmd=0x8b1a len=12
Wireless event: cmd=0x8b19 len=12
Received 343 bytes of scan results (2 BSSes)
Scan results: 2
Selecting BSS from priority group 5
0: 00:09:5b:2f:2f:64 ssid='Reedb.com' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
    skip - no WPA/RSN IE
1: 00:09:5b:5c:7e:f4 ssid='Reed.com' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
    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
Automatic auth_alg selection: 0x1
Overriding auth_alg selection: 0x2
No keys have been configured - skip key clearing
wpa_driver_madwifi_set_key: alg=WEP key_idx=0 set_tx=1 seq_len=0 key_len=5
wpa_driver_madwifi_set_key: alg=WEP key_idx=1 set_tx=0 seq_len=0 key_len=5
wpa_driver_madwifi_set_key: alg=WEP key_idx=2 set_tx=0 seq_len=0 key_len=5
wpa_driver_madwifi_set_drop_unencrypted: enabled=1
State: SCANNING -> ASSOCIATING
wpa_driver_madwifi_associate
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - portControl=ForceAuthorized
Wireless event: cmd=0x8b1a len=21
Authentication with 00:00:00:00:00:00 timed out.
Added BSSID 00:00:00:00:00:00 into blacklist
State: ASSOCIATING -> DISCONNECTED
wpa_driver_madwifi_del_key: keyidx=0
wpa_driver_madwifi_del_key: keyidx=1
wpa_driver_madwifi_del_key: keyidx=2
wpa_driver_madwifi_del_key: keyidx=3
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Wireless event: cmd=0x8b1a len=12
Wireless event: cmd=0x8b19 len=12
Received 343 bytes of scan results (2 BSSes)
Scan results: 2
Selecting BSS from priority group 5
0: 00:09:5b:2f:2f:64 ssid='Reedb.com' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
    skip - no WPA/RSN IE
1: 00:09:5b:5c:7e:f4 ssid='Reed.com' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
    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
Automatic auth_alg selection: 0x1
Overriding auth_alg selection: 0x2
No keys have been configured - skip key clearing
wpa_driver_madwifi_set_key: alg=WEP key_idx=0 set_tx=1 seq_len=0 key_len=5
wpa_driver_madwifi_set_key: alg=WEP key_idx=1 set_tx=0 seq_len=0 key_len=5
wpa_driver_madwifi_set_key: alg=WEP key_idx=2 set_tx=0 seq_len=0 key_len=5
wpa_driver_madwifi_set_drop_unencrypted: enabled=1
State: SCANNING -> ASSOCIATING
wpa_driver_madwifi_associate
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - portControl=ForceAuthorized
Wireless event: cmd=0x8b1a len=21
Authentication with 00:00:00:00:00:00 timed out.
BSSID 00:00:00:00:00:00 blacklist count incremented to 2
State: ASSOCIATING -> DISCONNECTED
wpa_driver_madwifi_del_key: keyidx=0
wpa_driver_madwifi_del_key: keyidx=1
wpa_driver_madwifi_del_key: keyidx=2
wpa_driver_madwifi_del_key: keyidx=3
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Wireless event: cmd=0x8b1a len=12
Wireless event: cmd=0x8b19 len=12
Received 343 bytes of scan results (2 BSSes)
Scan results: 2
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
    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
Automatic auth_alg selection: 0x1
Overriding auth_alg selection: 0x2
No keys have been configured - skip key clearing
wpa_driver_madwifi_set_key: alg=WEP key_idx=0 set_tx=1 seq_len=0 key_len=5
wpa_driver_madwifi_set_key: alg=WEP key_idx=1 set_tx=0 seq_len=0 key_len=5
wpa_driver_madwifi_set_key: alg=WEP key_idx=2 set_tx=0 seq_len=0 key_len=5
wpa_driver_madwifi_set_drop_unencrypted: enabled=1
State: SCANNING -> ASSOCIATING
wpa_driver_madwifi_associate
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - portControl=ForceAuthorized
Wireless event: cmd=0x8b1a len=21
Authentication with 00:00:00:00:00:00 timed out.
BSSID 00:00:00:00:00:00 blacklist count incremented to 3
State: ASSOCIATING -> DISCONNECTED
wpa_driver_madwifi_del_key: keyidx=0
wpa_driver_madwifi_del_key: keyidx=1
wpa_driver_madwifi_del_key: keyidx=2
wpa_driver_madwifi_del_key: keyidx=3
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Wireless event: cmd=0x8b1a len=12
Wireless event: cmd=0x8b19 len=12
Received 343 bytes of scan results (2 BSSes)
Scan results: 2
Selecting BSS from priority group 5
0: 00:09:5b:2f:2f:64 ssid='Reedb.com' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
    skip - no WPA/RSN IE
1: 00:09:5b:5c:7e:f4 ssid='Reed.com' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
    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
Automatic auth_alg selection: 0x1
Overriding auth_alg selection: 0x2
No keys have been configured - skip key clearing
wpa_driver_madwifi_set_key: alg=WEP key_idx=0 set_tx=1 seq_len=0 key_len=5
wpa_driver_madwifi_set_key: alg=WEP key_idx=1 set_tx=0 seq_len=0 key_len=5
wpa_driver_madwifi_set_key: alg=WEP key_idx=2 set_tx=0 seq_len=0 key_len=5
wpa_driver_madwifi_set_drop_unencrypted: enabled=1
State: SCANNING -> ASSOCIATING
wpa_driver_madwifi_associate
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - portControl=ForceAuthorized
Wireless event: cmd=0x8b1a len=21
CTRL-EVENT-TERMINATING - signal 2 received
State: ASSOCIATING -> DISCONNECTED
wpa_driver_madwifi_del_key: keyidx=0
wpa_driver_madwifi_del_key: keyidx=1
wpa_driver_madwifi_del_key: keyidx=2
wpa_driver_madwifi_del_key: keyidx=3
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_madwifi_set_drop_unencrypted: enabled=0
wpa_driver_madwifi_set_countermeasures: enabled=0
No keys have been configured - skip key clearing
Removed BSSID 00:00:00:00:00:00 from blacklist (clear)


--------------------- wpa_supplicant.conf
.... contents same as distributed wpa_supplicant.conf minus example network
  blocks - the following is the only network block .......

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






More information about the HostAP mailing list