Atheros 9220 in 11a mode

Johann Hugo jhugo at meraka.csir.co.za
Tue Jul 29 07:39:24 UTC 2014


Hi

Are there any special settings needed to operate a 11n adapter in 11a mode ?
e.g. dev.ath.0.rxantenna


I've managed to get it into 11a mode, but for some reason more that 80% of all 
big packets are dropped, small packets works fine. 


mesh-6c9a:~ # uname -a
FreeBSD mesh-6c9a 11.0-CURRENT FreeBSD 11.0-CURRENT #16 r268838M: Thu Jul 24 
14:41:29 SAST 2014     
jhay at dolphin.meraka.csir.co.za:/usr/obj/arm.armeb/snaps/arm/11-
tst/src/sys/SMALL-CAMBRIA  arm

dmesg:
ath0: <Atheros 9220> irq 28 at device 1.0 on pci0
[ath] enabling AN_TOP2_FIXUP
ath0: [HT] enabling HT modes
ath0: [HT] 1 stream STBC receive enabled
ath0: [HT] 1 stream STBC transmit enabled
ath0: [HT] 2 RX streams; 2 TX streams
ath0: AR9220 mac 128.2 RF5133 phy 13.0
ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00c0


mesh-6c9a:~ # ifconfig wlan0 channel 112:a/20
mesh-6c9a:~ # ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:21:a4:35:6c:9a
        inet6 fe80::221:a4ff:fe35:6c9a%wlan0 prefixlen 64 scopeid 0x7 
        inet6 fde4:7b85:9218:10:221:a4ff:fe35:6c9a prefixlen 64 
        inet6 fde4:7b85:9218:10:: prefixlen 64 anycast 
        ssid ptabb channel 112 (5560 MHz 11a ht/40-) bssid 02:02:ca:fe:12:34
        regdomain NONE country ZA ecm authmode OPEN privacy OFF txpower 27
        mcastrate 6 mgmtrate 6 scanvalid 60 ampdulimit 8k ampdudensity 8
        shortgi wme burst
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11na <adhoc>
        status: running
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>


mesh-6c9a:~ # ifconfig wlan0 mode 11a
mesh-6c9a:~ # ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:21:a4:35:6c:9a
        inet6 fe80::221:a4ff:fe35:6c9a%wlan0 prefixlen 64 scopeid 0x7 
        inet6 fde4:7b85:9218:10:221:a4ff:fe35:6c9a prefixlen 64 
        inet6 fde4:7b85:9218:10:: prefixlen 64 anycast 
        ssid ptabb channel 112 (5560 MHz 11a ht/40-) bssid 02:02:ca:fe:12:34
        regdomain NONE country ZA ecm authmode OPEN privacy OFF txpower 27
        mcastrate 6 mgmtrate 6 scanvalid 60 ampdulimit 8k ampdudensity 8
        shortgi wme burst
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11na <adhoc>
        status: running
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>


This one does the trick.

mesh-6c9a:~ # ifconfig wlan0 -ht
mesh-6c9a:~ # ifconfig -v wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:21:a4:35:6c:9a
        inet6 fe80::221:a4ff:fe35:6c9a%wlan0 prefixlen 64 scopeid 0x7 
        inet6 fde4:7b85:9218:10:221:a4ff:fe35:6c9a prefixlen 64 
        inet6 fde4:7b85:9218:10:: prefixlen 64 anycast 
        groups: wlan 
        ssid ptabb channel 112 (5560 MHz 11a) bssid 02:02:ca:fe:12:34
        regdomain NONE country ZA anywhere ecm authmode OPEN -wps -tsn
        privacy OFF deftxkey UNDEF powersavemode OFF powersavesleep 100
        txpower 27 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
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11a <adhoc>
        status: running
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>


mesh-6c9a:~ # ping6 -i 0.1 -s 1450 fe80::221:a4ff:fe31:2a55%wlan0
PING6(1498=40+8+1450 bytes) fe80::221:a4ff:fe35:6c9a%wlan0 --> 
fe80::221:a4ff:fe31:2a55%wlan0
1458 bytes from fe80::221:a4ff:fe31:2a55%wlan0, icmp_seq=4 hlim=64 time=5.141 
ms
1458 bytes from fe80::221:a4ff:fe31:2a55%wlan0, icmp_seq=9 hlim=64 time=7.357 
ms
1458 bytes from fe80::221:a4ff:fe31:2a55%wlan0, icmp_seq=14 hlim=64 time=6.035 
ms
1458 bytes from fe80::221:a4ff:fe31:2a55%wlan0, icmp_seq=92 hlim=64 
time=10.437 ms
1458 bytes from fe80::221:a4ff:fe31:2a55%wlan0, icmp_seq=102 hlim=64 
time=17.306 ms
1458 bytes from fe80::221:a4ff:fe31:2a55%wlan0, icmp_seq=103 hlim=64 
time=7.724 ms
1458 bytes from fe80::221:a4ff:fe31:2a55%wlan0, icmp_seq=104 hlim=64 
time=13.918 ms
1458 bytes from fe80::221:a4ff:fe31:2a55%wlan0, icmp_seq=202 hlim=64 
time=7.162 ms
1458 bytes from fe80::221:a4ff:fe31:2a55%wlan0, icmp_seq=206 hlim=64 
time=9.092 ms
^C
--- fe80::221:a4ff:fe31:2a55%wlan0 ping6 statistics ---
209 packets transmitted, 9 packets received, 95.7% packet loss
round-trip min/avg/max/std-dev = 5.141/9.352/17.306/3.735 ms


B.t.w the same setup works fine if I swap the 11n adapter with a 11a adapter 
(Atheros 5413 chipset)



More information about the freebsd-wireless mailing list