From owner-freebsd-net@FreeBSD.ORG Wed Apr 8 16:53:02 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 103B41065675 for ; Wed, 8 Apr 2009 16:53:02 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id BD4468FC1F for ; Wed, 8 Apr 2009 16:53:01 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id n38GqxjA051737 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 8 Apr 2009 09:53:00 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <49DCD66B.6040504@freebsd.org> Date: Wed, 08 Apr 2009 09:52:59 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.18 (X11/20081209) MIME-Version: 1.0 To: Boris Kochergin References: <49DCAC1F.9000708@acm.poly.edu> <49DCC1EB.3040706@freebsd.org> In-Reply-To: <49DCC1EB.3040706@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-CTc-dcc2-Metrics: ebb.errno.com; whitelist Cc: freebsd-net@freebsd.org Subject: Re: Multi-BSS problem with Atheros 5212 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Apr 2009 16:53:02 -0000 Sam Leffler wrote: > Boris Kochergin wrote: >> Ahoy. I'm having trouble with multiple hostap-mode wlan >> pseudo-devices. The machine is an 8-CURRENT from yesterday: >> >> # uname -a >> FreeBSD test 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Tue Apr 7 16:54:56 >> UTC 2009 root@test:/usr/obj/usr/src/sys/GENERIC i386 >> >> # dmesg | grep ath >> ath0: mem 0xf4100000-0xf410ffff irq 11 at device 13.0 >> on pci0 >> ath0: [ITHREAD] >> ath0: AR2413 mac 7.9 RF2413 phy 4.5 >> >> # cat /etc/rc.conf >> wlans_ath0="wlan0 wlan1 wlan2" >> create_args_wlan0="wlanmode hostap bssid" >> create_args_wlan1="wlanmode hostap bssid" >> create_args_wlan2="wlanmode hostap bssid" >> ifconfig_wlan0="ssid wlan0 wepmode off up" >> ifconfig_wlan1="ssid wlan1 wepmode off up" >> ifconfig_wlan2="ssid wlan2 wepmode off up" >> >> # ifconfig >> ath0: flags=8843 metric 0 mtu >> 2290 >> ether 00:18:e7:33:5e:24 >> media: IEEE 802.11 Wireless Ethernet autoselect mode 11g >> status: running >> fxp0: flags=8843 metric 0 mtu >> 1500 >> options=8 >> ether 00:90:27:72:c4:f3 >> inet 10.0.0.128 netmask 0xffffff00 broadcast 10.0.0.255 >> media: Ethernet autoselect (100baseTX ) >> status: active >> lo0: flags=8049 metric 0 mtu 16384 >> options=3 >> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 >> inet6 ::1 prefixlen 128 >> inet 127.0.0.1 netmask 0xff000000 >> wlan0: flags=8843 metric 0 >> mtu 1500 >> ether 00:18:e7:33:5e:24 >> media: IEEE 802.11 Wireless Ethernet autoselect mode 11g >> status: running >> ssid wlan0 channel 11 (2462 Mhz 11g) bssid 00:18:e7:33:5e:24 >> country US ecm authmode OPEN privacy OFF txpower 23 scanvalid 60 >> protmode CTS wme burst dtimperiod 1 -dfs >> wlan1: flags=8843 metric 0 >> mtu 1500 >> ether 06:18:e7:33:5e:24 >> media: IEEE 802.11 Wireless Ethernet autoselect mode 11g >> status: running >> ssid wlan1 channel 11 (2462 Mhz 11g) bssid 06:18:e7:33:5e:24 >> country US ecm authmode OPEN privacy OFF txpower 23 scanvalid 60 >> protmode CTS wme burst dtimperiod 1 -dfs >> wlan2: flags=8843 metric 0 >> mtu 1500 >> ether 0a:18:e7:33:5e:24 >> media: IEEE 802.11 Wireless Ethernet autoselect mode 11g >> status: running >> ssid wlan2 channel 11 (2462 Mhz 11g) bssid 0a:18:e7:33:5e:24 >> country US ecm authmode OPEN privacy OFF txpower 23 scanvalid 60 >> protmode CTS wme burst dtimperiod 1 -dfs >> >> The client is a 7.0 machine with another 5212 card: >> >> # uname -a >> FreeBSD peer 7.0-RELEASE-p10 FreeBSD 7.0-RELEASE-p10 #0: Mon Mar 23 >> 09:26:18 EDT 2009 root@peer:/usr/obj/usr/src/sys/PEER i386 >> >> # dmesg | grep ath >> ath_hal: 0.10.5.6 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, >> RF2413, RF5413, RF2133, RF2425, RF2417) >> ath0: mem 0xa8410000-0xa841ffff irq 11 at device 0.0 >> on cardbus0 >> ath0: [ITHREAD] >> ath0: using obsoleted if_watchdog interface >> ath0: Ethernet address: 00:14:d1:42:21:5a >> ath0: mac 7.9 phy 4.5 radio 5.6 >> >> The three SSIDs configured on the CURRENT machine show up in a scan: >> >> # ifconfig ath0 scan | grep wlan >> wlan0 00:18:e7:33:5e:24 11 54M -66:-93 100 ES WME >> wlan1 06:18:e7:33:5e:24 11 54M -65:-93 100 ES WME >> wlan2 0a:18:e7:33:5e:24 11 54M -65:-93 100 ES WME >> >> The client is only able to associate with wlan1, however. When >> scanning channels while attempting to associate with any of the other >> ones, it gets stuck on channel 11 for a while before moving on, which >> seems relevant. Also interesting is the fact that if i do "ifconfig >> ath0 down" on the CURRENT machine, followed by, for example, >> "ifconfig ath0 ssid wlan0" (which did not associate before) on the >> client, followed by "ifconfig ath0 up" on the CURRENT machine, the >> client will associate with wlan0, but will not be able to associate >> with wlan1 or wlan2. Any ideas? > wlandebug scan+auth+assoc on the client machine will show you why you > cannot associate. You can also enable the same info on the ap side to > see what it thinks is happening. FWIW I just setup 3 vap's as you did above and hooked them into a bridge. I verified I could associate and pass traffic using a MBPro. No problems. I also destroyed the bridge and re-tested w/o issues. Regardless the debug msgs should identify what your problem is. Sam