Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Oct 2012 09:34:48 +0200
From:      Johann Hugo <jhugo@meraka.csir.co.za>
To:        freebsd-wireless@freebsd.org
Subject:   11n in adhoc mode
Message-ID:  <201210180934.48741.jhugo@meraka.csir.co.za>

next in thread | raw e-mail | index | archive | help
--Boundary-00=_YE7fQwdqaQPNtFK
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi

Finally got a 11n test setup running FreeBSD 10.0-CURRENT on two ARM boards.

HW = gateworks ARM
OS = FreeBSD 10.0-CURRENT
Build = arm-10-20121011
Wifi = RouterBOARD R52nM = AR9220

11n works if one device is in AP mode and the other in ST mode, but I can get 
it running with both devices in ADHOC mode.

Is there a special switch or something that I need to toggle for 11n to work 
in ADHOC mode ?

Johann

--Boundary-00=_YE7fQwdqaQPNtFK
Content-Type: text/plain;
  charset="UTF-8";
  name="FreeBSD-10-AP-ST-11na.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="FreeBSD-10-AP-ST-11na.txt"

*******************
Node-1
*******************
rc.conf
create_args_wlan1="wlanmode hostap country ZA"
ifconfig_wlan1="ssid testAP channel 28 10.50.50.1/24"

mesh-1d04:~ # ifconfig wlan1
wlan1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:0c:42:6c:61:91
        inet 10.50.50.1 netmask 0xffffff00 broadcast 10.50.50.255 
        inet6 fe80::20c:42ff:fe6c:6191%wlan1 prefixlen 64 scopeid 0x8 
        inet6 fde4:7b85:9218:10:20c:42ff:fe6c:6191 prefixlen 64 
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11na <hostap>
        status: running
        ssid testAP channel 28 (5140 MHz 11a ht/40-) bssid 00:0c:42:6c:61:91
        regdomain NONE country ZA ecm authmode OPEN privacy OFF txpower 17
        mcastrate 6 mgmtrate 6 scanvalid 60 ampdulimit 64k ampdudensity 8
        shortgi wme burst dtimperiod 1 -dfs

mesh-1d04:~ # ifconfig wlan1 list chan
Channel   1 : 2412  MHz 11g ht       Channel  52 : 5260* MHz 11a ht       
Channel   2 : 2417  MHz 11g ht       Channel  56 : 5280* MHz 11a ht       
Channel   3 : 2422  MHz 11g ht       Channel  60 : 5300* MHz 11a ht       
Channel   4 : 2427  MHz 11g ht       Channel  64 : 5320* MHz 11a ht       
Channel   5 : 2432  MHz 11g ht       Channel 100 : 5500* MHz 11a ht       
Channel   6 : 2437  MHz 11g ht       Channel 104 : 5520* MHz 11a ht       
Channel   7 : 2442  MHz 11g ht       Channel 108 : 5540* MHz 11a ht       
Channel   8 : 2447  MHz 11g ht       Channel 112 : 5560* MHz 11a ht       
Channel   9 : 2452  MHz 11g ht       Channel 116 : 5580* MHz 11a ht       
Channel  10 : 2457  MHz 11g ht       Channel 120 : 5600* MHz 11a ht       
Channel  11 : 2462  MHz 11g ht       Channel 124 : 5620* MHz 11a ht       
Channel  12 : 2467* MHz 11g ht       Channel 128 : 5640* MHz 11a ht       
Channel  13 : 2472* MHz 11g ht       Channel 132 : 5660* MHz 11a ht       
Channel  24 : 5120* MHz 11a ht       Channel 136 : 5680* MHz 11a ht       
Channel  28 : 5140* MHz 11a ht       Channel 140 : 5700* MHz 11a ht       
Channel  32 : 5160* MHz 11a ht       Channel 149 : 5745* MHz 11a ht       
Channel  36 : 5180* MHz 11a ht       Channel 153 : 5765* MHz 11a ht       
Channel  40 : 5200* MHz 11a ht       Channel 157 : 5785* MHz 11a ht       
Channel  44 : 5220* MHz 11a ht       Channel 161 : 5805* MHz 11a ht       
Channel  48 : 5240* MHz 11a ht       Channel 165 : 5825* MHz 11a ht

mesh-1d04:~ # ifconfig wlan1 list sta
ADDR               AID CHAN RATE RSSI IDLE  TXSEQ  RXSEQ CAPS FLAG   
00:0c:42:6c:63:20    1   28 162M 16.5    0   1419  60064 E    AQHTRS  HTCAP WME

