From nobody@FreeBSD.org  Mon Oct 22 12:11:34 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 44AE79FB
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 Oct 2012 12:11:34 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 2A5428FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 Oct 2012 12:11:34 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q9MCBWq9050158
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 Oct 2012 12:11:32 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id q9MCBW1S050157;
	Mon, 22 Oct 2012 12:11:32 GMT
	(envelope-from nobody)
Message-Id: <201210221211.q9MCBW1S050157@red.freebsd.org>
Date: Mon, 22 Oct 2012 12:11:32 GMT
From: Johann <jhugo@meraka.csir.co.za>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [ath] 11n does not work in adhoc mode
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         172955
>Category:       kern
>Synopsis:       [ath] 11n does not work in adhoc mode
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-wireless
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 22 12:20:00 UTC 2012
>Closed-Date:    
>Last-Modified:  Mon Oct 22 20:00:00 UTC 2012
>Originator:     Johann
>Release:        10.0-CURRENT
>Organization:
CSIR
>Environment:
FreeBSD mesh-1d04 10.0-CURRENT FreeBSD 10.0-CURRENT #4: Thu Oct 11 14:00:10 SAST 2012     root@magrathea.meraka.csir.co.za:/var/scratch/10-current/obj/arm.armeb/var/scratch/10-current/src/sys/SMALL-AVILA-ALTQ  arm
>Description:
802.11n does not work between two 802.11n wifi devices when they are configured in ADHOC mode. 11n works if the same two devices are configured as an AP/CLient mode.

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

- Disabling ampdu does not have any effect - ifconfig wlanX -ampdu 
- Looks like the MCS rate stuff isn't being setup or negotiated right.
>How-To-Repeat:
- Configure two atheros 802.11n wifi adapters in ADHOC mode. 
- Transfer some data between the two devices. 
- Run athratestats - note that it never uses rates above 54Mbps.

static_rix (-1) ratemask 0x0
[ 250] cur rate 54  Mb since switch: packets 4 ticks 154414
[ 250] last sample (6  Mb) cur sample (0 ) packets sent 239
[ 250] packets since sample 8 sample tt 0

[1600] cur rate 54  Mb since switch: packets 1 ticks 154465
[1600] last sample (48  Mb) cur sample (0 ) packets sent 36699
[1600] packets since sample 6 sample tt 644

   TX Rate     TXTOTAL:TXOK       EWMA          T/   F     avg last xmit
[ 9  Mb:1600]        1:1        (100.0%)        1/   0  1848uS 27480
[18  Mb:1600]       21:21       (100.0%)       21/   0  1124uS 39024
[24  Mb:1600]       63:63       (100.0%)       70/   0  1000uS 39117
[36  Mb: 250]        1:1        (100.0%)        1/   0   464uS 27378
[36  Mb:1600]     1976:1976     (100.0%)     2133/   0   909uS 39130
[48  Mb:1600]    13231:13231    (100.0%)    14283/   0   675uS 39130
[54  Mb: 250]      238:238      (100.0%)      238/   0   444uS 154482
[54  Mb:1600]    21407:21407    (100.0%)    23177/   0   644uS 154465

>Fix:


Patch attached with submission follows:

*******************
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



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Oct 22 15:52:32 UTC 2012 
Responsible-Changed-Why:  
reclassify. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172955 

From: Johann Hugo <jhugo@meraka.csir.co.za>
To: bug-followup@freebsd.org
Cc: Adrian Chadd <adrian@freebsd.org>,
 jhugo@meraka.csir.co.za
