From owner-freebsd-wireless@FreeBSD.ORG Sun Jul 22 13:11:49 2012 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 AFBEE106566C for ; Sun, 22 Jul 2012 13:11:49 +0000 (UTC) (envelope-from w8hdkim@gmail.com) Received: from mail-qa0-f47.google.com (mail-qa0-f47.google.com [209.85.216.47]) by mx1.freebsd.org (Postfix) with ESMTP id 642908FC14 for ; Sun, 22 Jul 2012 13:11:49 +0000 (UTC) Received: by qabg1 with SMTP id g1so810212qab.13 for ; Sun, 22 Jul 2012 06:11:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=uYlwitemdwYyU4OR4b2pqG4PaNavKH8SC9zToE8nNoE=; b=JPS8GypYkuEJS4zXM6hf8gxtJdLHy8p3PnpqTpeU8c0uCEjqTKTjdz+dWkef/Ud9vn 7ALLPOfc2Ouzw7Y9+dHAsXRNVy69OSD45l6rvBqylbgvo3a6n2WP3HNtQ/cnZjM5QhF+ ok96tHDpsX3OzK9tz7uw1FgGUtcPebH2dmfmS4z1V/OzRUJJmokLRvgHyHIIVUcnjk8D NxNpJSXR78E1UGDjcf5BBWLsmWGvIzKe1K6M6Zxj53ct1Q3ZbjU3NqN5Wn/rzHis/b/c bclJpnukuqmsXuQr98uXm+KDKsA16H26SSxceSv87osg1Ft74j0STSjBDzY6DnFJ4fF/ rfEg== MIME-Version: 1.0 Received: by 10.224.178.73 with SMTP id bl9mr16181757qab.89.1342962703137; Sun, 22 Jul 2012 06:11:43 -0700 (PDT) Received: by 10.229.39.12 with HTTP; Sun, 22 Jul 2012 06:11:43 -0700 (PDT) In-Reply-To: References: Date: Sun, 22 Jul 2012 09:11:43 -0400 Message-ID: From: Kim Culhan To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: multi vap Multi-SSID with ath on FreeBSD 10-current 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: Sun, 22 Jul 2012 13:11:49 -0000 On Sat, Jul 21, 2012 at 5:16 PM, Adrian Chadd wrote: > hi, > > Do you need 'bssid' on the ifconfig line? > > Can you provide the output of ifconfig -a when you create the good and > bad configuration? I'd like to see the bssid's. > > It's quite possible that the beacon timers and beacon slot allocation > is wrong, leading to issues. Here are some observations wrt configurations. 4 vaps, without bssid in config: create_args_wlan0="wlanmode hostap" .. create_args_wlan4="wlanmode hostap" Usually possible to connect with 2 of 4 vaps, the 2 'rotate' among the 4, some ssid's frequently not visible. ifconfig -a ath0: flags=8843 metric 0 mtu 2290 ether f8:d1:11:38:3c:e5 nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: running em0: flags=8943 metric 0 mtu 1500 options=2098 ether 00:0e:0c:7f:cf:02 inet6 fe80::20e:cff:fe7f:cf02%em0 prefixlen 64 scopeid 0x2 nd6 options=29 media: Ethernet autoselect (1000baseT ) status: active re0: flags=8843 metric 0 mtu 1500 options=8209b ether 00:1b:21:0a:a6:32 inet 1.2.3.4 netmask 0xfffffc00 broadcast 1.2.3.255 nd6 options=29 media: Ethernet autoselect (100baseTX ) status: active fwe0: flags=8802 metric 0 mtu 1500 options=8 ether 02:1e:8c:01:67:65 nd6 options=29 ch 1 dma -1 fwip0: flags=8802 metric 0 mtu 1500 lladdr 0.1e.8c.0.0.1.67.65.a.2.ff.fe.0.0.0.0 nd6 options=29 lo0: flags=8049 metric 0 mtu 16384 options=600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6 inet 127.0.0.1 netmask 0xff000000 nd6 options=21 bridge0: flags=8843 metric 0 mtu 1500 ether 02:f3:8d:7d:04:00 inet 10.0.0.3 netmask 0xff000000 broadcast 10.255.255.255 nd6 options=29 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: em0 flags=143 ifmaxaddr 0 port 2 priority 128 path cost 2000000 member: wlan3 flags=143 ifmaxaddr 0 port 11 priority 128 path cost 33333 member: wlan2 flags=143 ifmaxaddr 0 port 10 priority 128 path cost 33333 member: wlan1 flags=143 ifmaxaddr 0 port 9 priority 128 path cost 33333 member: wlan0 flags=143 ifmaxaddr 0 port 8 priority 128 path cost 33333 wlan0: flags=8943 metric 0 mtu 1500 ether f8:d1:11:38:3c:e5 nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: running ssid ap1 channel 6 (2437 MHz 11g ht/40+) bssid f8:d1:11:38:3c:e5 regdomain 32924 country CN indoor ecm authmode OPEN privacy OFF txpower 20 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8 shortgi wme burst dtimperiod 1 wlan1: flags=8943 metric 0 mtu 1500 ether f8:d1:11:38:3c:e5 nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: running ssid ap2 channel 6 (2437 MHz 11g ht/40+) bssid f8:d1:11:38:3c:e5 regdomain 32924 country CN indoor ecm authmode WPA2/802.11i privacy MIXED deftxkey 3 AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 20 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8 shortgi wme burst dtimperiod 1 wlan2: flags=8943 metric 0 mtu 1500 ether f8:d1:11:38:3c:e5 nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: running ssid ap3 channel 6 (2437 MHz 11g ht/40+) bssid f8:d1:11:38:3c:e5 regdomain 32924 country CN indoor ecm authmode WPA2/802.11i privacy MIXED deftxkey 3 AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 20 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8 shortgi wme burst dtimperiod 1 wlan3: flags=8943 metric 0 mtu 1500 ether f8:d1:11:38:3c:e5 nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: running ssid ap4 channel 6 (2437 MHz 11g ht/40+) bssid f8:d1:11:38:3c:e5 regdomain 32924 country CN indoor ecm authmode WPA2/802.11i privacy MIXED deftxkey 3 AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 20 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8 shortgi wme burst dtimperiod 1 pflog0: flags=141 metric 0 mtu 33152 nd6 options=21 tap0: flags=8842 metric 0 mtu 1500 options=80000 ether 00:bd:f8:56:00:00 nd6 options=29 media: Ethernet autoselect status: active Opened by PID 2004 Same as above, with bss as: create_args_wlan0="wlanmode hostap bssid" .. create_args_wlan4="wlanmode hostap bssid" ssid's visible, usually possible to connect with 3 of 4 vaps, the 3 'rotate' among the 4 ifconfig -a ath0: flags=8843 metric 0 mtu 2290 ether f8:d1:11:38:3c:e5 nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: running em0: flags=8943 metric 0 mtu 1500 options=2098 ether 00:0e:0c:7f:cf:02 inet6 fe80::20e:cff:fe7f:cf02%em0 prefixlen 64 scopeid 0x2 nd6 options=29 media: Ethernet autoselect (1000baseT ) status: active re0: flags=8843 metric 0 mtu 1500 options=8209b ether 00:1b:21:0a:a6:32 inet 1.2.3.4 netmask 0xfffffc00 broadcast 1.2.3.255 nd6 options=29 media: Ethernet autoselect (100baseTX ) status: active fwe0: flags=8802 metric 0 mtu 1500 options=8 ether 02:1e:8c:01:67:65 nd6 options=29 ch 1 dma -1 fwip0: flags=8802 metric 0 mtu 1500 lladdr 0.1e.8c.0.0.1.67.65.a.2.ff.fe.0.0.0.0 nd6 options=29 lo0: flags=8049 metric 0 mtu 16384 options=600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6 inet 127.0.0.1 netmask 0xff000000 nd6 options=21 bridge0: flags=8843 metric 0 mtu 1500 ether 02:f3:8d:7d:04:00 inet 10.0.0.3 netmask 0xff000000 broadcast 10.255.255.255 nd6 options=29 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: em0 flags=143 ifmaxaddr 0 port 2 priority 128 path cost 2000000 member: wlan3 flags=143 ifmaxaddr 0 port 11 priority 128 path cost 33333 member: wlan2 flags=143 ifmaxaddr 0 port 10 priority 128 path cost 33333 member: wlan1 flags=143 ifmaxaddr 0 port 9 priority 128 path cost 33333 member: wlan0 flags=143 ifmaxaddr 0 port 8 priority 128 path cost 33333 wlan0: flags=8943 metric 0 mtu 1500 ether f8:d1:11:38:3c:e5 nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: running ssid ap1 channel 6 (2437 MHz 11g ht/40+) bssid f8:d1:11:38:3c:e5 regdomain 32924 country CN indoor ecm authmode OPEN privacy OFF txpower 20 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8 shortgi wme burst dtimperiod 1 wlan1: flags=8943 metric 0 mtu 1500 ether fe:d1:11:38:3c:e5 nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: running ssid ap2 channel 6 (2437 MHz 11g ht/40+) bssid fe:d1:11:38:3c:e5 regdomain 32924 country CN indoor ecm authmode WPA2/802.11i privacy MIXED deftxkey 2 AES-CCM 2:128-bit txpower 20 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8 shortgi wme burst dtimperiod 1 wlan2: flags=8943 metric 0 mtu 1500 ether fa:d1:11:38:3c:e5 nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: running ssid ap3 channel 6 (2437 MHz 11g ht/40+) bssid fa:d1:11:38:3c:e5 regdomain 32924 country CN indoor ecm authmode WPA2/802.11i privacy MIXED deftxkey 2 AES-CCM 2:128-bit txpower 20 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8 shortgi wme burst dtimperiod 1 wlan3: flags=8943 metric 0 mtu 1500 ether fe:d1:11:38:3c:e5 nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: running ssid ap4 channel 6 (2437 MHz 11g ht/40+) bssid fe:d1:11:38:3c:e5 regdomain 32924 country CN indoor ecm authmode WPA2/802.11i privacy MIXED deftxkey 2 AES-CCM 2:128-bit txpower 20 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8 shortgi wme burst dtimperiod 1 pflog0: flags=141 metric 0 mtu 33152 nd6 options=21 tap0: flags=8842 metric 0 mtu 1500 options=80000 ether 00:bd:f1:5a:00:00 nd6 options=29 media: Ethernet autoselect status: active Opened by PID 2011 3 vaps, with bssid as: create_args_wlan0="wlanmode hostap bssid" .. create_args_wlan4="wlanmode hostap bssid" ssid's visible, usually possible to connect with all 3 vaps ifconfig -a ath0: flags=8843 metric 0 mtu 2290 ether f8:d1:11:38:3c:e5 nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: running em0: flags=8943 metric 0 mtu 1500 options=2098 ether 00:0e:0c:7f:cf:02 inet6 fe80::20e:cff:fe7f:cf02%em0 prefixlen 64 scopeid 0x2 nd6 options=29 media: Ethernet autoselect (1000baseT ) status: active re0: flags=8843 metric 0 mtu 1500 options=8209b ether 00:1b:21:0a:a6:32 inet 1.2.3.4 netmask 0xfffffc00 broadcast 1.2.3.255 nd6 options=29 media: Ethernet autoselect (100baseTX ) status: active fwe0: flags=8802 metric 0 mtu 1500 options=8 ether 02:1e:8c:01:67:65 nd6 options=29 ch 1 dma -1 fwip0: flags=8802 metric 0 mtu 1500 lladdr 0.1e.8c.0.0.1.67.65.a.2.ff.fe.0.0.0.0 nd6 options=29 lo0: flags=8049 metric 0 mtu 16384 options=600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6 inet 127.0.0.1 netmask 0xff000000 nd6 options=21 bridge0: flags=8843 metric 0 mtu 1500 ether 02:f3:8d:7d:04:00 inet 10.0.0.3 netmask 0xff000000 broadcast 10.255.255.255 nd6 options=29 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: em0 flags=143 ifmaxaddr 0 port 2 priority 128 path cost 2000000 member: wlan2 flags=143 ifmaxaddr 0 port 10 priority 128 path cost 33333 member: wlan1 flags=143 ifmaxaddr 0 port 9 priority 128 path cost 33333 member: wlan0 flags=143 ifmaxaddr 0 port 8 priority 128 path cost 33333 wlan0: flags=8943 metric 0 mtu 1500 ether f8:d1:11:38:3c:e5 nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: running ssid ap1 channel 6 (2437 MHz 11g ht/40+) bssid f8:d1:11:38:3c:e5 regdomain 32924 country CN indoor ecm authmode OPEN privacy OFF txpower 20 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8 shortgi wme burst dtimperiod 1 wlan1: flags=8943 metric 0 mtu 1500 ether fe:d1:11:38:3c:e5 nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: running ssid ap2 channel 6 (2437 MHz 11g ht/40+) bssid fe:d1:11:38:3c:e5 regdomain 32924 country CN indoor ecm authmode WPA2/802.11i privacy MIXED deftxkey 2 AES-CCM 2:128-bit txpower 20 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8 shortgi wme burst dtimperiod 1 wlan2: flags=8943 metric 0 mtu 1500 ether fa:d1:11:38:3c:e5 nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: running ssid ap3 channel 6 (2437 MHz 11g ht/40+) bssid fa:d1:11:38:3c:e5 regdomain 32924 country CN indoor ecm authmode WPA2/802.11i privacy MIXED deftxkey 2 AES-CCM 2:128-bit txpower 20 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8 shortgi wme burst dtimperiod 1 pflog0: flags=141 metric 0 mtu 33152 nd6 options=21 tap0: flags=8842 metric 0 mtu 1500 options=80000 ether 00:bd:7d:4a:00:00 nd6 options=29 media: Ethernet autoselect status: active Opened by PID 2105 3 vaps, without bssid in config as: create_args_wlan0="wlanmode hostap" .. create_args_wlan2="wlanmode hostap" ssid's visible, possible to connect with 1 vap, ssid ap1 ifconfig -a ath0: flags=8843 metric 0 mtu 2290 ether f8:d1:11:38:3c:e5 nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: running em0: flags=8943 metric 0 mtu 1500 options=2098 ether 00:0e:0c:7f:cf:02 inet6 fe80::20e:cff:fe7f:cf02%em0 prefixlen 64 scopeid 0x2 nd6 options=29 media: Ethernet autoselect (1000baseT ) status: active re0: flags=8843 metric 0 mtu 1500 options=8209b ether 00:1b:21:0a:a6:32 inet 1.2.3.4 netmask 0xfffffc00 broadcast 1.2.3.255 nd6 options=29 media: Ethernet autoselect (100baseTX ) status: active fwe0: flags=8802 metric 0 mtu 1500 options=8 ether 02:1e:8c:01:67:65 nd6 options=29 ch 1 dma -1 fwip0: flags=8802 metric 0 mtu 1500 lladdr 0.1e.8c.0.0.1.67.65.a.2.ff.fe.0.0.0.0 nd6 options=29 lo0: flags=8049 metric 0 mtu 16384 options=600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6 inet 127.0.0.1 netmask 0xff000000 nd6 options=21 bridge0: flags=8843 metric 0 mtu 1500 ether 02:f3:8d:7d:04:00 inet 10.0.0.3 netmask 0xff000000 broadcast 10.255.255.255 nd6 options=29 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: em0 flags=143 ifmaxaddr 0 port 2 priority 128 path cost 2000000 member: wlan2 flags=143 ifmaxaddr 0 port 10 priority 128 path cost 33333 member: wlan1 flags=143 ifmaxaddr 0 port 9 priority 128 path cost 33333 member: wlan0 flags=143 ifmaxaddr 0 port 8 priority 128 path cost 33333 wlan0: flags=8943 metric 0 mtu 1500 ether f8:d1:11:38:3c:e5 nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: running ssid ap1 channel 6 (2437 MHz 11g ht/40+) bssid f8:d1:11:38:3c:e5 regdomain 32924 country CN indoor ecm authmode OPEN privacy OFF txpower 20 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8 shortgi wme burst dtimperiod 1 wlan1: flags=8943 metric 0 mtu 1500 ether f8:d1:11:38:3c:e5 nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: running ssid ap2 channel 6 (2437 MHz 11g ht/40+) bssid f8:d1:11:38:3c:e5 regdomain 32924 country CN indoor ecm authmode WPA2/802.11i privacy MIXED deftxkey 2 AES-CCM 2:128-bit txpower 20 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8 shortgi wme burst dtimperiod 1 wlan2: flags=8943 metric 0 mtu 1500 ether f8:d1:11:38:3c:e5 nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: running ssid ap3 channel 6 (2437 MHz 11g ht/40+) bssid f8:d1:11:38:3c:e5 regdomain 32924 country CN indoor ecm authmode WPA2/802.11i privacy MIXED deftxkey 2 AES-CCM 2:128-bit txpower 20 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8 shortgi wme burst dtimperiod 1 pflog0: flags=141 metric 0 mtu 33152 nd6 options=21 tap0: flags=8842 metric 0 mtu 1500 options=80000 ether 00:bd:81:58:00:00 nd6 options=29 media: Ethernet autoselect status: active Opened by PID 1902 thanks -kim