mesh-1d04:~ # iperf -c 10.50.50.2
------------------------------------------------------------
Client connecting to 10.50.50.2, TCP port 5001
TCP window size: 80.5 KByte (default)
------------------------------------------------------------
[  3] local 10.50.50.1 port 39236 connected with 10.50.50.2 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  43.1 MBytes  36.1 Mbits/sec

mesh-1d04:~ # athratestats -i ath1 -m 00:0c:42:6c:63:20
static_rix (-1) ratemask 0x0
[ 250] cur rate 12 MCS since switch: packets 2 ticks 14606823
[ 250] last sample (14 MCS) cur sample (0 ) packets sent 34
[ 250] packets since sample 12 sample tt 1109

[1600] cur rate 13 MCS since switch: packets 60 ticks 14604692
[1600] last sample (15 MCS) cur sample (0 ) packets sent 5787
[1600] packets since sample 49 sample tt 5471

   TX Rate     TXTOTAL:TXOK       EWMA          T/   F     avg last xmit
[ 6  Mb: 250]        3:3        (100.0%)        3/   0   760uS 14602541
[10 MCS:1600]       75:75       (100.0%)       11/   0   516uS 14604440
[11 MCS:1600]        5:5        (100.0%)        5/   0   674uS 14602538
[12 MCS: 250]       22:22       (100.0%)       22/   0   424uS 14606823
[12 MCS:1600]     4389:4389     (100.0%)      247/   0   569uS 14604387
[13 MCS: 250]       11:11       (100.0%)       12/   0   549uS 14602438
[13 MCS:1600]    58903:57893    ( 99.7%)     5409/   0   652uS 14604738
[14 MCS: 250]        1:1        (100.0%)        2/   0  1109uS 14602438
[14 MCS:1600]      831:479      ( 50.7%)      156/   0   709uS 14604708
[15 MCS:1600]      299:163      ( 77.6%)      242/   0  6013uS 14604708

*******************
Node-2
*******************
rc.conf
create_args_wlan1="wlanmode sta country ZA"
ifconfig_wlan1="ssid testAP 10.50.50.2/24"

mesh-1909:~ # ifconfig wlan1
wlan1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:0c:42:6c:63:20
        inet 10.50.50.2 netmask 0xffffff00 broadcast 10.50.50.255 
        inet6 fe80::20c:42ff:fe6c:6320%wlan1 prefixlen 64 scopeid 0x8 
        inet6 fde4:7b85:9218:10:20c:42ff:fe6c:6320 prefixlen 64 
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet MCS mode 11na
        status: associated
        ssid testAP channel 28 (5140 MHz 11a ht/40-) bssid 00:0c:42:6c:61:91
        regdomain NONE country ZA ecm authmode OPEN privacy OFF txpower 17
        bmiss 7 mcastrate 6 mgmtrate 6 scanvalid 60 ampdulimit 64k
        ampdudensity 8 shortgi wme burst

mesh-1909:~ # ifconfig wlan1 list chan
Channel   1 : 2412  MHz 11g ht       Channel  52 : 5260* MHz 11a ht       
Channel   2 : 2417  MHz 11g ht       Channel  56 : 5280* MHz 11a ht       
Channel   3 : 2422  MHz 11g ht       Channel  60 : 5300* MHz 11a ht       
Channel   4 : 2427  MHz 11g ht       Channel  64 : 5320* MHz 11a ht       
Channel   5 : 2432  MHz 11g ht       Channel 100 : 5500* MHz 11a ht       
Channel   6 : 2437  MHz 11g ht       Channel 104 : 5520* MHz 11a ht       
Channel   7 : 2442  MHz 11g ht       Channel 108 : 5540* MHz 11a ht       
Channel   8 : 2447  MHz 11g ht       Channel 112 : 5560* MHz 11a ht       
Channel   9 : 2452  MHz 11g ht       Channel 116 : 5580* MHz 11a ht       
Channel  10 : 2457  MHz 11g ht       Channel 120 : 5600* MHz 11a ht       
Channel  11 : 2462  MHz 11g ht       Channel 124 : 5620* MHz 11a ht       
Channel  12 : 2467* MHz 11g ht       Channel 128 : 5640* MHz 11a ht       
Channel  13 : 2472* MHz 11g ht       Channel 132 : 5660* MHz 11a ht       
Channel  24 : 5120* MHz 11a ht       Channel 136 : 5680* MHz 11a ht       
Channel  28 : 5140* MHz 11a ht       Channel 140 : 5700* MHz 11a ht       
Channel  32 : 5160* MHz 11a ht       Channel 149 : 5745* MHz 11a ht       
Channel  36 : 5180* MHz 11a ht       Channel 153 : 5765* MHz 11a ht       
Channel  40 : 5200* MHz 11a ht       Channel 157 : 5785* MHz 11a ht       
Channel  44 : 5220* MHz 11a ht       Channel 161 : 5805* MHz 11a ht       
Channel  48 : 5240* MHz 11a ht       Channel 165 : 5825* MHz 11a ht

