AR9280 and noisy environments, please test
Lev Serebryakov
lev at FreeBSD.org
Fri Nov 4 12:34:23 UTC 2011
Hello, Adrian.
You wrote 3 ноября 2011 г., 7:17:06:
> What I'd like you guys to try:
> * update if_ath_tx!
Done :)
Here is preliminary results of UDP iperf.
Wired Server -> Notebook (AP SENDS):
[1928] 1.0- 2.0 sec 914 KBytes 7.49 Mbits/sec 2.509 ms 7934/ 8571 (93%)
[1928] 2.0- 3.0 sec 909 KBytes 7.44 Mbits/sec 2.572 ms 7874/ 8507 (93%)
[1928] 3.0- 4.0 sec 899 KBytes 7.36 Mbits/sec 2.607 ms 7868/ 8494 (93%)
[1928] 4.0- 5.0 sec 903 KBytes 7.40 Mbits/sec 2.855 ms 7873/ 8502 (93%)
[1928] 5.0- 6.0 sec 904 KBytes 7.41 Mbits/sec 2.684 ms 8056/ 8686 (93%)
[1928] 6.0- 7.0 sec 906 KBytes 7.42 Mbits/sec 2.476 ms 7844/ 8475 (93%)
[1928] 7.0- 8.0 sec 913 KBytes 7.48 Mbits/sec 2.692 ms 7950/ 8586 (93%)
[1928] 8.0- 9.0 sec 887 KBytes 7.27 Mbits/sec 2.951 ms 7723/ 8341 (93%)
[1928] 9.0-10.0 sec 909 KBytes 7.44 Mbits/sec 2.722 ms 8099/ 8732 (93%)
[1928] 0.0-10.9 sec 9.65 MBytes 7.42 Mbits/sec 3.078 ms 78580/85388 (92%)
Notebook -> Wired server (AP RECEIVES):
[ 4] 0.0- 1.0 sec 713 KBytes 5.84 Mbits/sec 9.225 ms 0/ 497 (0%)
[ 4] 1.0- 2.0 sec 1.66 MBytes 13.9 Mbits/sec 0.658 ms 0/ 1181 (0%)
[ 4] 2.0- 3.0 sec 1.80 MBytes 15.1 Mbits/sec 2.401 ms 0/ 1282 (0%)
[ 4] 3.0- 4.0 sec 1.80 MBytes 15.1 Mbits/sec 1.062 ms 0/ 1283 (0%)
[ 4] 4.0- 5.0 sec 2.00 MBytes 16.8 Mbits/sec 0.664 ms 0/ 1430 (0%)
[ 4] 5.0- 6.0 sec 1.33 MBytes 11.2 Mbits/sec 8.788 ms 0/ 952 (0%)
[ 4] 6.0- 7.0 sec 1.52 MBytes 12.7 Mbits/sec 3.875 ms 0/ 1081 (0%)
[ 4] 7.0- 8.0 sec 996 KBytes 8.16 Mbits/sec 8.685 ms 0/ 694 (0%)
[ 4] 8.0- 9.0 sec 1.19 MBytes 9.98 Mbits/sec 1.565 ms 0/ 849 (0%)
[ 4] 9.0-10.0 sec 1.27 MBytes 10.7 Mbits/sec 1.653 ms 0/ 906 (0%)
[ 4] 0.0-10.0 sec 14.3 MBytes 11.9 Mbits/sec 8.195 ms 0/10172 (0%)
> * run the ar9280 in hostap or STA mode, it doesn't matter what, but
> enable NF and ANI debugging:
> # sysctl dev.ath.X.hal.debug=0x28
> * let it run for a couple of minutes, so it gets a couple of NF
> calibrations (which occur every 30 seconds) and then report that to
> me.
Done. And iperf is tunning 90 seconds in one direction and 180
seconds in other. It is "ath-debug-default.log.xz"
BTW, here are some seconds (burst of 7-10 seconds) when WiFi shows
zero speed, and after that, speed goes up! Like "7Mbit/s sending for
1 minute, 10 seconds without traffic, 24Mbit/s sends for antother 2
minutes"
> What you'll likely see is:
> * ANI goes bezerk with OFDM/CCK errors, and tries bumping up some
> things (spur immunity, firstep);
> * the NF values calibrated are either crazy looking (higher than -80),
> or chain 0 / chain 1 values are wildly mismatching;
> Then, try changing the longcal value from 30 to 1, and email me two or
> so minutes of logging output.
> Finally, set the CCA threshold to something manual, and rerun tests
> for a couple minutes:
> # sysctl dev.ath.X.config.cca=-85
Done. And iperf is tunning 90 seconds in one direction and 180
seconds in other. It is "ath-debug-cca-85.log.xz"
Speed drops significantly in both directions (to 4-5Mbit/s) :(
And here are output of "sysctl dev.ath.0.sample_stats" after all
these experiments.
And here are my config:
> ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether f4:ec:38:a3:10:6d
inet 192.168.135.1 netmask 0xffffff00 broadcast 192.168.135.255
inet6 fe80::f6ec:38ff:fea3:106d%wlan0 prefixlen 64 scopeid 0xc
inet6 2001:470:923f:2::1 prefixlen 64
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng <hostap>
status: running
ssid home.serebryakov.spb.ru channel 9 (2452 MHz 11g ht/20) bssid f4:ec:38:a3:10:6d
regdomain ROW country RU indoor ecm authmode WPA2/802.11i
privacy MIXED deftxkey 3 AES-CCM 2:128-bit AES-CCM 3:128-bit
txpower 30 scanvalid 60 protmode CTS -ampdutx ampdurx ampdulimit 64k
ampdudensity 8 shortgi wme burst dtimperiod 1 -dfs
> ifconfig wlan0 list sta
ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG
00:18:de:08:e8:1d 1 9 36M 20.5 0 31527 24464 EPS AQE RSN WME
> grep ath0 /var/run/dmesg.boot
ath0: <Atheros 9280> mem 0xa0060000-0xa006ffff irq 15 at device 17.0 on pci0
ath0: [HT] enabling HT modes
ath0: [HT] 2 RX streams; 2 TX streams
ath0: AR9280 mac 128.2 RF5133 phy 13.0
>
--
// Black Lion AKA Lev Serebryakov <lev at FreeBSD.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ath-debug-cca-85.log.xz
Type: application/octet-stream
Size: 5432 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-wireless/attachments/20111104/547e7cbd/ath-debug-cca-85.log.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ath-debug-default.log.xz
Type: application/octet-stream
Size: 10280 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-wireless/attachments/20111104/547e7cbd/ath-debug-default.log.obj
More information about the freebsd-wireless
mailing list