From owner-freebsd-current@FreeBSD.ORG Thu Jun 16 20:11:12 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 436D216A41C for ; Thu, 16 Jun 2005 20:11:12 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9B1E43D4C for ; Thu, 16 Jun 2005 20:11:11 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j5GKB9Hj014461; Thu, 16 Jun 2005 13:11:09 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j5GKB9Hj014460; Thu, 16 Jun 2005 13:11:09 -0700 Date: Thu, 16 Jun 2005 13:11:09 -0700 From: Brooks Davis To: Sam Leffler Message-ID: <20050616201109.GA13900@odin.ac.hmc.edu> References: <20050616191450.GA98695@teardrop.org> <42B1D9D9.7040604@errno.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uAKRQypu60I7Lcqm" Content-Disposition: inline In-Reply-To: <42B1D9D9.7040604@errno.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-current@freebsd.org, James Snow Subject: Re: WPA Supplicant doesn't see my SSIDs? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jun 2005 20:11:12 -0000 --uAKRQypu60I7Lcqm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 16, 2005 at 12:58:17PM -0700, Sam Leffler wrote: > James Snow wrote: > >Now that we've got WPA support I decided to give it a whirl with one of > >the WPA-enabled wireless networks I spend time near. I've successfully > >brought up a Windows machine on this network, but FreeBSD eludes me. It > >seems like the ath driver or wpa_supplicant are not seeing the SSID for > >some reason. > > > >/etc/wpa_supplicant.conf: > > > >ctrl_interface=3D/var/run/wpa_supplicant > >ctrl_interface_group=3D0 > >eapol_version=3D1 > >ap_scan=3D1 > > > >network=3D{ > > ssid=3D"external" > > scan_ssid=3D1 > > psk=3D"MyPreSharedKey" > >} > > > >Output from wpa_supplicant -ddKt -i ath0 -c /etc/wpa_supplicant.conf -Db= sd: > > > >Jun 16 15:02:16.600289: Initializing interface 'ath0' conf=20 > >'/etc/wpa_supplicant.conf' driver 'default' > >Jun 16 15:02:16.600422: Configuration file '/etc/wpa_supplicant.conf' -> > >'/etc/wpa_supplicant.conf' > >Jun 16 15:02:16.600440: Reading configuration file > >'/etc/wpa_supplicant.conf' > >Jun 16 15:02:16.600483: ctrl_interface=3D'/var/run/wpa_supplicant' > >Jun 16 15:02:16.600950: ctrl_interface_group=3D0 > >Jun 16 15:02:16.600973: eapol_version=3D1 > >Jun 16 15:02:16.600984: ap_scan=3D1 > >Jun 16 15:02:16.600992: Line: 6 - start of a new network block > >Jun 16 15:02:16.601005: ssid - hexdump_ascii(len=3D8): > > 65 78 74 65 72 6e 61 6c external = =20 > >Jun 16 15:02:16.601026: scan_ssid=3D1 (0x1) > > > >... ... > > > >Jun 16 15:02:16.677502: Priority group 0 > >Jun 16 15:02:16.677512: id=3D0 ssid=3D'external' > >Jun 16 15:02:16.677523: Initializing interface (2) 'ath0' > >Jun 16 15:02:16.677847: Own MAC address: 00:0e:9b:6e:60:fc > >Jun 16 15:02:16.677862: wpa_driver_bsd_set_wpa: enabled=3D1 > >Jun 16 15:02:16.677875: wpa_driver_bsd_del_key: keyidx=3D0 > >Jun 16 15:02:16.677888: wpa_driver_bsd_del_key: keyidx=3D1 > >Jun 16 15:02:16.677899: wpa_driver_bsd_del_key: keyidx=3D2 > >Jun 16 15:02:16.677910: wpa_driver_bsd_del_key: keyidx=3D3 > >Jun 16 15:02:16.677921: wpa_driver_bsd_set_countermeasures: enabled=3D0 > >Jun 16 15:02:16.677931: wpa_driver_bsd_set_drop_unencrypted: enabled=3D1 > >Jun 16 15:02:16.677947: Setting scan request: 0 sec 100000 usec > >Jun 16 15:02:16.778153: Starting AP scan (specific SSID) > >Jun 16 15:02:16.778167: Scan SSID - hexdump_ascii(len=3D8): > > 65 78 74 65 72 6e 61 6c external = =20 > >Jun 16 15:02:24.734030: Received 0 bytes of scan results (4 BSSes) > >Jun 16 15:02:24.734051: Scan results: 4 > >Jun 16 15:02:24.734065: Selecting BSS from priority group 0 > >Jun 16 15:02:24.734075: 0: 00:0e:83:af:77:f5 ssid=3D'' wpa_ie_len=3D26= =20 > >rsn_ie_len=3D0 > >Jun 16 15:02:24.734087: skip - SSID mismatch > >Jun 16 15:02:24.734096: 1: 00:0e:38:51:ca:6c ssid=3D'' wpa_ie_len=3D26= =20 > >rsn_ie_len=3D0 > >Jun 16 15:02:24.734108: skip - SSID mismatch > >Jun 16 15:02:24.734116: 2: 00:0f:66:18:20:00 ssid=3D'SDC-WAP-001'=20 > >wpa_ie_len=3D0 rsn_ie_len=3D0 > >Jun 16 15:02:24.734129: skip - no WPA/RSN IE=20 > >Jun 16 15:02:24.734137: 3: 00:07:eb:30:c6:de ssid=3D'' wpa_ie_len=3D0=20 > >rsn_ie_len=3D0 > >Jun 16 15:02:24.734149: skip - no WPA/RSN IE > >Jun 16 15:02:24.734157: No suitable AP found. > >Jun 16 15:02:24.734168: Setting scan request: 5 sec 0 usec > >^CJun 16 15:02:26.482136: Signal 2 received - terminating > >Jun 16 15:02:26.482153: No keys have been configured - skip key clearing > >Jun 16 15:02:26.482163: wpa_driver_bsd_set_wpa: enabled=3D0 > >Jun 16 15:02:26.482180: wpa_driver_bsd_set_drop_unencrypted: enabled=3D0 > >Jun 16 15:02:26.482191: wpa_driver_bsd_set_countermeasures: enabled=3D0 > >Jun 16 15:02:26.482202: No keys have been configured - skip key clearing > >Jun 16 15:02:26.485314: wpa_driver_bsd_set_wpa: enabled=3D0 > > > >I know from my Windows machine that the MAC addresses for my APs are IDs > >0 and 1 in the above output. 2 and 3 are some other networks that also > >happen to be in the area. The odd thing is the empty SSID string which > >leads to an SSID mismatch. I tried setting my SSID string to an empty > >string ("") but still got a mismatch. > > > >Even if I had the PSK wrong or some other encryption setting wrong, I > >should still see the SSID, shouldn't I? > > > >Any suggestions? >=20 > What does ifconfig ath0 list scan show? Try not setting scan_ssid in=20 > the network block; not sure that it does anything useful. Also you=20 > terminate the scan after one try; when a channel is crowded sometimes=20 > the first scan may not find all ap's on it. >=20 > You can also build the 80211debug program in src/tools/tools/ath and do= =20 > 80211debug scan to get debug msgs from kernel sent to the console. scan_ssid does work (or at least did a couple months ago), but it's only useful for annoying networks that disable broadcast SSID. It really cuts into association performance when it's on since you can't associate with anything else while it's scanning for the AP. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --uAKRQypu60I7Lcqm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCsdzdXY6L6fI4GtQRAkHwAJ9+On7LJgcU37K4oekTYU7rfH1kXgCdEUyy i8LHg3wHm0xRQP6yrQEmPUU= =jhts -----END PGP SIGNATURE----- --uAKRQypu60I7Lcqm--