From owner-freebsd-mobile@FreeBSD.ORG Fri Jul 13 20:22:12 2007 Return-Path: X-Original-To: freebsd-mobile@freebsd.org Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 60DA516A406; Fri, 13 Jul 2007 20:22:12 +0000 (UTC) (envelope-from bmah@freebsd.org) Received: from a.mail.sonic.net (a.mail.sonic.net [64.142.16.245]) by mx1.freebsd.org (Postfix) with ESMTP id 4395713C4B5; Fri, 13 Jul 2007 20:22:12 +0000 (UTC) (envelope-from bmah@freebsd.org) Received: from sakai.kitchenlab.org (sakai.kitchenlab.org [64.142.31.108]) by a.mail.sonic.net (8.13.8.Beta0-Sonic/8.13.7) with ESMTP id l6DKMBbh013585 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 13 Jul 2007 13:22:11 -0700 Received: from phantom.kitchenlab.org (phantom.kitchenlab.org [64.142.31.109]) by sakai.kitchenlab.org (8.14.1/8.14.1) with ESMTP id l6DKM9lE021845 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 13 Jul 2007 13:22:11 -0700 (PDT) (envelope-from bmah@freebsd.org) Date: Fri, 13 Jul 2007 13:22:09 -0700 From: "Bruce A. Mah" To: freebsd-mobile@freebsd.org, freebsd-net@freebsd.org Message-ID: <20070713202015.GA1718@phantom.kitchenlab.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7JfCtLOvnd9MIVvH" Content-Disposition: inline X-Image-Url: http://www.kitchenlab.org/~bmah/Images/bmah-cisco-small.gif X-url: http://www.kitchenlab.org/~bmah/ User-Agent: Mutt/1.5.15 (2007-04-06) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (sakai.kitchenlab.org [64.142.31.108]); Fri, 13 Jul 2007 13:22:11 -0700 (PDT) X-Virus-Scanned: ClamAV 0.90.3/3662/Fri Jul 13 10:53:47 2007 on sakai.kitchenlab.org X-Virus-Status: Clean Cc: bmah@freebsd.org Subject: ath(4), wpa_supplicant, WPA2, Netgear WG302 problem X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2007 20:22:12 -0000 --7JfCtLOvnd9MIVvH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I'm having a problem getting a Netgear WG511T in my FreeBSD CURRENT laptop to do WPA2-PSK with a Netgear WG302 access point. I'm hoping someone here can give me a nudge in the right direction to help troubleshoot this. The laptop is an old Sony Vaio (PCG-Z505HS). The Netgear WG511T probes thusly: ath0: mem 0x88000000-0x8800ffff irq 9 at device 0.0 on cardb= us0 ath0: [ITHREAD] ath0: using obsoleted if_watchdog interface ath0: Ethernet address: 00:0f:b5:af:81:39 ath0: mac 7.9 phy 4.5 radio 5.6 The OS is FreeBSD HEAD as of yesterday, GENERIC kernel. Note that this has the recent HAL import, as well as wpa_supplicant v0.5.8: ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) The AP is a Netgear WG302 with Firmware 4.2.17. It's configured for WPA2-PSK. Several other clients can communicate with this AP without any problems. A slightly sanitized wpa_supplicant.conf is: ----- network=3D{ ssid=3D"kitchenlab.org" scan_ssid=3D1 psk=3D"REAL_PSK_REMOVED" } ----- Some output from wpa_supplicant -dd is below: ----- Starting AP scan (specific SSID) Scan SSID - hexdump_ascii(len=3D14): 6b 69 74 63 68 65 6e 6c 61 62 2e 6f 72 67 kitchenlab.org =20 Received 0 bytes of scan results (6 BSSes) Scan results: 6 Selecting BSS from priority group 0 Try to find WPA-enabled AP 0: 00:14:6c:6f:2e:7d ssid=3D'kitchenlab.org' wpa_ie_len=3D0 rsn_ie_len=3D26= caps=3D0x31 selected based on RSN IE selected WPA AP 00:14:6c:6f:2e:7d ssid=3D'kitchenlab.org' Try to find non-WPA AP Trying to associate with 00:14:6c:6f:2e:7d (SSID=3D'kitchenlab.org' freq=3D= 2412 MHz) Cancelling scan request WPA: clearing own WPA/RSN IE Automatic auth_alg selection: 0x1 wpa_driver_bsd_set_auth_alg alg 0x1 authmode 1 RSN: using IEEE 802.11i/D9.0 WPA: Selected cipher suites: group 8 pairwise 24 key_mgmt 2 proto 2 WPA: clearing AP WPA IE WPA: set AP RSN IE - hexdump(len=3D26): 30 18 01 00 00 0f ac 02 02 00 00 0f= ac 02 00 0f ac 04 01 00 00 0f ac 02 01 00 WPA: using GTK TKIP WPA: using PTK CCMP WPA: using KEY_MGMT WPA-PSK WPA: Set own WPA IE default - hexdump(len=3D22): 30 14 01 00 00 0f ac 02 01= 00 00 0f ac 04 01 00 00 0f ac 02 00 00 No keys have been configured - skip key clearing wpa_driver_bsd_set_drop_unencrypted: enabled=3D1 State: SCANNING -> ASSOCIATING wpa_driver_bsd_associate: ssid 'kitchenlab.org' wpa ie len 22 pairwise 3 gr= oup 2 key mgmt 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 RSN: added PMKSA cache candidate 00:14:6c:6f:2e:7d prio 1000 RSN: processing PMKSA candidate list RSN: not in suitable state for new pre-authentication Authentication with 00:00:00:00:00:00 timed out. BSSID 00:14:6c:6f:2e:7d blacklist count incremented to 2 No keys have been configured - skip key clearing State: ASSOCIATING -> DISCONNECTED EAPOL: External notification - portEnabled=3D0 EAPOL: External notification - portValid=3D0 EAPOL: External notification - EAP success=3D0 Setting scan request: 0 sec 0 usec State: DISCONNECTED -> SCANNING ----- It's interesting that the WG511T can associate with this AP if both are configured for WEP, and it can do WPA2 with a Linksys WRT54G (unknown version). Also I saw superficially similar results while running 6.2-RELEASE and RELENG_6 on the same hardware. Debugging by Google hasn't helped me yet either, so I'm running out of ideas. Any thoughts? Thanks! Bruce. --7JfCtLOvnd9MIVvH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) iD8DBQFGl97x2MoxcVugUsMRAmtbAKDfSURNp1VcU+ln1PB3PnxErpvDjACfXYmA dAA3J/j5rJvh/wn3uXaqWi8= =yJUc -----END PGP SIGNATURE----- --7JfCtLOvnd9MIVvH--