From owner-freebsd-net@FreeBSD.ORG Tue Sep 19 16:33:14 2006 Return-Path: X-Original-To: net@freebsd.org Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D95516A40F; Tue, 19 Sep 2006 16:33:14 +0000 (UTC) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82A7D43D55; Tue, 19 Sep 2006 16:33:07 +0000 (GMT) (envelope-from sam@errno.com) Received: from [10.0.0.248] (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id k8JGWsvQ013330 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 19 Sep 2006 09:32:59 -0700 (PDT) (envelope-from sam@errno.com) Message-ID: <45101BB6.8050205@errno.com> Date: Tue, 19 Sep 2006 09:32:54 -0700 From: Sam Leffler User-Agent: Thunderbird 1.5.0.4 (X11/20060724) MIME-Version: 1.0 To: vova@fbsd.ru References: <1158654888.1533.17.camel@localhost> In-Reply-To: <1158654888.1533.17.camel@localhost> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: current , freebsd-net Subject: Re: iwi driver: ioctl[SIOCS80211, op 21, len 42]: Invalid argument X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Sep 2006 16:33:14 -0000 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. >