From owner-freebsd-wireless@FreeBSD.ORG Fri Sep 30 08:21:11 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6309106566B for ; Fri, 30 Sep 2011 08:21:11 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8DF1B8FC0C for ; Fri, 30 Sep 2011 08:21:11 +0000 (UTC) Received: by ywp17 with SMTP id 17so1639969ywp.13 for ; Fri, 30 Sep 2011 01:21:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=8O0xwHWiPxYaOtEa/ei1mkYjHO9y0q38KeWBpvbtTzY=; b=bNqKah09LoX+Uvyr2EUMOC72OGBTKywJ5COhq3AVJRZhl/vmwbVZWtVtXLiZDkxf8z hqZIksN+azQ0PcanwjXoMLDGVTgxDVJxM9dvgPaF0JVXbUa7gLLUZpsJJ1xKCVeZe4L0 9q35vjKot+famjOVyptH4W11b5mWyz9rheT5s= MIME-Version: 1.0 Received: by 10.236.124.97 with SMTP id w61mr69431643yhh.106.1317370870905; Fri, 30 Sep 2011 01:21:10 -0700 (PDT) Received: by 10.236.111.42 with HTTP; Fri, 30 Sep 2011 01:21:10 -0700 (PDT) Date: Fri, 30 Sep 2011 16:21:10 +0800 Message-ID: From: Adrian Chadd To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Hm, hostap+sta channel information isn't always correctly propagated X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 08:21:11 -0000 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 machinery. 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=8843 metric 0 mtu 1500 ether 00:c0:ca:1a:6c:d4 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: running ssid TEST channel 52 (5260 MHz 11a) bssid 00:c0:ca:1a:6c:d4 regdomain FCC3 country US ecm authmode OPEN privacy OFF txpower 30 mcastrate 6 mgmtrate 6 scanvalid 60 wme burst dtimperiod 1 adrian-home-mips# ifconfig wlan1 wlan1: flags=8843 metric 0 mtu 1500 ether 00:c0:ca:1a:6c:d4 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: running ssid TEST2 channel 52 (5260 MHz 11a) bssid 00:c0:ca:1a:6c:d4 regdomain FCC3 country US ecm authmode OPEN privacy OFF txpower 30 mcastrate 6 mgmtrate 6 scanvalid 60 wme burst dtimperiod 1 adrian-home-mips# ifconfig wlan2 wlan2: flags=8843 metric 0 mtu 1500 ether 00:c0:ca:1a:6c:d4 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: running ssid TEST2 channel 52 (5260 MHz 11a) bssid 00:c0:ca:1a:6c:d4 regdomain FCC3 country US ecm authmode OPEN privacy OFF txpower 30 mcastrate 6 mgmtrate 6 scanvalid 60 wme burst dtimperiod 1 adrian-home-mips# ifconfig wlan3 wlan3: flags=8843 metric 0 mtu 1500 ether 00:c0:ca:1a:6c:d4 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: running ssid TEST3 channel 52 (5260 MHz 11a) bssid 00:c0:ca:1a:6c:d4 regdomain FCC3 country US ecm authmode OPEN privacy OFF txpower 30 mcastrate 6 mgmtrate 6 scanvalid 60 wme burst dtimperiod 1 adrian-home-mips# ifconfig wlan4 wlan4: flags=8843 metric 0 mtu 1500 ether 00:c0:ca:1a:6c:d4 media: IEEE 802.11 Wireless Ethernet DS/1Mbps mode 11g status: associated ssid CACHEBOY_DAGLISH channel 1 (2412 MHz 11g) bssid 00:25:86:d8:7c:da regdomain FCC3 country US ecm authmode WPA2/802.11i privacy ON deftxkey UNDEF TKIP 2:128-bit txpower 30 bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme 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! Adrian