Re: iwi driver: ioctl[SIOCS80211, op 21, len 42]: Invalid argument

From: Vladimir Grebenschikov <vova_at_sw.ru>
Date: Wed, 20 Sep 2006 12:05:26 +0400 (MSD)
[ Charset ISO-8859-1 unsupported, converting... ]
> Vladimir Grebenschikov wrote:
> > Hi
> > 
> > i am triing to connect Intel(R) PRO/Wireless 2200BG - iwi0 to WPA-EAP
> > wireless network with PEAP:
> > 
> > # wpa_supplicant -i iwi0 -c /usr/local/etc/wpa_supplicant.conf
> > Trying to associate with SSID 'OFFICE-PEAP'
> > ioctl[SIOCS80211, op 21, len 42]: Invalid argument
> > Association request to the driver failed
> > ...
> 
> "op 21" is the request to associate.  The error most likely indicates
> the kernel had no information about the ap at the point where the ioctl
> was issued.  Adding -d to the command line would provide useful info.

...
Initializing interface (2) 'iwi0'
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:0e:35:03:82:74
wpa_driver_bsd_set_wpa: enabled=1
wpa_driver_bsd_set_wpa_internal: wpa=3 privacy=1
wpa_driver_bsd_del_key: keyidx=0
wpa_driver_bsd_del_key: keyidx=1
wpa_driver_bsd_del_key: keyidx=2
wpa_driver_bsd_del_key: keyidx=3
wpa_driver_bsd_set_countermeasures: enabled=0
wpa_driver_bsd_set_drop_unencrypted: enabled=1
Setting scan request: 0 sec 100000 usec
Added interface iwi0
State: DISCONNECTED -> SCANNING
Trying to associate with SSID 'OFFICE-PEAP'
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
wpa_driver_bsd_set_auth_alg alg 0x1 authmode 1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: clearing own WPA/RSN IE
No keys have been configured - skip key clearing
wpa_driver_bsd_set_drop_unencrypted: enabled=1
State: SCANNING -> ASSOCIATING
wpa_driver_bsd_associate: ssid 'OFFICE-PEAP' wpa ie len 0 pairwise 4 group 4
key mgmt 3
wpa_driver_bsd_associate: set PRIVACY 1
Association request to the driver failed
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - portControl=Auto
CTRL-EVENT-TERMINATING - signal 2 received
Removing interface iwi0
State: ASSOCIATING -> DISCONNECTED
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_bsd_set_wpa: enabled=0
wpa_driver_bsd_set_wpa_internal: wpa=0 privacy=0
wpa_driver_bsd_set_drop_unencrypted: enabled=0
wpa_driver_bsd_set_countermeasures: enabled=0
No keys have been configured - skip key clearing
wpa_driver_bsd_set_wpa_internal: wpa=0 privacy=1
Cancelling scan request
...
 
> > 
> > # kldstat | egrep wlan\|iwi
> > 28    1 0xc0892000 2d08     wlan_wep.ko
> > 29    5 0xc0895000 1ed74    wlan.ko
> > 52    1 0xc4ff9000 7000     wlan_ccmp.ko
> > 53    1 0xc5000000 4000     wlan_tkip.ko
> > 54    1 0xc3828000 2000     wlan_xauth.ko
> > 57    1 0xc4f36000 d000     if_iwi.ko
> > #

Kernel and userland in sync, just rebuild everithing for sure.
I've tried with and without wlan_ccmp.ko wlan_tkip.ko - no any difference (they should not be
used in may case)
 
> > changing ap_scan=2 >> ap_scan=1
> > improves situation a bit, but still does not work:
> 
> ap_scan has no effect on freebsd if I recall; it's really intended for
> linux and other os's where a variety of drivers hook up to
> wpa_supplicant.  On freebsd all drivers (except for ndis) go through
> net80211 and scanning is handled uniformly.
> 
> > 
> > ...
> > State: DISCONNECTED -> SCANNING
> > Starting AP scan (broadcast SSID)
> > Received 0 bytes of scan results (3 BSSes)
> > Scan results: 3
> > Selecting BSS from priority group 0
> > 0: 00:14:a5:0e:eb:60 ssid='COME' wpa_ie_len=0 rsn_ie_len=0 caps=0x31
> >    skip - no WPA/RSN IE
> > 1: 00:18:b9:2a:c4:50 ssid='OFFICE' wpa_ie_len=0 rsn_ie_len=0 caps=0x31
> >    skip - no WPA/RSN IE
> > 2: 00:13:46:fe:c2:ff ssid='pmp' wpa_ie_len=0 rsn_ie_len=0 caps=0x31
> >    skip - no WPA/RSN IE
> > No suitable AP found.
> > Setting scan request: 5 sec 0 usec
> > Starting AP scan (broadcast SSID)
> > Received 0 bytes of scan results (1 BSSes)
> > Scan results: 1
> > Selecting BSS from priority group 0
> > 0: 00:18:b9:2a:c4:50 ssid='OFFICE' wpa_ie_len=0 rsn_ie_len=0 caps=0x31
> >    skip - no WPA/RSN IE
> > No suitable AP found.
> > Setting scan request: 5 sec 0 usec
> > ...
> > 
> > any hints will be really appreciated.
> > 
> 
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
> 
Received on Wed Sep 20 2006 - 06:05:32 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:00 UTC