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

From: Sam Leffler <sam_at_errno.com>
Date: Tue, 19 Sep 2006 09:32:54 -0700
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.

> 
> # 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
> #
> 
> 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.
> 
Received on Tue Sep 19 2006 - 14:33:14 UTC

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