Date: Fri, 30 Sep 2011 12:57:05 +0200 From: Bernhard Schmidt <bschmidt@freebsd.org> To: Adrian Chadd <adrian.chadd@gmail.com> Cc: freebsd-wireless@freebsd.org Subject: Re: Hm, hostap+sta channel information isn't always correctly propagated Message-ID: <CAAgh0_aqoC4Wau2Pp88NJaZQTuZHUA_ru9mvVgQdNyLuogq1kQ@mail.gmail.com> In-Reply-To: <CAJ-Vmo=F9ADWL8c-PBeBcs2AykiJcomzWPupV-Sea-Dv1HT8HA@mail.gmail.com> References: <CAJ-Vmo=F9ADWL8c-PBeBcs2AykiJcomzWPupV-Sea-Dv1HT8HA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 30, 2011 at 10:21, Adrian Chadd <adrian.chadd@gmail.com> wrote: > As part of trying to replicate what Ed's seeing, I did this: > > ifconfig wlanX create wlandev ath1 ssid TESTX up > for wlan 0 .. 3. It picked a DFS channel and started the DFS CAC machiner= y. > > Then I created a sta interface on wlan4 and it did some scanning, then > selected channel 1. > This is what I ended up with: > > adrian-home-mips# ifconfig wlan0 > wlan0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu = 1500 > =A0 =A0 =A0 =A0ether 00:c0:ca:1a:6c:d4 > =A0 =A0 =A0 =A0media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <= hostap> > =A0 =A0 =A0 =A0status: running > =A0 =A0 =A0 =A0ssid TEST channel 52 (5260 MHz 11a) bssid 00:c0:ca:1a:6c:d= 4 > =A0 =A0 =A0 =A0regdomain FCC3 country US ecm authmode OPEN privacy OFF tx= power 30 > =A0 =A0 =A0 =A0mcastrate 6 mgmtrate 6 scanvalid 60 wme burst dtimperiod 1 > adrian-home-mips# ifconfig wlan1 > wlan1: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu = 1500 > =A0 =A0 =A0 =A0ether 00:c0:ca:1a:6c:d4 > =A0 =A0 =A0 =A0media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <= hostap> > =A0 =A0 =A0 =A0status: running > =A0 =A0 =A0 =A0ssid TEST2 channel 52 (5260 MHz 11a) bssid 00:c0:ca:1a:6c:= d4 > =A0 =A0 =A0 =A0regdomain FCC3 country US ecm authmode OPEN privacy OFF tx= power 30 > =A0 =A0 =A0 =A0mcastrate 6 mgmtrate 6 scanvalid 60 wme burst dtimperiod 1 > adrian-home-mips# ifconfig wlan2 > wlan2: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu = 1500 > =A0 =A0 =A0 =A0ether 00:c0:ca:1a:6c:d4 > =A0 =A0 =A0 =A0media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <= hostap> > =A0 =A0 =A0 =A0status: running > =A0 =A0 =A0 =A0ssid TEST2 channel 52 (5260 MHz 11a) bssid 00:c0:ca:1a:6c:= d4 > =A0 =A0 =A0 =A0regdomain FCC3 country US ecm authmode OPEN privacy OFF tx= power 30 > =A0 =A0 =A0 =A0mcastrate 6 mgmtrate 6 scanvalid 60 wme burst dtimperiod 1 > adrian-home-mips# ifconfig wlan3 > wlan3: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu = 1500 > =A0 =A0 =A0 =A0ether 00:c0:ca:1a:6c:d4 > =A0 =A0 =A0 =A0media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <= hostap> > =A0 =A0 =A0 =A0status: running > =A0 =A0 =A0 =A0ssid TEST3 channel 52 (5260 MHz 11a) bssid 00:c0:ca:1a:6c:= d4 > =A0 =A0 =A0 =A0regdomain FCC3 country US ecm authmode OPEN privacy OFF tx= power 30 > =A0 =A0 =A0 =A0mcastrate 6 mgmtrate 6 scanvalid 60 wme burst dtimperiod 1 > adrian-home-mips# ifconfig wlan4 > wlan4: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu = 1500 > =A0 =A0 =A0 =A0ether 00:c0:ca:1a:6c:d4 > =A0 =A0 =A0 =A0media: IEEE 802.11 Wireless Ethernet DS/1Mbps mode 11g > =A0 =A0 =A0 =A0status: associated > =A0 =A0 =A0 =A0ssid CACHEBOY_DAGLISH channel 1 (2412 MHz 11g) bssid 00:25= :86:d8:7c:da > =A0 =A0 =A0 =A0regdomain FCC3 country US ecm authmode WPA2/802.11i privac= y ON > =A0 =A0 =A0 =A0deftxkey UNDEF TKIP 2:128-bit txpower 30 bmiss 7 scanvalid= 450 bgscan > =A0 =A0 =A0 =A0bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 pro= tmode CTS > =A0 =A0 =A0 =A0wme burst roaming MANUAL > > Shortly after this, I did a manual scan and it seemed to disconnect > from the ssid for some reason and reassociate again. Now all of the > hostap interfaces show up on the right channel. > > They were tx'ing beacons on channel 1; it's just that the BSS state > hadn't been updated. > > Hm! Do you know if CAC has been stopped/deferred as soon as you 'up'ed the STA interface? Doing a scan and CAC at the same is certainly not possible on a single physical interface. --=20 Bernhard
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAgh0_aqoC4Wau2Pp88NJaZQTuZHUA_ru9mvVgQdNyLuogq1kQ>