mesh-1909:~ # ifconfig wlan1 list sta
ADDR               AID CHAN RATE RSSI IDLE  TXSEQ  RXSEQ CAPS FLAG   
00:0c:42:6c:61:91    1   28 216M 18.5    0   3757  22688 E    AQHTRS  HTCAP WME

mesh-1909:~ # iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 64.0 KByte (default)
------------------------------------------------------------
[  4] local 10.50.50.2 port 5001 connected with 10.50.50.1 port 39236
[ ID] Interval       Transfer     Bandwidth                                                 
[  4]  0.0-10.1 sec  43.1 MBytes  36.0 Mbits/sec

mesh-1909:~ # athratestats -i ath1 -m 00:0c:42:6c:61:91
static_rix (-1) ratemask 0x0
[ 250] cur rate 12 MCS since switch: packets 1 ticks 127783
[ 250] last sample (15 MCS) cur sample (0 ) packets sent 4304
[ 250] packets since sample 160 sample tt 12102

[1600] cur rate 13 MCS since switch: packets 1 ticks 127939
[1600] last sample (15 MCS) cur sample (0 ) packets sent 84
[1600] packets since sample 41 sample tt 5471

   TX Rate     TXTOTAL:TXOK       EWMA          T/   F     avg last xmit
[ 6  Mb: 250]        2:2        (100.0%)        3/   0  1274uS 113171
[ 9 MCS: 250]        4:4        (100.0%)        4/   0   448uS 114645
[12 MCS: 250]    32003:32003    (100.0%)     4235/   0   424uS 127783
[12 MCS:1600]       10:10       (100.0%)       10/   0   488uS 101786
[13 MCS: 250]      222:222      (100.0%)       77/   0  2972uS 115278
[13 MCS:1600]       66:66       (100.0%)       66/   0   468uS 127939
[14 MCS: 250]      196:196      (100.0%)       92/   0  3122uS 115278
[14 MCS:1600]        8:8        (100.0%)        9/   0   601uS 113707
[15 MCS: 250]      126:54       ( 89.2%)      119/   0  7167uS 115278
[15 MCS:1600]        1:1        (100.0%)        5/   0  5471uS 113707


--Boundary-00=_YE7fQwdqaQPNtFK
Content-Type: text/plain;
  charset="UTF-8";
  name="FreeBSD-10-ADHOC-ADHOC-11na.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="FreeBSD-10-ADHOC-ADHOC-11na.txt"

*******************
Node-1
*******************
rc.conf
create_args_wlan1="wlanmode adhoc country ZA"
ifconfig_wlan1="10.50.50.1/24 ssid testADHOC channel 28:ht/40 bssid 02:8c:ca:fe:ca:10"

mesh-1d04:~ # ifconfig wlan1
wlan1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:0c:42:6c:61:91
        inet 10.50.50.1 netmask 0xffffff00 broadcast 10.50.50.255 
        inet6 fe80::20c:42ff:fe6c:6191%wlan1 prefixlen 64 scopeid 0x8 
        inet6 fde4:7b85:9218:10:20c:42ff:fe6c:6191 prefixlen 64 
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11na <adhoc>
        status: running
        ssid testADHOC channel 28 (5140 MHz 11a ht/40-) bssid 02:8c:ca:fe:ca:10
        regdomain NONE country ZA ecm authmode OPEN privacy OFF txpower 17
        mcastrate 6 mgmtrate 6 scanvalid 60 ampdulimit 8k ampdudensity 8
        shortgi wme burst

