11n in adhoc mode

Adrian Chadd adrian at freebsd.org
Wed Dec 12 16:53:43 UTC 2012


Let me do some more digging. If you set the channel like that you run
through a different code path to if you do it via scanning.

Also, I did tidy up and remove some code before I posted that diff.
Maybe some of it was needed.

mesh-2870:~ # athratestats -i ath1 -m 00:0c:42:6c:61:91
static_rix (-1) ratemask 0x0

See that? The ratemask is all wrong, even for an 11a/11bg node. Maybe
how it learnt about the second node was via a different code path..



Adrian

On 12 December 2012 04:29, Johann Hugo <jhugo at meraka.csir.co.za> wrote:
> On Wednesday, December 12, 2012 01:58:38 AM Adrian Chadd wrote:
>
>> Here's what I have trimmed this down to so far:
>
>>
>
>>
>> http://people.freebsd.org/~adrian/ath/20121212-11n-ibss-and-other-stuff-3.di
>
>> ff
>
>>
>
>> Please disable ampdu for now (ifconfig wlanX -ampdu) as it just plain
>
>> doesn't work.
>
>> I'll figure out why once I figure out the cleanest way to get this 11n
>
>> IBSS stuff working.
>
>>
>
>> I've tested this between two 11n nodes and a third 11a only node.
>
>> So far it works out ok. But it obviously could do with a lot more
>
>> thorough testing.
>
>>
>
>> I'd appreciate feedback!
>
>>
>
>
>
> No luck. Maybe I'm missing some settings ?
>
>
>
> mesh-2870:~ # uname -a
>
> FreeBSD mesh-2870 10.0-CURRENT FreeBSD 10.0-CURRENT #15: Wed Dec 12 11:38:06
>
>
>
> rc.conf
>
> create_args_wlan1="wlanmode adhoc country ZA"
>
> ifconfig_wlan1="10.50.50.2/24 ssid testADHOC channel 28:ht/40 -ampdu bssid
> 02:8c:ca:fe:ca:10"
>
>
>
> mesh-2870:~ # 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
>
> 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 -ampdu ampdulimit 8k
>
> ampdudensity 8 shortgi wme burst
>
>
>
> mesh-2870:~ # 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-2870:~ # ifconfig wlan1 list sta
>
> ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG
>
> 00:0c:42:6c:63:20 0 28 0M 18.0 300 21 0 I A
>
> 00:0c:42:6c:61:91 0 28 54M 17.5 0 122 1552 I AQ HTCAP WME
>
>
>
> mesh-2870:~ # athratestats -i ath1 -m 00:0c:42:6c:61:91
>
> static_rix (-1) ratemask 0x0
>
> [ 250] cur rate 54 Mb since switch: packets 1 ticks 142385
>
> [ 250] last sample (6 Mb) cur sample (0 ) packets sent 122
>
> [ 250] packets since sample 1 sample tt 0
>
>
>
> [1600] cur rate 54 Mb since switch: packets 1 ticks 93578
>
> [1600] last sample (6 Mb) cur sample (0 ) packets sent 3
>
> [1600] packets since sample 3 sample tt 0
>
>
>
> TX Rate TXTOTAL:TXOK EWMA T/ F avg last xmit
>
> [36 Mb: 250] 1:1 (100.0%) 1/ 0 464uS 6977
>
> [36 Mb:1600] 1:1 (100.0%) 1/ 0 764uS 93021
>
> [54 Mb: 250] 121:121 (100.0%) 121/ 0 444uS 142385
>
> [54 Mb:1600] 2:2 (100.0%) 2/ 0 644uS 93578
>
>
>
> Johann


More information about the freebsd-wireless mailing list