From owner-freebsd-stable@FreeBSD.ORG Fri Apr 21 07:26:54 2006 Return-Path: X-Original-To: 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 55E7F16A405 for ; Fri, 21 Apr 2006 07:26:54 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 151E543D4C for ; Fri, 21 Apr 2006 07:26:52 +0000 (GMT) (envelope-from uspoerlein@gmail.com) Received: by nproxy.gmail.com with SMTP id m18so117599nfc for ; Fri, 21 Apr 2006 00:26:51 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:mail-followup-to:mime-version:content-type:content-disposition; b=CQi17hdShUqJmZxGhrY4fTA4sGmN+rLexCz1zSgqAhg7pCEGapnBOslPsNy26HWuMI5t4MCw89hqMDD5DSrOCXqyLG7MejTc1g97B8GBqE8+T7a3nzhQBTTcwslLi4P6947sGcgemf+PibUFV5WW3mMUswtvNkGxyW6+Dc2HYBE= Received: by 10.49.21.12 with SMTP id y12mr1086468nfi; Fri, 21 Apr 2006 00:26:51 -0700 (PDT) Received: from roadrunner.q.local ( [217.185.116.24]) by mx.gmail.com with ESMTP id c28sm1745796nfb.2006.04.21.00.26.48; Fri, 21 Apr 2006 00:26:51 -0700 (PDT) Received: from roadrunner.q.local (localhost [127.0.0.1]) by roadrunner.q.local (8.13.6/8.13.6) with ESMTP id k3KIS42l002278; Thu, 20 Apr 2006 20:28:04 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Received: (from q@localhost) by roadrunner.q.local (8.13.6/8.13.6/Submit) id k3KIS2Hi002277; Thu, 20 Apr 2006 20:28:02 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Date: Thu, 20 Apr 2006 20:28:02 +0200 From: Ulrich Spoerlein To: stable@freebsd.org Message-ID: <20060420182802.GA2218@roadrunner.buck.local> Mail-Followup-To: stable@freebsd.org, sam@freebsd.org, damien.bergamini@free.fr MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gKMricLos+KVdGMg" Content-Disposition: inline Cc: damien.bergamini@free.fr, sam@freebsd.org Subject: ipw + WPA not working on 6.1-RC 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: Fri, 21 Apr 2006 07:26:54 -0000 --gKMricLos+KVdGMg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Good day everyone, I'm CC'ing you Sam and Damien, as you are the persons most familiar with the involved components (I guess). I set up an FreeBSD based WPA-AP with an ural device, which is working fine. The hostapd.conf is roughly like this: interface=3Dural0 driver=3Dbsd logger_syslog=3D-1 logger_syslog_level=3D0 logger_stdout=3D-1 logger_stdout_level=3D0 debug=3D4 dump_file=3D/tmp/hostapd.dump ctrl_interface=3D/var/run/hostapd ctrl_interface_group=3Dwheel ssid=3Dfoo wpa=3D1 wpa_passphrase=3Dbarbarbar wpa_key_mgmt=3DWPA-PSK wpa_pairwise=3DTKIP And on the client, I'm using this wpa_supplicant.conf ctrl_interface_group=3D0 eapol_version=3D1 ap_scan=3D1 fast_reauth=3D1 network=3D{ ssid=3D"foo" key_mgmt=3DWPA-PSK psk=3D"barbarbar" } The device sees the AP # ifconfig ipw0 list scan SSID BSSID CHAN RATE S:N INT CAPS foo 00:17:31:13:24:65 6 11M 58:0 100 EPS WPA yet, when running wpa_supplicant, I only get looping output, saying=20 State: ASSOCIATING -> ASSOCIATING over and over again. # wpa_supplicant -D bsd -i ipw0 -dd -c /etc/wpa_supplicant.conf Initializing interface 'ipw0' conf '/etc/wpa_supplicant.conf' driver 'bsd' = ctrl_interface 'N/A' Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf' Reading configuration file '/etc/wpa_supplicant.conf' ctrl_interface_group=3D0 eapol_version=3D1 ap_scan=3D1 fast_reauth=3D1 Line: 6 - start of a new network block ssid - hexdump_ascii(len=3D3): 66 6f 6f foo =20 key_mgmt: 0x2 PSK (ASCII passphrase) - hexdump_ascii(len=3D9): [REMOVED] PSK (from passphrase) - hexdump(len=3D32): [REMOVED] Priority group 0 id=3D0 ssid=3D'foo' Initializing interface (2) 'ipw0' 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 Own MAC address: 00:0c:f1:3b:f0:41 wpa_driver_bsd_set_wpa: enabled=3D1 wpa_driver_bsd_set_wpa_internal: wpa=3D3 privacy=3D1 wpa_driver_bsd_del_key: keyidx=3D0 wpa_driver_bsd_del_key: keyidx=3D1 wpa_driver_bsd_del_key: keyidx=3D2 wpa_driver_bsd_del_key: keyidx=3D3 wpa_driver_bsd_set_countermeasures: enabled=3D0 wpa_driver_bsd_set_drop_unencrypted: enabled=3D1 Setting scan request: 0 sec 100000 usec Added interface ipw0 State: DISCONNECTED -> SCANNING Starting AP scan (broadcast SSID) Received 0 bytes of scan results (1 BSSes) Scan results: 1 Selecting BSS from priority group 0 0: 00:17:31:13:24:65 ssid=3D'foo' wpa_ie_len=3D24 rsn_ie_len=3D0 caps=3D0x31 selected based on WPA IE Trying to associate with 00:17:31:13:24:65 (SSID=3D'foo' freq=3D2437 MHz) Cancelling scan request WPA: clearing own WPA/RSN IE Automatic auth_alg selection: 0x1 WPA: using IEEE 802.11i/D3.0 WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 WPA: set AP WPA IE - hexdump(len=3D24): dd 16 00 50 f2 01 01 00 00 50 f2 02= 01 00 00 50 f2 02 01 00 00 50 f2 02 WPA: clearing AP RSN IE WPA: using GTK TKIP WPA: using PTK TKIP WPA: using KEY_MGMT WPA-PSK WPA: Set own WPA IE default - hexdump(len=3D24): dd 16 00 50 f2 01 01 00 00= 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 No keys have been configured - skip key clearing wpa_driver_bsd_set_drop_unencrypted: enabled=3D1 State: SCANNING -> ASSOCIATING wpa_driver_bsd_associate: ssid 'foo' wpa ie len 24 pairwise 2 group 2 key m= gmt 1 wpa_driver_bsd_associate: set PRIVACY 1 Setting authentication timeout: 10 sec 0 usec EAPOL: External notification - EAP success=3D0 EAPOL: External notification - EAP fail=3D0 EAPOL: External notification - portControl=3DAuto Received 0 bytes of scan results (1 BSSes) Scan results: 1 Selecting BSS from priority group 0 0: 00:17:31:13:24:65 ssid=3D'foo' wpa_ie_len=3D24 rsn_ie_len=3D0 caps=3D0x31 selected based on WPA IE Trying to associate with 00:17:31:13:24:65 (SSID=3D'foo' freq=3D2437 MHz) Cancelling scan request WPA: clearing own WPA/RSN IE Automatic auth_alg selection: 0x1 WPA: using IEEE 802.11i/D3.0 WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 WPA: set AP WPA IE - hexdump(len=3D24): dd 16 00 50 f2 01 01 00 00 50 f2 02= 01 00 00 50 f2 02 01 00 00 50 f2 02 WPA: clearing AP RSN IE WPA: using GTK TKIP WPA: using PTK TKIP WPA: using KEY_MGMT WPA-PSK WPA: Set own WPA IE default - hexdump(len=3D24): dd 16 00 50 f2 01 01 00 00= 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 No keys have been configured - skip key clearing wpa_driver_bsd_set_drop_unencrypted: enabled=3D1 State: ASSOCIATING -> ASSOCIATING wpa_driver_bsd_associate: ssid 'foo' wpa ie len 24 pairwise 2 group 2 key m= gmt 1 wpa_driver_bsd_associate: set PRIVACY 1 Setting authentication timeout: 10 sec 0 usec EAPOL: External notification - EAP success=3D0 EAPOL: External notification - EAP fail=3D0 EAPOL: External notification - portControl=3DAuto Received 0 bytes of scan results (1 BSSes) Scan results: 1 Selecting BSS from priority group 0 0: 00:17:31:13:24:65 ssid=3D'foo' wpa_ie_len=3D24 rsn_ie_len=3D0 caps=3D0x31 selected based on WPA IE Trying to associate with 00:17:31:13:24:65 (SSID=3D'foo' freq=3D2437 MHz) Cancelling scan request WPA: clearing own WPA/RSN IE Automatic auth_alg selection: 0x1 WPA: using IEEE 802.11i/D3.0 WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 WPA: set AP WPA IE - hexdump(len=3D24): dd 16 00 50 f2 01 01 00 00 50 f2 02= 01 00 00 50 f2 02 01 00 00 50 f2 02 WPA: clearing AP RSN IE WPA: using GTK TKIP WPA: using PTK TKIP WPA: using KEY_MGMT WPA-PSK WPA: Set own WPA IE default - hexdump(len=3D24): dd 16 00 50 f2 01 01 00 00= 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 No keys have been configured - skip key clearing wpa_driver_bsd_set_drop_unencrypted: enabled=3D1 State: ASSOCIATING -> ASSOCIATING ^C Of course I ran hostapd with -dd too, but there is no output other than the startup info. I read the if_ipw.c file, and there is an #if 0 block about WPA stuff, so I recompiled the module with this block turned on, but still no WPA in the device cap list # ifconfig ipw0 list caps ipw0=3D1a300 I have firmware 1.3 installed and am running 6.1-RC, btw. So, is ipw+WPA supposed to work, or not? Ulrich Spoerlein --=20 PGP Key ID: 20FEE9DD Encrypted mail welcome! Fingerprint: AEC9 AF5E 01AC 4EE1 8F70 6CBD E76E 2227 20FE E9DD Which is worse: ignorance or apathy? Don't know. Don't care. --gKMricLos+KVdGMg Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQFER9Ky524iJyD+6d0RAq1vAKCsRGvZmAyMMPq0G7zh7mIkO54sxACfddC0 oIgnVpKQ3eyokAaprpS42tg= =RyAJ -----END PGP SIGNATURE----- --gKMricLos+KVdGMg--