mesh-1d04:~ # ifconfig wlan1 list chan
Channel   1 : 2412  MHz 11g ht       Channel  52 : 5260* MHz 11a ht       
Channel   2 : 2417  MHz 11g ht       Channel  56 : 5280* MHz 11a ht       
Channel   3 : 2422  MHz 11g ht       Channel  60 : 5300* MHz 11a ht       
Channel   4 : 2427  MHz 11g ht       Channel  64 : 5320* MHz 11a ht       
Channel   5 : 2432  MHz 11g ht       Channel 100 : 5500* MHz 11a ht       
Channel   6 : 2437  MHz 11g ht       Channel 104 : 5520* MHz 11a ht       
Channel   7 : 2442  MHz 11g ht       Channel 108 : 5540* MHz 11a ht       
Channel   8 : 2447  MHz 11g ht       Channel 112 : 5560* MHz 11a ht       
Channel   9 : 2452  MHz 11g ht       Channel 116 : 5580* MHz 11a ht       
Channel  10 : 2457  MHz 11g ht       Channel 120 : 5600* MHz 11a ht       
Channel  11 : 2462  MHz 11g ht       Channel 124 : 5620* MHz 11a ht       
Channel  12 : 2467* MHz 11g ht       Channel 128 : 5640* MHz 11a ht       
Channel  13 : 2472* MHz 11g ht       Channel 132 : 5660* MHz 11a ht       
Channel  24 : 5120* MHz 11a ht       Channel 136 : 5680* MHz 11a ht       
Channel  28 : 5140* MHz 11a ht       Channel 140 : 5700* MHz 11a ht       
Channel  32 : 5160* MHz 11a ht       Channel 149 : 5745* MHz 11a ht       
Channel  36 : 5180* MHz 11a ht       Channel 153 : 5765* MHz 11a ht       
Channel  40 : 5200* MHz 11a ht       Channel 157 : 5785* MHz 11a ht       
Channel  44 : 5220* MHz 11a ht       Channel 161 : 5805* MHz 11a ht       
Channel  48 : 5240* MHz 11a ht       Channel 165 : 5825* MHz 11a ht

mesh-1d04:~ # ifconfig wlan1 list sta
ADDR               AID CHAN RATE RSSI IDLE  TXSEQ  RXSEQ CAPS FLAG   
00:0c:42:6c:61:91    0   28   0M 18.0    0    585    656 I    A      
00:0c:42:6c:63:20    0   28  54M 19.0    0  20659  24752 I    AQ      HTCAP WME

mesh-1d04:~ # iperf -c 10.50.50.2
------------------------------------------------------------
Client connecting to 10.50.50.2, TCP port 5001
TCP window size: 32.5 KByte (default)
------------------------------------------------------------
[  3] local 10.50.50.1 port 53583 connected with 10.50.50.2 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.1 sec  14.2 MBytes  11.8 Mbits/sec

mesh-1d04:~ # athratestats -i ath1 -m 00:0c:42:6c:61:91
static_rix (0) ratemask 0x0
[ 250] cur rate 6  Mb since switch: packets 0 ticks 0
[ 250] last sample (6  Mb) cur sample (6  Mb) packets sent 0
[ 250] packets since sample 0 sample tt 0

[1600] cur rate 6  Mb since switch: packets 0 ticks 0
[1600] last sample (6  Mb) cur sample (6  Mb) packets sent 0
[1600] packets since sample 0 sample tt 0

   TX Rate     TXTOTAL:TXOK       EWMA          T/   F     avg last xmit
mesh-1d04:~ # athratestats -i ath1 -m 00:0c:42:6c:63:20
static_rix (-1) ratemask 0x0
[ 250] cur rate 54  Mb since switch: packets 1 ticks 83583
[ 250] last sample (6  Mb) cur sample (0 ) packets sent 22
[ 250] packets since sample 0 sample tt 0

[1600] cur rate 54  Mb since switch: packets 402 ticks 82416
[1600] last sample (48  Mb) cur sample (0 ) packets sent 20640
[1600] packets since sample 8 sample tt 672

   TX Rate     TXTOTAL:TXOK       EWMA          T/   F     avg last xmit
[18  Mb:1600]        6:6        (100.0%)        6/   0  1124uS 82359
[24  Mb:1600]       29:29       (100.0%)       33/   0   940uS 82499
[36  Mb: 250]        1:1        (100.0%)        1/   0   464uS 68917
[36  Mb:1600]      724:724      (100.0%)      785/   0   953uS 82503
[48  Mb:1600]     6200:6200     (100.0%)     6628/   0   693uS 82506
[54  Mb: 250]       21:21       (100.0%)       21/   0   444uS 83583
[54  Mb:1600]    13681:13681    (100.0%)    14539/   0   666uS 82507

*******************
Node-2
*******************
rc.conf
create_args_wlan1="wlanmode adhoc country ZA"
ifconfig_wlan1="10.50.50.2/24 ssid testADHOC channel 28:ht/40 bssid 02:8c:ca:fe:ca:10"