Subject: misc/172955: [ath] 11n does not work in adhoc mode
Date: Mon, 22 Oct 2012 21:19:21 +0200

 --Boundary-00=_5wZhQXz13Lr4ES1
 Content-Type: multipart/alternative;
   boundary="Boundary-01=_5wZhQwEUOUCGu56"
 Content-Transfer-Encoding: 7bit
 
 --Boundary-01=_5wZhQwEUOUCGu56
 Content-Type: text/plain;
   charset="us-ascii"
 Content-Transfer-Encoding: 7bit
 
 Request from Adrian Chadd
 ---------------------------------------
 
 On both nodes, enable this:
 
 wlandebug -i wlanX +assoc +ht +rate
 
 Then do some pings on either side. Don't do iperf, it'll dump out way
 too much debugging (one line per frame.) Just pings and record both
 sides is enough.
 
 It'll tell me how the HT negotiation goes, what PHY table is selected,
 what rates there are, etc.
 
 Then, when you've done that, do it for both STA/IBSS and IBSS/IBSS,
 then report back on the bug.
 
 ------------------
 Output attached
 
 --Boundary-01=_5wZhQwEUOUCGu56
 Content-Type: text/html;
   charset="us-ascii"
 Content-Transfer-Encoding: 7bit
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
 <html><head><meta name="qrichtext" content="1" /><style type="text/css">
 p, li { white-space: pre-wrap; }
 </style></head><body style=" font-family:'Bitstream Vera Sans'; font-size:8pt; font-weight:400; font-style:normal;">
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Request from Adrian Chadd</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">---------------------------------------</p>
 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On both nodes, enable this:</p>
 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">wlandebug -i wlanX +assoc +ht +rate</p>
 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Then do some pings on either side. Don't do iperf, it'll dump out way</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">too much debugging (one line per frame.) Just pings and record both</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">sides is enough.</p>
 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">It'll tell me how the HT negotiation goes, what PHY table is selected,</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">what rates there are, etc.</p>
 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Then, when you've done that, do it for both STA/IBSS and IBSS/IBSS,</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">then report back on the bug.</p>
 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">------------------</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Output attached</p>
 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p></body></html>
 --Boundary-01=_5wZhQwEUOUCGu56--
 
 --Boundary-00=_5wZhQXz13Lr4ES1
 Content-Type: text/plain;
   charset="UTF-8";
   name="node-1.txt"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename="node-1.txt"
 
 Node-1 AP mode
 
 mesh-1d04:~ # ifconfig wlan1 down
 mesh-1d04:~ # wlandebug -i wlan1 +assoc +ht +rate
 net.wlan.1.debug: 0x0 => 0x800020<assoc,rate>
 mesh-1d04:~ # ifconfig wlan1 down
 mesh-1d04:~ # ifconfig wlan1 up
 mesh-1d04:~ # wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 1600 FAIL rate/try 0/5 no rates yet
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 1600 FAIL rate/try 0/5 no rates yet
 wlan1: [00:0c:42:6c:63:20] ath_rate_tx_complete: size 250 OK rate/try 0/1 no rates yet
 wlan1: [00:0c:42:6c:63:20] station associated at aid 1: short preamble, short slot time, QoS, HT40 (+AMPDU)
 wlan1: [00:0c:42:6c:63:20] ath_rate_ctl_reset: size 1600 rate/tt 6 Mb /2560 9 Mb /1848 12 Mb /1480 18 Mb /1124 24 Mb /940 36 Mb /764 48 Mb /672 54 Mb /644 0 MCS/1356 1 MCS/880 2 MCS/724 3 MCS/644 4 MCS/564 5 MCS/524 6 MCS/512 7 MCS/500 8 MCS/884 9 MCS/648 10 MCS/568 11 MCS/528 12 MCS/488 13 MCS/468 14 MCS/464 15 MCS/456
 wlan1: [00:0c:42:6c:63:20] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 6 Mb /0/1 nframes/nbad [1/0]
 ping 10.50.50.2
 PING 10.50.50.2 (10.50.50.2): 56 data bytes
 wlan1: [00:0c:42:6c:63:20] ath_rate_findrate: size 250 switch rate 6 (760/760) -> 6 (424/424) after 0 packets mrr 1
 wlan1: [00:0c:42:6c:63:20] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 12 MCS/0/1 nframes/nbad [1/0]
 64 bytes from 10.50.50.2: icmp_seq=0 ttl=64 time=32.931 ms
 wlan1: [00:0c:42:6c:63:20] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:63:20] ath_rate_tx_complete: size 250 (122 mesh-1909:~ # ifconfig wlan1 down
 mesh-1909:~ # wlandebug -i wlan1 +assoc +ht +rate
 net.wlan.1.debug: 0x0 => 0x800020<assoc,rate>
 mesh-1909:~ # ifconfig wlan1 up
 mesh-1909:~ # wlan1: [00:0c:42:6c:61:91] ath_rate_ctl_reset: size 1600 rate/tt 6 Mb /2560 9 Mb /1848 12 Mb /1480 18 Mb /1124 24 Mb /940 36 Mb /764 48 Mb /672 54 Mb /644
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: size 250 switch rate 6 (760/760) -> 36 (464/464) after 0 packets mrr 1
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 (66 bytes) OK rate/short/long 36 Mb /0/1 nframes/nbad [1/0]
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: size 250 switch rate 36 (464/464) -> 54 (444/444) after 1 packets mrr 1
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 54 Mb /0/1 nframes/nbad [1/0]
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 54 Mb /0/1 nframes/nbad [1/0]
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 54 Mb /0/1 nframes/nbad [1/0]
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 54 Mb /0/1 nframes/nbad [1/0]
 ping 10.50.50.1
 PING 10.50.50.1 (10.50.50.1): 56 data bytes
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 54 Mb /0/1 nframes/nbad [1/0]
 64 bytes from 10.50.50.1: icmp_seq=0 ttl=64 time=20.524 ms
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 54 Mb /0/1 nframes/nbad [1/0]
 64 bytes from 10.50.50.1: icmp_seq=1 ttl=64 time=17.004 ms
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 54 Mb /0/1 nframes/nbad [1/0]
 64 bytes from 10.50.50.1: icmp_seq=2 ttl=64 time=17.027 ms
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 54 Mb /0/1 nframes/nbad [1/0]
 64 bytes from 10.50.50.1: icmp_seq=3 ttl=64 time=17.022 ms
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 54 Mb /0/1 nframes/nbad [1/0]
 64 bytes from 10.50.50.1: icmp_seq=4 ttl=64 time=17.019 ms
 ^C
 --- 10.50.50.1 ping statistics ---
 5 packets transmitted, 5 packets received, 0.0% packet loss
 round-trip min/avg/max/stddev = 17.004/17.719/20.524/1.402 ms
 mesh-1909:~ # wlandebug -i wlan1 -assoc -ht -rate
 net.wlan.1.debug: 0x800020 => 0x0
 mesh-1909:~ # ifconfig -v 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 anywhere ecm authmode OPEN -wps -tsn
         privacy OFF deftxkey UNDEF powersavemode OFF powersavesleep 100
         txpower 17 txpowmax 50.0 -dotd rtsthreshold 2346 fragthreshold 2346
         bmiss 7
         11a     ucast NONE    mgmt  6 Mb/s mcast  6 Mb/s maxretry 6
         11b     ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
         11g     ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
         turboA  ucast NONE    mgmt  6 Mb/s mcast  6 Mb/s maxretry 6
         turboG  ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
         sturbo  ucast NONE    mgmt  6 Mb/s mcast  6 Mb/s maxretry 6
         11na    ucast NONE    mgmt 12 MCS  mcast 12 MCS  maxretry 6
         11ng    ucast NONE    mgmt  2 MCS  mcast  2 MCS  maxretry 6
         half    ucast NONE    mgmt  3 Mb/s mcast  3 Mb/s maxretry 6
         quarter ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
         scanvalid 60 -bgscan bgscanintvl 300 bgscanidle 250
         roam:11a     rssi    7dBm rate 12 Mb/s
         roam:11b     rssi    7dBm rate  1 Mb/s
         roam:11g     rssi    7dBm rate  5 Mb/s
         roam:turboA  rssi    7dBm rate 12 Mb/s
         roam:turboG  rssi    7dBm rate 12 Mb/s
         roam:sturbo  rssi    7dBm rate 12 Mb/s
         roam:11na    rssi    7dBm  MCS  1    
         roam:11ng    rssi    7dBm  MCS  1    
         roam:half    rssi    7dBm rate  6 Mb/s
         roam:quarter rssi    7dBm rate  3 Mb/s
         -pureg protmode CTS ht htcompat -ampdu ampdulimit 8k ampdudensity 8
         amsdu shortgi htprotmode RTSCTS -puren -smps -rifs wme burst -dwds
         roaming AUTO bintval 100
         AC_BE cwmin  4 cwmax 10 aifs  3 txopLimit   0 -acm ack
               cwmin  4 cwmax 10 aifs  3 txopLimit   0 -acm
         AC_BK cwmin  4 cwmax 10 aifs  7 txopLimit   0 -acm ack
               cwmin  4 cwmax 10 aifs  7 txopLimit   0 -acm
         AC_VI cwmin  3 cwmax  4 aifs  2 txopLimit  94 -acm ack
               cwmin  3 cwmax  4 aifs  2 txopLimit  94 -acm
         AC_VO cwmin  2 cwmax  3 aifs  2 txopLimit  47 -acm ack
               cwmin  2 cwmax  3 aifs  2 txopLimit  47 -acm
         groups: wlan 
 mesh-1909:~ # ifconfig -v wlan1 list sta
 ADDR               AID CHAN RATE RSSI IDLE  TXSEQ  RXSEQ CAPS FLAG   
 00:0c:42:6c:63:20    0   28   0M 18.0   75      4      0 I    A      
 00:0c:42:6c:61:91    0   28  54M 18.0   15     15    192 I    AQ      SSID<testADHOC> RATES<B12,18,B24,36,B48,72,96,108> DSPARMS<28> IBSSPARMS<06020000> COUNTRY<ZA  24,17 28,17 32,17 36,17 40,17 44,17 48,17 52,24 56,24 60,24 64,24 100,24 104,24 108,24 112,24 116,24 120,24 124,24 128,24 132,24 136,24 140,24 149,23 153,23 157,23 161,23 165,23> PWRCNSTR<200100> HTCAP<cap 0x4e param 0x1b mcsset[0-15] extcap 0x0 txbf 0x0 antenna 0x0> HTINFO<ctl 28, 7,0,0,0 basicmcs[]> WME<qosinfo 0x0 BE[aifsn 3 cwmin 4 cwmax 10  txop 0] BK[aifsn 7 cwmin 4 cwmax 10 txop 0] VO[aifsn 2 cwmin 3 cwmax 4 txop 94] VI[aifsn 2 cwmin 2 cwmax 3 txop 47]> VEN<dd1e00904c334e001bffff000000000000-> VEN<dd1a00904c341c07000000000000000000->
 mesh-1909:~ #bytes) OK rate/short/long 12 MCS/0/1 nframes/nbad [1/0]
 64 bytes from 10.50.50.2: icmp_seq=1 ttl=64 time=17.217 ms
 wlan1: [00:0c:42:6c:63:20] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:63:20] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 12 MCS/0/1 nframes/nbad [1/0]
 64 bytes from 10.50.50.2: icmp_seq=2 ttl=64 time=17.310 ms
 wlan1: [00:0c:42:6c:63:20] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:63:20] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 12 MCS/0/1 nframes/nbad [1/0]
 64 bytes from 10.50.50.2: icmp_seq=3 ttl=64 time=17.200 ms
 wlan1: [00:0c:42:6c:63:20] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:63:20] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 12 MCS/0/1 nframes/nbad [1/0]
 64 bytes from 10.50.50.2: icmp_seq=4 ttl=64 time=17.344 ms
 ^C
 --- 10.50.50.2 ping statistics ---
 5 packets transmitted, 5 packets received, 0.0% packet loss
 round-trip min/avg/max/stddev = 17.200/20.400/32.931/6.266 ms
 mesh-1d04:~ # wlandebug -i wlan1 -assoc -ht -rate
 net.wlan.1.debug: 0x800020 => 0x0
 mesh-1d04:~ # ifconfig -v 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 anywhere ecm authmode OPEN -wps -tsn
         privacy OFF deftxkey UNDEF powersavemode OFF powersavesleep 100
         txpower 17 txpowmax 50.0 -dotd rtsthreshold 2346 fragthreshold 2346
         bmiss 7
         11a     ucast NONE    mgmt  6 Mb/s mcast  6 Mb/s maxretry 6
         11b     ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
         11g     ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
         turboA  ucast NONE    mgmt  6 Mb/s mcast  6 Mb/s maxretry 6
         turboG  ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
         sturbo  ucast NONE    mgmt  6 Mb/s mcast  6 Mb/s maxretry 6
         11na    ucast NONE    mgmt 12 MCS  mcast 12 MCS  maxretry 6
         11ng    ucast NONE    mgmt  2 MCS  mcast  2 MCS  maxretry 6
         half    ucast NONE    mgmt  3 Mb/s mcast  3 Mb/s maxretry 6
         quarter ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
         scanvalid 60 -bgscan bgscanintvl 300 bgscanidle 250
         roam:11a     rssi    7dBm rate 12 Mb/s
         roam:11b     rssi    7dBm rate  1 Mb/s
         roam:11g     rssi    7dBm rate  5 Mb/s
         roam:turboA  rssi    7dBm rate 12 Mb/s
         roam:turboG  rssi    7dBm rate 12 Mb/s
         roam:sturbo  rssi    7dBm rate 12 Mb/s
         roam:11na    rssi    7dBm  MCS  1    
         roam:11ng    rssi    7dBm  MCS  1    
         roam:half    rssi    7dBm rate  6 Mb/s
         roam:quarter rssi    7dBm rate  3 Mb/s
         -pureg protmode CTS ht htcompat ampdu ampdulimit 64k ampdudensity 8
         amsdu shortgi htprotmode RTSCTS -puren -smps -rifs wme burst -dwds
         -hidessid apbridge dtimperiod 1 doth -dfs inact bintval 100
         AC_BE cwmin  4 cwmax  6 aifs  3 txopLimit   0 -acm ack
               cwmin  4 cwmax 10 aifs  3 txopLimit   0 -acm
         AC_BK cwmin  4 cwmax 10 aifs  7 txopLimit   0 -acm ack
               cwmin  4 cwmax 10 aifs  7 txopLimit   0 -acm
         AC_VI cwmin  3 cwmax  4 aifs  1 txopLimit  94 -acm ack
               cwmin  3 cwmax  4 aifs  2 txopLimit  94 -acm
         AC_VO cwmin  2 cwmax  3 aifs  1 txopLimit  47 -acm ack
               cwmin  2 cwmax  3 aifs  2 txopLimit  47 -acm
         groups: wlan 
 mesh-1d04:~ # ifconfig -v wlan1 list sta
 ADDR               AID CHAN RATE RSSI IDLE  TXSEQ  RXSEQ CAPS FLAG   
 00:0c:42:6c:63:20    1   28 216M 15.0   30     14    272 E    AQHTRS  SSID<testAP> RATES<B12,18,B24,36,B48,72,96,108> PWRCAP<21020022> SUPPCHAN<241afe3f0011111111110100-> HTCAP<cap 0x4e param 0x1b mcsset[0-15] extcap 0x0 txbf 0x0 antenna 0x0> WME<version 0x1 info 0x0>
 
 
 
 *****************************************************
 Node-1 ADHOC mode
 
 mesh-1d04:~ # ifconfig wlan1 down
 mesh-1d04:~ # wlandebug -i wlan1 +assoc +ht +rate
 net.wlan.1.debug: 0x0 => 0x800020<assoc,rate>
 mesh-1d04:~ # ifconfig wlan1 up
 mesh-1d04:~ # wlan1: [00:0c:42:6c:63:20] ath_rate_ctl_reset: size 1600 rate/tt 6 Mb /2560 9 Mb /1848 12 Mb /1480 18 Mb /1124 24 Mb /940 36 Mb /764 48 Mb /672 54 Mb /644
 
 mesh-1d04:~ # ping 10.50.50.2
 PING 10.50.50.2 (10.50.50.2): 56 data bytes
 wlan1: [00:0c:42:6c:63:20] ath_rate_findrate: size 250 switch rate 6 (760/760) -> 36 (464/464) after 0 packets mrr 1
 wlan1: [00:0c:42:6c:63:20] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 36 Mb /0/1 nframes/nbad [1/0]
 64 bytes from 10.50.50.2: icmp_seq=0 ttl=64 time=38.839 ms
 wlan1: [00:0c:42:6c:63:20] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:63:20] ath_rate_findrate: size 250 switch rate 36 (464/464) -> 54 (444/444) after 1 packets mrr 1
 wlan1: [00:0c:42:6c:63:20] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 54 Mb /0/1 nframes/nbad [1/0]
 64 bytes from 10.50.50.2: icmp_seq=1 ttl=64 time=27.618 ms
 wlan1: [00:0c:42:6c:63:20] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:63:20] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 54 Mb /0/1 nframes/nbad [1/0]
 64 bytes from 10.50.50.2: icmp_seq=2 ttl=64 time=17.014 ms
 wlan1: [00:0c:42:6c:63:20] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:63:20] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 54 Mb /0/1 nframes/nbad [1/0]
 64 bytes from 10.50.50.2: icmp_seq=3 ttl=64 time=17.009 ms
 ^C
 --- 10.50.50.2 ping statistics ---
 4 packets transmitted, 4 packets received, 0.0% packet loss
 round-trip min/avg/max/stddev = 17.009/25.120/38.839/9.027 ms
 mesh-1d04:~ # wlan1: [00:0c:42:6c:63:20] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:63:20] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 54 Mb /0/1 nframes/nbad [1/0]
 wlan1: [00:0c:42:6c:63:20] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:63:20] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 54 Mb /0/1 nframes/nbad [1/0]
 wlan1: [00:0c:42:6c:63:20] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:63:20] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 54 Mb /0/1 nframes/nbad [1/0]
 wlan1: [00:0c:42:6c:63:20] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:63:20] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 54 Mb /0/1 nframes/nbad [1/0]
 wlan1: [00:0c:42:6c:63:20] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:63:20] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 54 Mb /0/1 nframes/nbad [1/0]
 
 mesh-1d04:~ # wlandebug -i wlan1 -assoc -ht -rate
 net.wlan.1.debug: 0x800020 => 0x0
 mesh-1d04:~ # ifconfig -v 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 anywhere ecm authmode OPEN -wps -tsn
         privacy OFF deftxkey UNDEF powersavemode OFF powersavesleep 100
         txpower 17 txpowmax 50.0 -dotd rtsthreshold 2346 fragthreshold 2346
         bmiss 7
         11a     ucast NONE    mgmt  6 Mb/s mcast  6 Mb/s maxretry 6
         11b     ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
         11g     ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
         turboA  ucast NONE    mgmt  6 Mb/s mcast  6 Mb/s maxretry 6
         turboG  ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
         sturbo  ucast NONE    mgmt  6 Mb/s mcast  6 Mb/s maxretry 6
         11na    ucast NONE    mgmt 12 MCS  mcast 12 MCS  maxretry 6
         11ng    ucast NONE    mgmt  2 MCS  mcast  2 MCS  maxretry 6
         half    ucast NONE    mgmt  3 Mb/s mcast  3 Mb/s maxretry 6
         quarter ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
         scanvalid 60 -bgscan bgscanintvl 300 bgscanidle 250
         roam:11a     rssi    7dBm rate 12 Mb/s
         roam:11b     rssi    7dBm rate  1 Mb/s
         roam:11g     rssi    7dBm rate  5 Mb/s
         roam:turboA  rssi    7dBm rate 12 Mb/s
         roam:turboG  rssi    7dBm rate 12 Mb/s
         roam:sturbo  rssi    7dBm rate 12 Mb/s
         roam:11na    rssi    7dBm  MCS  1    
         roam:11ng    rssi    7dBm  MCS  1    
         roam:half    rssi    7dBm rate  6 Mb/s
         roam:quarter rssi    7dBm rate  3 Mb/s
         -pureg protmode CTS ht htcompat -ampdu ampdulimit 8k ampdudensity 8
         amsdu shortgi htprotmode RTSCTS -puren -smps -rifs wme burst -dwds
         roaming AUTO bintval 100
         AC_BE cwmin  4 cwmax 10 aifs  3 txopLimit   0 -acm ack
               cwmin  4 cwmax 10 aifs  3 txopLimit   0 -acm
         AC_BK cwmin  4 cwmax 10 aifs  7 txopLimit   0 -acm ack
               cwmin  4 cwmax 10 aifs  7 txopLimit   0 -acm
         AC_VI cwmin  3 cwmax  4 aifs  2 txopLimit  94 -acm ack
               cwmin  3 cwmax  4 aifs  2 txopLimit  94 -acm
         AC_VO cwmin  2 cwmax  3 aifs  2 txopLimit  47 -acm ack
               cwmin  2 cwmax  3 aifs  2 txopLimit  47 -acm
         groups: wlan 
 mesh-1d04:~ # ifconfig -v wlan1 list sta
 ADDR               AID CHAN RATE RSSI IDLE  TXSEQ  RXSEQ CAPS FLAG   
 00:0c:42:6c:61:91    0   28   0M 18.0   60      6      0 I    A      
 00:0c:42:6c:63:20    0   28  54M 18.0    0     13    224 I    AQ      SSID<testADHOC> RATES<B12,18,B24,36,B48,72,96,108> DSPARMS<28> IBSSPARMS<06020000> COUNTRY<ZA  24,17 28,17 32,17 36,17 40,17 44,17 48,17 52,24 56,24 60,24 64,24 100,24 104,24 108,24 112,24 116,24 120,24 124,24 128,24 132,24 136,24 140,24 149,23 153,23 157,23 161,23 165,23> PWRCNSTR<200100> HTCAP<cap 0x4e param 0x1b mcsset[0-15] extcap 0x0 txbf 0x0 antenna 0x0> HTINFO<ctl 28, 7,0,0,0 basicmcs[]> WME<qosinfo 0x0 BE[aifsn 3 cwmin 4 cwmax 10  txop 0] BK[aifsn 7 cwmin 4 cwmax 10 txop 0] VO[aifsn 2 cwmin 3 cwmax 4 txop 94] VI[aifsn 2 cwmin 2 cwmax 3 txop 47]> VEN<dd1e00904c334e001bffff000000000000-> VEN<dd1a00904c341c07000000000000000000->
 mesh-1d04:~ #
 --Boundary-00=_5wZhQXz13Lr4ES1
 Content-Type: text/plain;
   charset="UTF-8";
   name="node-2.txt"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename="node-2.txt"
 
 Node-2 ST mode
 
 mesh-1909:~ # ifconfig wlan1 down
 mesh-1909:~ # wlandebug -i wlan1 +assoc +ht +rate
 net.wlan.1.debug: 0x0 => 0x800020<assoc,rate>
 mesh-1909:~ # ifconfig wlan1 up
 mesh-1909:~ # wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 OK rate/try 0/1 no rates yet
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 OK rate/try 0/1 no rates yet
 wlan1: [00:0c:42:6c:61:91] switch station to HT40 channel 5140/0x40340
 wlan1: [00:0c:42:6c:61:91] assoc success at aid 1: short preamble, short slot time, QoS, HT40 (+AMPDU)
 wlan1: [00:0c:42:6c:61:91] ath_rate_ctl_reset: size 1600 rate/tt 6 Mb /2560 9 Mb /1848 12 Mb /1480 18 Mb /1124 24 Mb /940 36 Mb /764 48 Mb /672 54 Mb /644 0 MCS/1356 1 MCS/880 2 MCS/724 3 MCS/644 4 MCS/564 5 MCS/524 6 MCS/512 7 MCS/500 8 MCS/884 9 MCS/648 10 MCS/568 11 MCS/528 12 MCS/488 13 MCS/468 14 MCS/464 15 MCS/456
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: size 250 switch rate 6 (760/760) -> 6 (424/424) after 0 packets mrr 1
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 (66 bytes) OK rate/short/long 12 MCS/0/1 nframes/nbad [1/0]
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 12 MCS/0/1 nframes/nbad [1/0]
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 12 MCS/0/1 nframes/nbad [1/0]
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 12 MCS/0/1 nframes/nbad [1/0]
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 12 MCS/0/1 nframes/nbad [1/0]
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 12 MCS/0/1 nframes/nbad [1/0]
 wlandebug -i wlan1 -assoc -ht -rate
 net.wlan.1.debug: 0x800020 => 0x0
 mesh-1909:~ # ifconfig -v 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 anywhere ecm authmode OPEN -wps -tsn
         privacy OFF deftxkey UNDEF powersavemode OFF powersavesleep 100
         txpower 17 txpowmax 50.0 -dotd rtsthreshold 2346 fragthreshold 2346
         bmiss 7
         11a     ucast NONE    mgmt  6 Mb/s mcast  6 Mb/s maxretry 6
         11b     ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
         11g     ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
         turboA  ucast NONE    mgmt  6 Mb/s mcast  6 Mb/s maxretry 6
         turboG  ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
         sturbo  ucast NONE    mgmt  6 Mb/s mcast  6 Mb/s maxretry 6
         11na    ucast NONE    mgmt 12 MCS  mcast 12 MCS  maxretry 6
         11ng    ucast NONE    mgmt  2 MCS  mcast  2 MCS  maxretry 6
         half    ucast NONE    mgmt  3 Mb/s mcast  3 Mb/s maxretry 6
         quarter ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
         scanvalid 60 -bgscan bgscanintvl 300 bgscanidle 250
         roam:11a     rssi    7dBm rate 12 Mb/s
         roam:11b     rssi    7dBm rate  1 Mb/s
         roam:11g     rssi    7dBm rate  5 Mb/s
         roam:turboA  rssi    7dBm rate 12 Mb/s
         roam:turboG  rssi    7dBm rate 12 Mb/s
         roam:sturbo  rssi    7dBm rate 12 Mb/s
         roam:11na    rssi    7dBm  MCS  1    
         roam:11ng    rssi    7dBm  MCS  1    
         roam:half    rssi    7dBm rate  6 Mb/s
         roam:quarter rssi    7dBm rate  3 Mb/s
         -pureg protmode CTS ht htcompat ampdu ampdulimit 64k ampdudensity 8
         amsdu shortgi htprotmode RTSCTS -puren -smps -rifs wme burst -dwds
         roaming AUTO bintval 100
         AC_BE cwmin  3 cwmax 10 aifs  2 txopLimit  64 -acm ack
               cwmin  4 cwmax 10 aifs  3 txopLimit   0 -acm
         AC_BK cwmin  4 cwmax 10 aifs  7 txopLimit   0 -acm ack
               cwmin  4 cwmax 10 aifs  7 txopLimit   0 -acm
         AC_VI cwmin  3 cwmax  4 aifs  2 txopLimit  94 -acm ack
               cwmin  3 cwmax  4 aifs  2 txopLimit  94 -acm
         AC_VO cwmin  2 cwmax  3 aifs  2 txopLimit  47 -acm ack
               cwmin  2 cwmax  3 aifs  2 txopLimit  47 -acm
         groups: wlan 
 mesh-1909:~ # ifconfig -v wlan1 list sta
 ADDR               AID CHAN RATE RSSI IDLE  TXSEQ  RXSEQ CAPS FLAG   
 00:0c:42:6c:61:91    1   28 162M 17.5    0     18    208 E    AQHTRS  SSID<testAP> RATES<B12,18,B24,36,B48,72,96,108> DSPARMS<28> TIM<050400010000> COUNTRY<ZA  24,17 28,17 32,17 36,17 40,17 44,17 48,17 52,24 56,24 60,24 64,24 100,24 104,24 108,24 112,24 116,24 120,24 124,24 128,24 132,24 136,24 140,24 149,23 153,23 157,23 161,23 165,23> PWRCNSTR<200100> HTCAP<cap 0x4e param 0x1b mcsset[0-15] extcap 0x0 txbf 0x0 antenna 0x0> HTINFO<ctl 28, 7,0,0,0 basicmcs[]> WME<qosinfo 0x8 BE[aifsn 2 cwmin 3 cwmax 10 txop  64] BK[aifsn 7 cwmin 4 cwmax 10 txop 0] VO[aifsn 2 cwmin 3 cwmax 4 txop 94] VI[aifsn 2 cwmin 2 cwmax 3 txop 47]> VEN<dd1e00904c334e001bffff000000000000-> VEN<dd1a00904c341c07000000000000000000->
 
 
 
 ***************************************************
 Node-2 ADHOC mode
 
 mesh-1909:~ # ifconfig wlan1 down
 mesh-1909:~ # wlandebug -i wlan1 +assoc +ht +rate
 net.wlan.1.debug: 0x0 => 0x800020<assoc,rate>
 mesh-1909:~ # ifconfig wlan1 up
 mesh-1909:~ # wlan1: [00:0c:42:6c:61:91] ath_rate_ctl_reset: size 1600 rate/tt 6 Mb /2560 9 Mb /1848 12 Mb /1480 18 Mb /1124 24 Mb /940 36 Mb /764 48 Mb /672 54 Mb /644
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: size 250 switch rate 6 (760/760) -> 36 (464/464) after 0 packets mrr 1
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 (66 bytes) OK rate/short/long 36 Mb /0/1 nframes/nbad [1/0]
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: size 250 switch rate 36 (464/464) -> 54 (444/444) after 1 packets mrr 1
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 54 Mb /0/1 nframes/nbad [1/0]
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 54 Mb /0/1 nframes/nbad [1/0]
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 54 Mb /0/1 nframes/nbad [1/0]
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 54 Mb /0/1 nframes/nbad [1/0]
 ping 10.50.50.1
 PING 10.50.50.1 (10.50.50.1): 56 data bytes
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 54 Mb /0/1 nframes/nbad [1/0]
 64 bytes from 10.50.50.1: icmp_seq=0 ttl=64 time=20.524 ms
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 54 Mb /0/1 nframes/nbad [1/0]
 64 bytes from 10.50.50.1: icmp_seq=1 ttl=64 time=17.004 ms
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 54 Mb /0/1 nframes/nbad [1/0]
 64 bytes from 10.50.50.1: icmp_seq=2 ttl=64 time=17.027 ms
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 54 Mb /0/1 nframes/nbad [1/0]
 64 bytes from 10.50.50.1: icmp_seq=3 ttl=64 time=17.022 ms
 wlan1: [00:0c:42:6c:61:91] ath_rate_findrate: switching quickly..
 wlan1: [00:0c:42:6c:61:91] ath_rate_tx_complete: size 250 (122 bytes) OK rate/short/long 54 Mb /0/1 nframes/nbad [1/0]
 64 bytes from 10.50.50.1: icmp_seq=4 ttl=64 time=17.019 ms
 ^C
 --- 10.50.50.1 ping statistics ---
 5 packets transmitted, 5 packets received, 0.0% packet loss
 round-trip min/avg/max/stddev = 17.004/17.719/20.524/1.402 ms
 mesh-1909:~ # wlandebug -i wlan1 -assoc -ht -rate
 net.wlan.1.debug: 0x800020 => 0x0
 mesh-1909:~ # ifconfig -v 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 anywhere ecm authmode OPEN -wps -tsn
         privacy OFF deftxkey UNDEF powersavemode OFF powersavesleep 100
         txpower 17 txpowmax 50.0 -dotd rtsthreshold 2346 fragthreshold 2346
         bmiss 7
         11a     ucast NONE    mgmt  6 Mb/s mcast  6 Mb/s maxretry 6
         11b     ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
         11g     ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
         turboA  ucast NONE    mgmt  6 Mb/s mcast  6 Mb/s maxretry 6
         turboG  ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
         sturbo  ucast NONE    mgmt  6 Mb/s mcast  6 Mb/s maxretry 6
         11na    ucast NONE    mgmt 12 MCS  mcast 12 MCS  maxretry 6
         11ng    ucast NONE    mgmt  2 MCS  mcast  2 MCS  maxretry 6
         half    ucast NONE    mgmt  3 Mb/s mcast  3 Mb/s maxretry 6
         quarter ucast NONE    mgmt  1 Mb/s mcast  1 Mb/s maxretry 6
         scanvalid 60 -bgscan bgscanintvl 300 bgscanidle 250
         roam:11a     rssi    7dBm rate 12 Mb/s
         roam:11b     rssi    7dBm rate  1 Mb/s
         roam:11g     rssi    7dBm rate  5 Mb/s
         roam:turboA  rssi    7dBm rate 12 Mb/s
         roam:turboG  rssi    7dBm rate 12 Mb/s
         roam:sturbo  rssi    7dBm rate 12 Mb/s
         roam:11na    rssi    7dBm  MCS  1    
         roam:11ng    rssi    7dBm  MCS  1    
         roam:half    rssi    7dBm rate  6 Mb/s
         roam:quarter rssi    7dBm rate  3 Mb/s
         -pureg protmode CTS ht htcompat -ampdu ampdulimit 8k ampdudensity 8
         amsdu shortgi htprotmode RTSCTS -puren -smps -rifs wme burst -dwds
         roaming AUTO bintval 100
         AC_BE cwmin  4 cwmax 10 aifs  3 txopLimit   0 -acm ack
               cwmin  4 cwmax 10 aifs  3 txopLimit   0 -acm
         AC_BK cwmin  4 cwmax 10 aifs  7 txopLimit   0 -acm ack
               cwmin  4 cwmax 10 aifs  7 txopLimit   0 -acm
         AC_VI cwmin  3 cwmax  4 aifs  2 txopLimit  94 -acm ack
               cwmin  3 cwmax  4 aifs  2 txopLimit  94 -acm
         AC_VO cwmin  2 cwmax  3 aifs  2 txopLimit  47 -acm ack
               cwmin  2 cwmax  3 aifs  2 txopLimit  47 -acm
         groups: wlan 
 mesh-1909:~ # ifconfig -v wlan1 list sta
 ADDR               AID CHAN RATE RSSI IDLE  TXSEQ  RXSEQ CAPS FLAG   
 00:0c:42:6c:63:20    0   28   0M 18.0   75      4      0 I    A      
 00:0c:42:6c:61:91    0   28  54M 18.0   15     15    192 I    AQ      SSID<testADHOC> RATES<B12,18,B24,36,B48,72,96,108> DSPARMS<28> IBSSPARMS<06020000> COUNTRY<ZA  24,17 28,17 32,17 36,17 40,17 44,17 48,17 52,24 56,24 60,24 64,24 100,24 104,24 108,24 112,24 116,24 120,24 124,24 128,24 132,24 136,24 140,24 149,23 153,23 157,23 161,23 165,23> PWRCNSTR<200100> HTCAP<cap 0x4e param 0x1b mcsset[0-15] extcap 0x0 txbf 0x0 antenna 0x0> HTINFO<ctl 28, 7,0,0,0 basicmcs[]> WME<qosinfo 0x0 BE[aifsn 3 cwmin 4 cwmax 10  txop 0] BK[aifsn 7 cwmin 4 cwmax 10 txop 0] VO[aifsn 2 cwmin 3 cwmax 4 txop 94] VI[aifsn 2 cwmin 2 cwmax 3 txop 47]> VEN<dd1e00904c334e001bffff000000000000-> VEN<dd1a00904c341c07000000000000000000->
 mesh-1909:~ #
 --Boundary-00=_5wZhQXz13Lr4ES1--

From: Adrian Chadd <adrian@freebsd.org>
To: Johann Hugo <jhugo@meraka.csir.co.za>
Cc: bug-followup@freebsd.org
Subject: Re: misc/172955: [ath] 11n does not work in adhoc mode
Date: Mon, 22 Oct 2012 12:57:42 -0700

 Right, it looks like the adhoc nodes are advertising HTCAP in the
 beacons; however it's not actually treating that node as HT capable.
 
 Something needs to "upgrade" those nodes to HT.
 
 
 Adrian
>Unformatted:
