From owner-freebsd-stable@FreeBSD.ORG Wed Mar 1 12:26:21 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9543B16A423 for ; Wed, 1 Mar 2006 12:26:21 +0000 (GMT) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay01.ispgateway.de (smtprelay01.ispgateway.de [80.67.18.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id A421843D45 for ; Wed, 1 Mar 2006 12:26:19 +0000 (GMT) (envelope-from freebsd-listen@fabiankeil.de) Received: (qmail 5331 invoked from network); 1 Mar 2006 12:26:17 -0000 Received: from unknown (HELO localhost) ([pbs]775067@[217.50.148.215]) (envelope-sender ) by smtprelay01.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 1 Mar 2006 12:26:17 -0000 Date: Wed, 1 Mar 2006 12:26:08 +0100 From: Fabian Keil To: Carlos Amengual Message-ID: <20060301122608.451c88e4@localhost> In-Reply-To: <4404A9D1.5000705@informatica.info> References: <4404A9D1.5000705@informatica.info> X-Mailer: Sylpheed-Claws 2.0.0 (GTK+ 2.8.6; i386-portbld-freebsd6.0) X-PGP-KEY-URL: http://www.fabiankeil.de/gpg-keys/freebsd-listen-2006-08-19.asc Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_Zovd=GNSKv00BncINHOJxwR"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: freebsd-stable@freebsd.org Subject: Re: wpa_supplicant with NDIS-wrapped wireless card and WPA-PSK reboots 6.1-pre X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Mar 2006 12:26:21 -0000 --Sig_Zovd=GNSKv00BncINHOJxwR Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Carlos Amengual wrote: > My system is a 6.1-PRERELEASE as of yesterday afternoon, but the same=20 > happened with a RELENG_6 as of a month ago. >=20 > I set up a D-Link AirPlus DWL-520+ wireless PCI adapter in an old=20 > server, and NDISwrapped it (got an AIRPLUS_SYS.ko). >=20 > When running wpa_supplicant -dd -indis0 -Dndis=20 > -c/etc/wpa_supplicant.conf, the system reboots after printing: >=20 > -------------------------------------------------------- > Initializing interface 'ndis0' conf '/etc/wpa_supplicant.conf' driver > 'ndis' Configuration file '/etc/wpa_supplicant.conf' -> > '/etc/wpa_supplicant.conf' Reading configuration file > '/etc/wpa_supplicant.conf' ctrl_interface=3D'/var/run/wpa_supplicant' > ctrl_interface_group=3D0 (from group name 'wheel') > Line: 6 - start of a new network block > ssid - hexdump_ascii(len=3D11): > 47 4e 43 57 49 52 45 4c 45 53 53 GNCWIRELESS =20 > scan_ssid=3D1 (0x1) > key_mgmt: 0x2 > PSK (ASCII passphrase) - hexdump_ascii(len=3D26): [REMOVED] > PSK (from passphrase) - hexdump(len=3D32): [REMOVED] > Priority group 0 > id=3D0 ssid=3D'GNCWIRELESS' > Initializing interface (2) 'ndis0' > 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=3D0 > EAPOL: External notification - portValid=3D0 > NDIS: 1 adapter names found > NDIS: 1 adapter descriptions found > NDIS: 0 - ndis0 - ndis0 > NDIS: Adapter description prefix 'ndis0' > ndis_get_oid: oid=3D0xd010122 len (512) failed > NDIS: verifying driver WPA capability > NDIS: WPA key management supported > NDIS: WPA-PSK key management supported > ndis_set_oid: oid=3D0xd01011b len (4) failed > NDIS: Failed to set OID_802_11_ENCRYPTION_STATUS (6) > NDIS: TKIP encryption supported > NDIS: driver supports WPA > NDIS: driver capabilities: key_mgmt 0x5 enc 0x4 auth 0x3 > Own MAC address: **:**:**:**:**:** > wpa_driver_ndis_set_wpa: enabled=3D1 > ndis_get_oid: oid=3D0xd010101 len (6) failed > My /etc/wpa_supplicant.conf: >=20 > ctrl_interface=3D/var/run/wpa_supplicant > ctrl_interface_group=3Dwheel > # > # home network; allow all valid ciphers > network=3D{ > ssid=3D"GNCWIRELESS" > scan_ssid=3D1 > key_mgmt=3DWPA-PSK > psk=3D"**********************" > } Does it make a difference if you additionally put the bssid in /etc/wpa_supplicant.conf? Since I upgraded from RELENG_5 to RELENG_6 I have to use both the ssid and the bssid to get ndis0 to associate. I only use wep encryption and don't know if a failed attempt to associate with wpa_supplicant can cause a reboot, but it's worth a try. You should also check if you can associate to the (unencrypted) network with ifconfig by hand. Fabian --=20 http://www.fabiankeil.de/ --Sig_Zovd=GNSKv00BncINHOJxwR Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFEBYTXjV8GA4rMKUQRAhJdAJ46KS2jUkY4qLW05rPe8wJS2+7ycQCeLw8l cpGxFN9tjTPWAZUbTIHlN8o= =7UH/ -----END PGP SIGNATURE----- --Sig_Zovd=GNSKv00BncINHOJxwR--