mesh-1909:~ # ifconfig wlan1
wlan1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:0c:42:6c:63:20
        inet 10.50.50.2 netmask 0xffffff00 broadcast 10.50.50.255 
        inet6 fe80::20c:42ff:fe6c:6320%wlan1 prefixlen 64 scopeid 0x8 
        inet6 fde4:7b85:9218:10:20c:42ff:fe6c:6320 prefixlen 64 
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11na <adhoc>
        status: running
        ssid testADHOC channel 28 (5140 MHz 11a ht/40-) bssid 02:8c:ca:fe:ca:10
        regdomain NONE country ZA ecm authmode OPEN privacy OFF txpower 17
        mcastrate 6 mgmtrate 6 scanvalid 60 ampdulimit 8k ampdudensity 8
        shortgi wme burst

mesh-1909:~ # ifconfig wlan1 list chan
Channel   1 : 2412  MHz 11g ht       Channel  52 : 5260* MHz 11a ht       
Channel   2 : 2417  MHz 11g ht       Channel  56 : 5280* MHz 11a ht       
Channel   3 : 2422  MHz 11g ht       Channel  60 : 5300* MHz 11a ht       
Channel   4 : 2427  MHz 11g ht       Channel  64 : 5320* MHz 11a ht       
Channel   5 : 2432  MHz 11g ht       Channel 100 : 5500* MHz 11a ht       
Channel   6 : 2437  MHz 11g ht       Channel 104 : 5520* MHz 11a ht       
Channel   7 : 2442  MHz 11g ht       Channel 108 : 5540* MHz 11a ht       
Channel   8 : 2447  MHz 11g ht       Channel 112 : 5560* MHz 11a ht       
Channel   9 : 2452  MHz 11g ht       Channel 116 : 5580* MHz 11a ht       
Channel  10 : 2457  MHz 11g ht       Channel 120 : 5600* MHz 11a ht       
Channel  11 : 2462  MHz 11g ht       Channel 124 : 5620* MHz 11a ht       
Channel  12 : 2467* MHz 11g ht       Channel 128 : 5640* MHz 11a ht       
Channel  13 : 2472* MHz 11g ht       Channel 132 : 5660* MHz 11a ht       
Channel  24 : 5120* MHz 11a ht       Channel 136 : 5680* MHz 11a ht       
Channel  28 : 5140* MHz 11a ht       Channel 140 : 5700* MHz 11a ht       
Channel  32 : 5160* MHz 11a ht       Channel 149 : 5745* MHz 11a ht       
Channel  36 : 5180* MHz 11a ht       Channel 153 : 5765* MHz 11a ht       
Channel  40 : 5200* MHz 11a ht       Channel 157 : 5785* MHz 11a ht       
Channel  44 : 5220* MHz 11a ht       Channel 161 : 5805* MHz 11a ht       
Channel  48 : 5240* MHz 11a ht       Channel 165 : 5825* MHz 11a ht

mesh-1909:~ # ifconfig wlan1 list sta
ADDR               AID CHAN RATE RSSI IDLE  TXSEQ  RXSEQ CAPS FLAG   
00:0c:42:6c:63:20    0   28   0M 17.0    0    207    656 I    A      
00:0c:42:6c:61:91    0   28  54M 18.5    0  13837   9392 I    AQ      HTCAP WME

mesh-1909:~ # iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 64.0 KByte (default)
------------------------------------------------------------
[  4] local 10.50.50.2 port 5001 connected with 10.50.50.1 port 53583
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.7 sec  14.2 MBytes  11.2 Mbits/sec

mesh-1909:~ # athratestats -i ath1 -m 00:0c:42:6c:61:91
static_rix (-1) ratemask 0x0
[ 250] cur rate 54  Mb since switch: packets 2 ticks 31507
[ 250] last sample (48  Mb) cur sample (0 ) packets sent 13839
[ 250] packets since sample 4 sample tt 448

[1600] cur rate 6  Mb since switch: packets 0 ticks 0
[1600] last sample (6  Mb) cur sample (0 ) packets sent 0
[1600] packets since sample 0 sample tt 0

   TX Rate     TXTOTAL:TXOK       EWMA          T/   F     avg last xmit
[ 6  Mb: 250]        6:6        (100.0%)        6/   0   760uS 30178
[ 9  Mb: 250]       26:26       (100.0%)       28/   0   688uS 30342
[12  Mb: 250]       68:68       (100.0%)       75/   0   610uS 30421
[18  Mb: 250]      836:836      (100.0%)      921/   0   524uS 30350
[24  Mb: 250]     2523:2523     (100.0%)     2762/   0   669uS 30401
[36  Mb: 250]     1757:1757     (100.0%)     1922/   0   514uS 30414
[48  Mb: 250]     5446:5446     (100.0%)     5913/   0   461uS 30431
[54  Mb: 250]     3178:3178     (100.0%)     3471/   0   447uS 31508


--Boundary-00=_YE7fQwdqaQPNtFK--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210180934.48741.jhugo>