From owner-freebsd-bugs@FreeBSD.ORG Fri Oct 10 14:20:11 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00F5B1065690 for ; Fri, 10 Oct 2008 14:20:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CCC378FC1D for ; Fri, 10 Oct 2008 14:20:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m9AEKAkk068201 for ; Fri, 10 Oct 2008 14:20:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m9AEKA9E068200; Fri, 10 Oct 2008 14:20:10 GMT (envelope-from gnats) Resent-Date: Fri, 10 Oct 2008 14:20:10 GMT Resent-Message-Id: <200810101420.m9AEKA9E068200@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, David Wolfskill Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D00D1065693 for ; Fri, 10 Oct 2008 14:15:49 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by mx1.freebsd.org (Postfix) with ESMTP id EDF958FC39 for ; Fri, 10 Oct 2008 14:15:48 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (localhost [127.0.0.1]) by bunrab.catwhisker.org (8.13.3/8.13.3) with ESMTP id m9AE0LJK094036 for ; Fri, 10 Oct 2008 07:00:21 -0700 (PDT) (envelope-from david@bunrab.catwhisker.org) Received: (from david@localhost) by bunrab.catwhisker.org (8.13.3/8.13.1/Submit) id m9AE0K6i094035; Fri, 10 Oct 2008 07:00:20 -0700 (PDT) (envelope-from david) Message-Id: <200810101400.m9AE0K6i094035@bunrab.catwhisker.org> Date: Fri, 10 Oct 2008 07:00:20 -0700 (PDT) From: David Wolfskill To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: bin/128001: wpa_supplicant(8), wlan(4), and wi(4) issues X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: David Wolfskill List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Oct 2008 14:20:11 -0000 >Number: 128001 >Category: bin >Synopsis: wpa_supplicant(8), wlan(4), and wi(4) issues >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 10 14:20:10 UTC 2008 >Closed-Date: >Last-Modified: >Originator: David Wolfskill >Release: FreeBSD 8.0-CURRENT i386 >Organization: Woflskill & Dowling Residence >Environment: System: FreeBSD g1-37.catwhisker.org 8.0-CURRENT FreeBSD 8.0-CURRENT #829: Thu Oct 9 17:04:36 PDT 2008 root@localhost:/common/S4/obj/usr/src/sys/CANARY i386 >Description: wpa_supplicant(8) fails to properly associate with a WEP-only access point, and its man page fails to document command-line arguments with which it is invoked by default on a FreeBSD system. >How-To-Repeat: For the former, set up an access point to use WEP. In my case, I have a couple of access points, one on channel 1; the other on channel 11, each of which uses the same static WEP key and the same list of permitted MAC addresses for clients. Each uses the same SSID, and neither broadcasts it. This has worked well for years for plain WEP, and it still works for an an(4) device, as seen in the following ifconfig(8) output: g1-37(8.0-C)[1] ifconfig xl0: flags=8802 metric 0 mtu 1500 options=9 ether 00:08:74:e9:c9:41 media: Ethernet autoselect (none) status: no carrier fwe0: flags=8802 metric 0 mtu 1500 options=8 ether 42:4f:c0:2c:30:41 ch 1 dma -1 fwip0: flags=8802 metric 0 mtu 1500 lladdr 42.4f.c0.0.7.2c.30.41.a.2.ff.fe.0.0.0.0 plip0: flags=108810 metric 0 mtu 1500 lo0: flags=8049 metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 wi0: flags=8843 metric 0 mtu 2290 ether 00:02:2d:5b:2c:78 media: IEEE 802.11 Wireless Ethernet autoselect mode 11b status: associated an0: flags=8843 metric 0 mtu 1500 ether 00:40:96:40:5d:44 inet 172.17.1.37 netmask 0xffff0000 broadcast 172.17.255.255 media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps) status: associated ssid 1:lmdhw-net channel 1 (2412 Mhz 11b) stationname FreeBSD authmode OPEN privacy ON deftxkey 1 txpower 0 rtsthreshold 0 fragthreshold 0 bmiss 0 ucastrate 0 mcastrate 0 mgmtrate 0 maxretry 0 roaming DEVICE bintval 0 wlan0: flags=8843 metric 0 mtu 1500 ether 00:02:2d:5b:2c:78 media: IEEE 802.11 Wireless Ethernet DS/2Mbps mode 11b status: associated ssid "" channel 3 (2422 Mhz 11b) bssid 00:02:2d:5b:2c:78 country US authmode WPA1+WPA2/802.11i privacy ON deftxkey UNDEF txpower 0 bmiss 7 scanvalid 60 roaming MANUAL bintval 0 g1-37(8.0-C)[2] ancontrol -S | grep -i bssid Current BSSID: [ 00:04:5a:cd:d4:17 ] g1-37(8.0-C)[3] The highest-priority stanza in /etc/wpa_supplicant.conf -- slightly redacted (to hide the static WEP key) reads: network={ ssid="lmdhw-net" scan_ssid=1 key_mgmt=NONE wep_tx_keyidx=0 wep_key0=fedcba9876 auth_alg=OPEN group=WEP40 priority=127 } but as you see above, the wi0 NIC claims to be associated with some other access point. The wi0 NIC in question works -- without the assistance of wpa_supplicant -- in the same environment when the same machine is running RELENG_6, so it isn't merely a matter of the access points not being configured to accept the MAC address of the NIC. Also, as I was preparing to try to debug this, I checked the curently-running wpa_supplicant process and saw: g1-37(8.0-C)[3] ps ax | grep wpa 529 ?? Ss 0:00.50 /usr/sbin/wpa_supplicant -s -B -i wlan0 -c /etc/wpa_supplicant.conf -D bsd -P /var/run/wpa_supplicant g1-37(8.0-C)[4] but the wpa_supplicant man page does not document the -D or -P options: g1-37(8.0-C)[5] man wpa_supplicant | egrep -- '-(s|B|D|P)' wpa_supplicant [-BdehLqsvw] -i ifname -c config-file -s Send log messages through syslog(3) instead of to the terminal. -B Detach from the controlling terminal and run as a daemon process g1-37(8.0-C)[6] >Fix: Use a different NIC, though that isn't an attractive option, and may not always be feasible. I'll be happy to test. >Release-Note: >Audit-Trail: >Unformatted: