Association Problems. (WPA_Supplicant 0.5.1 + Madwifi-ng 20060210)

Renaud Roques r.roques at i2e.fr
Mon Feb 27 05:25:12 EST 2006


> > And here :
> > Received 733 bytes of scan results (3 BSSes)
> > Scan results: 3
> > Authentication with 00:00:00:00:00:00 timed out.
> >
> > He has 3 scan results and he is still trying to authenticate with
> > 00:00:00:00:00:00 ... Why ?
> 
> It does not; 00:00:00:00:00:00 is shown because no AP was yet selected
> by wpa_supplicant. Scan results are not used since you were using
> ap_scan=2 mode.

Ok, so how can wpa_supplicant select an AP without using the scan results?
How does this work in this ap_scan 2 mode? How can I manage to use this
option? Because my ultimate goal is to do optimized roaming, and I think
that this option is necessary...

> > -------------
> > Config File :
> > -------------
> > ctrl_interface=/var/run/wpa_supplicant
> > eapol_version=1
> > ap_scan=2
> > fast_reauth=1
> >
> > network={
> >   ssid="my_ssid"
> >   scan_ssid=1
> >   key_mgmt= WPA_EAP
> >   pairwise=TKIP
> >   group=TKIP
> >   eap=LEAP
> >   identity="user"
> >   password="pass"
> > }
> 
> You need to configure proto=WPA (or proto=WPA2) in the network block
> when using ap_scan=2. In this case, you have in practice configured
> wpa_supplicant to try to use WPA2 by leaving this field out and I would
> assume your AP is not using WPA2 since the driver did not associate. If
> adding proto field does not fix this, I would suggest trying with
> ap_scan=1 mode to make sure that the security parameters match with the
> AP configuration.

I add proto=WPA in my config, but result is still the same. So I follow your
advices and I tried with ap_scan=1. It still does not work...

The scan gives good results. Wpa_supplicant tries to associate but next
error is:
ioctl[IEEE80211_IOCTL_SETMLME]: Argument list too long
Association request to the driver failed

It fails two times, and then scan begins again...


Thank you in advance.

Renaud Roques.




The log gives me:

Initializing interface 'ath0' conf './wpa_supplicant.nfe.conf' driver
'madwifi' ctrl_interface 'N/A'
Configuration file './wpa_supplicant.nfe.conf' ->
'/var/mntx/./wpa_supplicant.nfe.conf'
Reading configuration file '/var/mntx/./wpa_supplicant.nfe.conf'
ctrl_interface='/var/run/wpa_supplicant'
eapol_version=1
ap_scan=1
fast_reauth=1
Line: 305 - start of a new network block
ssid - hexdump_ascii(len=9):
     42 44 54 5f 54 44 53 54 61                        BDT_TDSTa
scan_ssid=1 (0x1)
proto: 0x1
key_mgmt: 0x1
auth_alg: 0x4
group: 0x8
identity - hexdump_ascii(len=11):
     41 4e 54 41 2d 30 30 30 31 2d 31                  ANTA-0001-1
password - hexdump_ascii(len=5): [REMOVED]
Priority group 0
   id=0 ssid='BDT_TDSTa'
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
SIOCGIWRANGE: too old (short) data - assuming WPA is not supported
Own MAC address: 00:40:96:ad:22:75
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
Added interface ath0
Wireless event: cmd=0x8b06 len=8
State: DISCONNECTED -> SCANNING
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=9):
     42 44 54 5f 54 44 53 54 61                        BDT_TDSTa
Wireless event: cmd=0x8b1a len=22
Scan timeout - try to get results
Received 1006 bytes of scan results (4 BSSes)
Scan results: 4
Selecting BSS from priority group 0
0: 00:11:21:bc:3b:b4 ssid='BDT_TDSTa' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
   selected based on WPA IE
Trying to associate with 00:11:21:bc:3b:b4 (SSID='BDT_TDSTa' freq=5320 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
Overriding auth_alg selection: 0x4
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 1
WPA: set AP WPA IE - hexdump(len=26): dd 18 00 50 f2 01 01 00 00 50 f2 02 01
00 00 50 f2 02 01 00 00 50 f2 01 28 00
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT 802.1X
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50
f2 02 01 00 00 50 f2 02 01 00 00 50 f2 01
No keys have been configured - skip key clearing
wpa_driver_madwifi_set_drop_unencrypted: enabled=1
State: SCANNING -> ASSOCIATING
wpa_driver_madwifi_associate
ioctl[IEEE80211_IOCTL_SETMLME]: Argument list too long
Association request to the driver failed
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - portControl=Auto
Wireless event: cmd=0x8b1a len=22
Wireless event: cmd=0x8b19 len=12
Received 1006 bytes of scan results (4 BSSes)
Scan results: 4
Selecting BSS from priority group 0
0: 00:11:21:bc:3b:b4 ssid='BDT_TDSTa' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
   selected based on WPA IE
Trying to associate with 00:11:21:bc:3b:b4 (SSID='BDT_TDSTa' freq=5320 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
Overriding auth_alg selection: 0x4
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 1
WPA: set AP WPA IE - hexdump(len=26): dd 18 00 50 f2 01 01 00 00 50 f2 02 01
00 00 50 f2 02 01 00 00 50 f2 01 28 00
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT 802.1X
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50
f2 02 01 00 00 50 f2 02 01 00 00 50 f2 01
No keys have been configured - skip key clearing
wpa_driver_madwifi_set_drop_unencrypted: enabled=1
State: ASSOCIATING -> ASSOCIATING
wpa_driver_madwifi_associate
ioctl[IEEE80211_IOCTL_SETMLME]: Argument list too long
Association request to the driver failed
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - portControl=Auto
Wireless event: cmd=0x8b1a len=22
Authentication with 00:00:00:00:00:00 timed out.
Added BSSID 00:00:00:00:00:00 into blacklist
State: ASSOCIATING -> DISCONNECTED
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING





More information about the HostAP mailing list