wpasupplicant gives empty ssid string

chandramani chandramani
Tue Jun 27 06:31:45 PDT 2006


Hello

I am running wpa_supplicant_3.8.1 + madwfi driver on debian 2.6.18.8. I am trying to connect it with AP with WPA-PSK security enabled bot facing problems. 
Running iwlist on client side gives me ssid of AP but ruuning wpa_supplicant I get

wpa_supplicant -dd -K -D madwifi -i ath0 -c /etc/wpa_supplicant/wpa_
supplicant.conf
Initializing interface 'ath0' conf '/etc/wpa_supplicant/wpa_supplicant.conf' dri
ver 'madwifi'
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_suppli
cant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
Line: 6 - start of a new network block
ssid - hexdump_ascii(len=14):
     74 65 73 74 31 2d 77 70 61 2d 61 74 68 30         test1-wpa-ath0
scan_ssid=1 (0x1)
PSK (ASCII passphrase) - hexdump_ascii(len=8):
     61 6d 70 65 72 69 6f 6e                           amperion
PSK (from passphrase) - hexdump(len=32): 9a ae 79 86 fc be 1b b1ADDRCONF(NETDEV_
UP): ath0: link is not ready
 42 80 7e 86 ec da 45 ed af fc b6 57 b9 99 0b c2 16 66 2c 75 91 50 d6 91
Priority group 0
   id=0 ssid='test1-wpa-ath0'
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
Own MAC address: 00:0b:6b:36:e7:a2
wpa_driver_madwifi_set_wpa: enabled=1
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 'wifi0' added
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=14):
     74 65 73 74 31 2d 77 70 61 2d 61 74 68 30         test1-wpa-ath0
Wireless event: cmd=0x8b1a len=23
Wireless event: cmd=0x8b1a len=8
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=0
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=0
Wireless event: ADDRCONF(NETDEV_CHANGE): ath0: link becomes ready
cmd=0x8b19 len=8
Received 364 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
0: 00:0b:6b:36:e7:29 ssid='' wpa_ie_len=0 rsn_ie_len=0
   skip - no WPA/RSN IE
No suitable AP found.
Setting scan request: 5 sec 0 usec
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:0b:6b:36:e7:29
Association event - clear replay counter
Associated to a new BSS: BSSID=00:0b:6b:36:e7:29
No keys have been configured - skip key clearing
Associated with 00:0b:6b:36:e7:29
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: txStart
TX EAPOL - hexdump(len=18): 00 0b 6b 36 e7 29 00 0b 6b 36 e7 a2 88 8e 01 01 00 0
0
EAPOL: SUPP_BE entering state IDLE
EAP: EAP entering state INITIALIZE
EAP: EAP entering state IDLE
Setting authentication timeout: 10 sec 0 usec
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=29 idleWhile=59
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=28 idleWhile=58
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=27 idleWhile=57
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=26 idleWhile=56
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=25 idleWhile=55
Wireless event: cmd=0x8b1a len=23
Starting AP scan (broadcast SSID)
Wireless event: cmd=0x8b1a len=8
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=24 idleWhile=54
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=23 idleWhile=53
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=22 idleWhile=52
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=21 idleWhile=51
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=20 idleWhile=50
Wireless event: cmd=0x8b1a len=8
Authentication with 00:0b:6b:36:e7:29 timed out.
Added BSSID 00:0b:6b:36:e7:29 into blacklist
wpa_driver_madwifi_disassociate
ioctl[IEEE80211_IOCTL_SETMLME]: Argument list too long
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portValid=0
Setting scan request: 0 sec 0 usec
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=14):
     74 65 73 74 31 2d 77 70 61 2d 61 74 68 30         test1-wpa-ath0
Wireless event: cmd=0x8b1a len=23
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=19 idleWhile=49
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=18 idleWhile=48
Wireless event: cmd=0x8b19 len=8
Received 364 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
0: 00:0b:6b:36:e7:29 ssid='' wpa_ie_len=0 rsn_ie_len=0
   skip - blacklisted
No APs found - clear blacklist and try again
Removed BSSID 00:0b:6b:36:e7:29 from blacklist (clear)
Selecting BSS from priority group 0
0: 00:0b:6b:36:e7:29 ssid='' wpa_ie_len=0 rsn_ie_len=0
   skip - no WPA/RSN IE
No suitable AP found.
Setting scan request: 5 sec 0 usec
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=17 idleWhile=47
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=16 idleWhile=46
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=15 idleWhile=45
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=14 idleWhile=44
Signal 2 received - terminating
wpa_driver_madwifi_deauthenticate
ioctl[IEEE80211_IOCTL_SETMLME]: Argument list too long
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_madwifi_set_wpa: enabled=0
wpa_driver_madwifi_set_drop_unencrypted: enabled=0
wpa_driver_madwifi_set_countermeasures: enabled=0

and finally I am not able to associate with AP.
 Following is the wpa_supplicant.conf file

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
network={
        ssid="ssid"
        scan_ssid=1
        psk="passphrase"
        key_mgmt=WPA-PSK
        pairwise=TKIP
        group=TKIP
        proto=WPA
}

ruuning "wpa_client -i ath0 status" gives following
bssid=00:0B:6B:36:E7:29 
pairwise_cipher=TKIP
group_cipher=TKIP
key_mgmt=WPA-PSK
wpa_state=SCANNING
Supplicant PAE state=DISCONNECTED
suppPortStatus=Unauthorized
EAP state=DISABLED

I am concerned about lines
Selecting BSS from priority group 0
0: 00:0b:6b:36:e7:29 ssid='' wpa_ie_len=0 rsn_ie_len=0

Why wpa_supplicant is not able to get the AP's ssid or WAP IE. I believe at this point at self association breaks. 

On the AP side hide_ssid option has not been enabled. Any way ruuning "iwlist ath0 scan" I get AP's ssid in list so that should not be a problem.

Also I feel that AP(hostapd) is properly configured and working fine because it does associate with D-LINK WUSB + xsuppllicent with WPA-PSK enabled.
 


For any sort of help thanking in advance
chandra





More information about the Hostap mailing list