All of lore.kernel.org
 help / color / mirror / Atom feed
* [ath9k-devel] how to config AR9280 for operation as 1X1 or other ideas
@ 2011-03-29 13:33 Larry Vaden
  2011-03-29 14:36 ` Felix Fietkau
  0 siblings, 1 reply; 21+ messages in thread
From: Larry Vaden @ 2011-03-29 13:33 UTC (permalink / raw)
  To: ath9k-devel

Good morning, ath9k devs and OpenWrt-users.

Please excuse the cross post, not something we normally do.

We have a particularly difficult situation in which we are trying to
achieve a stable link over 1.2 miles with the Ubiquiti M900 which uses
the AR9280 and thus 2X2 MIMO.

We loaded OpenWrt trunk as a scientific control when we observed
spontaneous reboots on AirOS 5.2.1 and 5.3.

There is only one tree in the Fresnel zone and it has few leaves this
time of year.  An unlicensed SCADA operation is a few miles away,
using omnis at six water towers.

To try to reduce the number of variables, we note with interest
MikroTik's statement below the sig and ask folks on ath9k-devel and
OpenWrt-users how to configure, e.g., OpenWrt to use only chain 0.

Excerpts of dmesg for the AP are also below the sig.  dmesg on the CPE is quiet.

If the objective of this email is unrelated, please offer any advice
to achieve desired operation.

THANKS in advance for your help --- it is fully appreciated.

Kind regards/ldv
-- 
Larry Vaden, CoFounder
Internet Texoma, Inc.
Serving Rural Texomaland Since 1995
We Care About Your Connection!

===From Mikrotik's manual on the SXT:

If you want to overcome certain obstacles or interference by using
only one polarization in 802.11a mode,
you can switch off chain1 of the wireless device. When chain0 is used,
the device is horizontally polarized
when mounted as indicated in the Mounting section of this document. If
you wish to use vertical polarization,
turn the device 90 degrees to that the mounting bracket attachment is
parallel to the ground. Chain1 can't
be used separately. Switching off chain1 to use only one polarization
can be done in the RouterOS wireless
configuration menu.

ath: Failed to stop TX DMA!
ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
ath: Could not stop RX, we could be confusing the DMA engine when we start RX up
ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020

iperf output (last few lines of 6 hour run):


[  3] 20340.0-20400.0 sec  4.50 MBytes   629 Kbits/sec
[  3] 20400.0-20460.0 sec   640 KBytes  87.4 Kbits/sec
[  3] 20460.0-20520.0 sec  3.63 MBytes   507 Kbits/sec
[  3] 20520.0-20580.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 20580.0-20640.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 20640.0-20700.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 20700.0-20760.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 20760.0-20820.0 sec   128 KBytes  17.5 Kbits/sec
[  3] 20820.0-20880.0 sec  7.00 MBytes   979 Kbits/sec
[  3] 20880.0-20940.0 sec   128 KBytes  17.5 Kbits/sec
[  3] 20940.0-21000.0 sec  1.88 MBytes   262 Kbits/sec
[  3] 21000.0-21060.0 sec   256 KBytes  35.0 Kbits/sec
[  3] 21060.0-21120.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 21120.0-21180.0 sec   768 KBytes   105 Kbits/sec
[  3] 21180.0-21240.0 sec  1.75 MBytes   245 Kbits/sec
[  3] 21240.0-21300.0 sec   384 KBytes  52.4 Kbits/sec
[  3] 21300.0-21360.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 21360.0-21420.0 sec  1.38 MBytes   192 Kbits/sec
[  3] 21420.0-21480.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 21480.0-21540.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 21540.0-21600.0 sec  0.00 Bytes  0.00 bits/sec
[  3]  0.0-21643.1 sec  2.22 GBytes   883 Kbits/sec
root at OpenWrt:~# uname -a
Linux OpenWrt 2.6.37.4 #1 Sat Mar 26 06:57:51 CET 2011 mips GNU/Linux
root at OpenWrt:~# cat /etc/banner
  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 Backfire (10.03.1-rc4, r24045) --------------------
  * 1/3 shot Kahlua    In a shot glass, layer Kahlua
  * 1/3 shot Bailey's  on the bottom, then Bailey's,
  * 1/3 shot Vodka     then Vodka.
 ---------------------------------------------------
root at OpenWrt:~#

Please note /etc/banner does not reflect the correct rxxxxx (IMHO), as
this is the 26 Mar edition of OpenWrt via sysupgrade.

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ath9k-devel] how to config AR9280 for operation as 1X1 or other ideas
  2011-03-29 13:33 [ath9k-devel] how to config AR9280 for operation as 1X1 or other ideas Larry Vaden
@ 2011-03-29 14:36 ` Felix Fietkau
  2011-03-29 15:08   ` Larry Vaden
                     ` (4 more replies)
  0 siblings, 5 replies; 21+ messages in thread
From: Felix Fietkau @ 2011-03-29 14:36 UTC (permalink / raw)
  To: ath9k-devel

On 2011-03-29 3:33 PM, Larry Vaden wrote:
> Good morning, ath9k devs and OpenWrt-users.
>
> Please excuse the cross post, not something we normally do.
>
> We have a particularly difficult situation in which we are trying to
> achieve a stable link over 1.2 miles with the Ubiquiti M900 which uses
> the AR9280 and thus 2X2 MIMO.
>
> We loaded OpenWrt trunk as a scientific control when we observed
> spontaneous reboots on AirOS 5.2.1 and 5.3.
>
> There is only one tree in the Fresnel zone and it has few leaves this
> time of year.  An unlicensed SCADA operation is a few miles away,
> using omnis at six water towers.
>
> To try to reduce the number of variables, we note with interest
> MikroTik's statement below the sig and ask folks on ath9k-devel and
> OpenWrt-users how to configure, e.g., OpenWrt to use only chain 0.
>
> Excerpts of dmesg for the AP are also below the sig.  dmesg on the CPE is quiet.
>
> If the objective of this email is unrelated, please offer any advice
> to achieve desired operation.
>
> THANKS in advance for your help --- it is fully appreciated.
To change the chainmask:

wifi down
echo 1 > /sys/kernel/debug/ieee80211/phy0/ath9k/rx_chainmask
echo 1 > /sys/kernel/debug/ieee80211/phy0/ath9k/tx_chainmask
wifi

This might have some side effects as the HT capabilities are not 
recalculated (ath9k does not support the antenna control API yet), but 
it will configure the PHY to only use one chain, and the rate control is 
usually able to deal with that just fine.

In order to debug this properly, please send a dump of the rate control 
stats of both sides:
cat /sys/kernel/debug/ieee80211/phy0/netdev:wlan0/stations/*/rc_stats

And also a dump of the channel busy time:
iw wlan0 survey dump

This might help narrow down the cause of this issue.

- Felix

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ath9k-devel] how to config AR9280 for operation as 1X1 or other ideas
  2011-03-29 14:36 ` Felix Fietkau
@ 2011-03-29 15:08   ` Larry Vaden
  2011-03-29 15:31     ` Felix Fietkau
  2011-03-29 15:16   ` Larry Vaden
                     ` (3 subsequent siblings)
  4 siblings, 1 reply; 21+ messages in thread
From: Larry Vaden @ 2011-03-29 15:08 UTC (permalink / raw)
  To: ath9k-devel

On Tue, Mar 29, 2011 at 9:36 AM, Felix Fietkau <nbd@openwrt.org> wrote:
> On 2011-03-29 3:33 PM, Larry Vaden wrote:
>>
>> Good morning, ath9k devs and OpenWrt-users.
>>
>> Please excuse the cross post, not something we normally do.
>>
>> We have a particularly difficult situation in which we are trying to
>> achieve a stable link over 1.2 miles with the Ubiquiti M900 which uses
>> the AR9280 and thus 2X2 MIMO.
>>
>> We loaded OpenWrt trunk as a scientific control when we observed
>> spontaneous reboots on AirOS 5.2.1 and 5.3.
>>
>> There is only one tree in the Fresnel zone and it has few leaves this
>> time of year. ?An unlicensed SCADA operation is a few miles away,
>> using omnis at six water towers.
>>
>> To try to reduce the number of variables, we note with interest
>> MikroTik's statement below the sig and ask folks on ath9k-devel and
>> OpenWrt-users how to configure, e.g., OpenWrt to use only chain 0.
>>
>> Excerpts of dmesg for the AP are also below the sig. ?dmesg on the CPE is
>> quiet.
>>
>> If the objective of this email is unrelated, please offer any advice
>> to achieve desired operation.
>>
>> THANKS in advance for your help --- it is fully appreciated.
>
> To change the chainmask:
>
> wifi down
> echo 1 > /sys/kernel/debug/ieee80211/phy0/ath9k/rx_chainmask
> echo 1 > /sys/kernel/debug/ieee80211/phy0/ath9k/tx_chainmask
> wifi
>
> This might have some side effects as the HT capabilities are not
> recalculated (ath9k does not support the antenna control API yet), but it
> will configure the PHY to only use one chain, and the rate control is
> usually able to deal with that just fine.
>
> In order to debug this properly, please send a dump of the rate control
> stats of both sides:
> cat /sys/kernel/debug/ieee80211/phy0/netdev:wlan0/stations/*/rc_stats
>
> And also a dump of the channel busy time:
> iw wlan0 survey dump
>
> This might help narrow down the cause of this issue.
>
> - Felix

Felix,

You can not know how appreciative this rural ISP is of your reply.

To prove Will Rogers was correct about ~ "we're all ignorant, just
about different things,"

do you wish that the chainmask be changed on only the AP or on both
the AP and the CPE?

kind regards/ldv

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ath9k-devel] how to config AR9280 for operation as 1X1 or other ideas
  2011-03-29 14:36 ` Felix Fietkau
  2011-03-29 15:08   ` Larry Vaden
@ 2011-03-29 15:16   ` Larry Vaden
  2011-03-29 15:28     ` Felix Fietkau
  2011-03-29 15:34   ` Larry Vaden
                     ` (2 subsequent siblings)
  4 siblings, 1 reply; 21+ messages in thread
From: Larry Vaden @ 2011-03-29 15:16 UTC (permalink / raw)
  To: ath9k-devel

On Tue, Mar 29, 2011 at 9:36 AM, Felix Fietkau <nbd@openwrt.org> wrote:
>
> In order to debug this properly, please send a dump of the rate control
> stats of both sides:
> cat /sys/kernel/debug/ieee80211/phy0/netdev:wlan0/stations/*/rc_stats
>
> And also a dump of the channel busy time:
> iw wlan0 survey dump
>
> This might help narrow down the cause of this issue.
>
> - Felix

Felix, this is from the AP.  Similar information from the CPE will
require a short trip since the connection is not good enough to
support ssh.  Information from the CPE will follow shortly.  This
information is before your recommended changes.

root at OpenWrt:~# cat /etc/config/wireless
config wifi-device  radio0
        option type     mac80211
        option channel  5
        option macaddr  00:15:6d:4e:f1:46
        option hwmode   11ng
        option htmode   HT5
        list ht_capab   SHORT-GI-40
        list ht_capab   TX-STBC
        list ht_capab   RX-STBC1
        list ht_capab   DSSS_CCK-40
        # REMOVE THIS LINE TO ENABLE WIFI:
        option disabled 0
        option uapsd    0

config wifi-iface
        option device   radio0
        option network  lan
        option mode     ap
        option ssid     OpenWrt
        option encryption none

root at OpenWrt:~# cat
/sys/kernel/debug/ieee80211/phy0/netdev:wlan0/stations/*/rc_stats
type      rate     throughput  ewma prob   this prob  this
succ/attempt   success    attempts
HT20/LGI  t MCS0        6.1       98.5      100.0          0(  0)
  148         199
HT20/LGI   PMCS1        7.1       60.4       12.5          0(  0)
  413         533
HT20/LGI    MCS2        5.8       35.2        0.0          0(  0)
 2183        2898
HT20/LGI    MCS3        4.8       23.1        0.0          0(  0)
 2743        4346
HT20/LGI    MCS4        4.4       15.6        0.0          0(  0)
 6744       12776
HT20/LGI    MCS5        0.0        5.9        0.0          0(  0)
    8         123
HT20/LGI    MCS6        0.0        0.0        0.0          0(  0)
    0         106
HT20/LGI    MCS7        0.0        0.0        0.0          0(  0)
    0         106
HT20/LGI T  MCS8        9.6       82.2      100.0          1(  1)
  267         392
HT20/LGI    MCS9        7.4       35.7       25.0          0(  0)
 4434        6183
HT20/LGI    MCS10       0.0        0.0        0.0          0(  0)
  110         398
HT20/LGI    MCS11       0.0        0.0        0.0          0(  0)
    2         106
HT20/LGI    MCS12       0.0        0.0        0.0          0(  0)
    0         104
HT20/LGI    MCS13       0.0        0.0        0.0          0(  0)
    0         106
HT20/LGI    MCS14       0.0        0.0        0.0          0(  0)
    0         106
HT20/LGI    MCS15       0.0        0.0        0.0          0(  0)
    0         106

Total packet count::    ideal 15455      lookaround 1661
Average A-MPDU length: 1.0
type      rate     throughput  ewma prob   this prob  this
succ/attempt   success    attempts
HT20/LGI TtPMCS0        1.9       30.5       25.0          1(  4)
  240        1331
HT20/LGI    MCS1        0.0        0.0        0.0          0(  0)
    0           2
HT20/LGI    MCS2        0.0        0.0        0.0          0(  0)
    0           2
HT20/LGI    MCS3        0.0        0.0        0.0          0(  0)
    0           2
HT20/LGI    MCS4        0.0        0.0        0.0          0(  0)
    0           2
HT20/LGI    MCS5        0.0        5.9        0.0          0(  0)
    1          46
HT20/LGI    MCS6        0.0        0.0        0.0          0(  0)
    0           2
HT20/LGI    MCS7        0.0        0.0        0.0          0(  0)
    0           3
HT20/LGI    MCS8        0.0        6.9        0.0          0(  0)
   35         174
HT20/LGI    MCS9        0.0        9.2        0.0          0(  0)
   27         108
HT20/LGI    MCS10       0.0        6.9        0.0          0(  0)
   14         115
HT20/LGI    MCS11       0.0        0.0        0.0          0(  0)
    0           2
HT20/LGI    MCS12       0.0        0.0        0.0          0(  0)
    0           1
HT20/LGI    MCS13       0.0        0.0        0.0          0(  0)
    0           3
HT20/LGI    MCS14       0.0        0.0        0.0          0(  0)
    0           3
HT20/LGI    MCS15       0.0        0.0        0.0          0(  0)
    0           3

Total packet count::    ideal 331      lookaround 36
Average A-MPDU length: 1.0
root at OpenWrt:~# iw wlan0 survey dump
Survey data from wlan0
        frequency:                      2412 MHz
        noise:                          -97 dBm
        channel active time:            37 ms
        channel busy time:              12 ms
        channel receive time:           0 ms
        channel transmit time:          0 ms
Survey data from wlan0
        frequency:                      2417 MHz
Survey data from wlan0
        frequency:                      2422 MHz
Survey data from wlan0
        frequency:                      2427 MHz
Survey data from wlan0
        frequency:                      2432 MHz [in use]
        noise:                          -107 dBm
        channel active time:            108058390 ms
        channel busy time:              21908872 ms
        channel receive time:           3395958 ms
        channel transmit time:          2010797 ms
Survey data from wlan0
        frequency:                      2437 MHz
Survey data from wlan0
        frequency:                      2442 MHz
Survey data from wlan0
        frequency:                      2447 MHz
Survey data from wlan0
        frequency:                      2452 MHz
Survey data from wlan0
        frequency:                      2457 MHz
Survey data from wlan0
        frequency:                      2462 MHz
Survey data from wlan0
        frequency:                      2467 MHz
Survey data from wlan0
        frequency:                      2472 MHz
Survey data from wlan0
        frequency:                      2484 MHz
root at OpenWrt:~#

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ath9k-devel] how to config AR9280 for operation as 1X1 or other ideas
  2011-03-29 15:16   ` Larry Vaden
@ 2011-03-29 15:28     ` Felix Fietkau
  2011-03-29 16:04       ` Larry Vaden
                         ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Felix Fietkau @ 2011-03-29 15:28 UTC (permalink / raw)
  To: ath9k-devel

On 2011-03-29 5:16 PM, Larry Vaden wrote:
> On Tue, Mar 29, 2011 at 9:36 AM, Felix Fietkau<nbd@openwrt.org>  wrote:
>>
>>  In order to debug this properly, please send a dump of the rate control
>>  stats of both sides:
>>  cat /sys/kernel/debug/ieee80211/phy0/netdev:wlan0/stations/*/rc_stats
>>
>>  And also a dump of the channel busy time:
>>  iw wlan0 survey dump
>>
>>  This might help narrow down the cause of this issue.
>>
>>  - Felix
>
> Felix, this is from the AP.  Similar information from the CPE will
> require a short trip since the connection is not good enough to
> support ssh.  Information from the CPE will follow shortly.  This
> information is before your recommended changes.
>
> root at OpenWrt:~# cat /etc/config/wireless
> config wifi-device  radio0
>          option type     mac80211
>          option channel  5
>          option macaddr  00:15:6d:4e:f1:46
>          option hwmode   11ng
>          option htmode   HT5
HT5? Did you add any custom patches, or is this a configuration error?

>          list ht_capab   SHORT-GI-40
>          list ht_capab   TX-STBC
>          list ht_capab   RX-STBC1
>          list ht_capab   DSSS_CCK-40
>          # REMOVE THIS LINE TO ENABLE WIFI:
>          option disabled 0
>          option uapsd    0
What's the 'uapsd' option for?

> root at OpenWrt:~# cat
> /sys/kernel/debug/ieee80211/phy0/netdev:wlan0/stations/*/rc_stats
> type      rate     throughput  ewma prob   this prob  this
> succ/attempt   success    attempts
> HT20/LGI  t MCS0        6.1       98.5      100.0          0(  0)
>    148         199
> HT20/LGI   PMCS1        7.1       60.4       12.5          0(  0)
>    413         533
> HT20/LGI    MCS2        5.8       35.2        0.0          0(  0)
>   2183        2898
> HT20/LGI    MCS3        4.8       23.1        0.0          0(  0)
>   2743        4346
> HT20/LGI    MCS4        4.4       15.6        0.0          0(  0)
>   6744       12776
> HT20/LGI    MCS5        0.0        5.9        0.0          0(  0)
>      8         123
> HT20/LGI    MCS6        0.0        0.0        0.0          0(  0)
>      0         106
> HT20/LGI    MCS7        0.0        0.0        0.0          0(  0)
>      0         106
> HT20/LGI T  MCS8        9.6       82.2      100.0          1(  1)
>    267         392
> HT20/LGI    MCS9        7.4       35.7       25.0          0(  0)
>   4434        6183
> HT20/LGI    MCS10       0.0        0.0        0.0          0(  0)
>    110         398
> HT20/LGI    MCS11       0.0        0.0        0.0          0(  0)
>      2         106
> HT20/LGI    MCS12       0.0        0.0        0.0          0(  0)
>      0         104
> HT20/LGI    MCS13       0.0        0.0        0.0          0(  0)
>      0         106
> HT20/LGI    MCS14       0.0        0.0        0.0          0(  0)
>      0         106
> HT20/LGI    MCS15       0.0        0.0        0.0          0(  0)
>      0         106
>
> Total packet count::    ideal 15455      lookaround 1661
> Average A-MPDU length: 1.0
> type      rate     throughput  ewma prob   this prob  this
> succ/attempt   success    attempts
> HT20/LGI TtPMCS0        1.9       30.5       25.0          1(  4)
>    240        1331
> HT20/LGI    MCS1        0.0        0.0        0.0          0(  0)
>      0           2
> HT20/LGI    MCS2        0.0        0.0        0.0          0(  0)
>      0           2
> HT20/LGI    MCS3        0.0        0.0        0.0          0(  0)
>      0           2
> HT20/LGI    MCS4        0.0        0.0        0.0          0(  0)
>      0           2
> HT20/LGI    MCS5        0.0        5.9        0.0          0(  0)
>      1          46
> HT20/LGI    MCS6        0.0        0.0        0.0          0(  0)
>      0           2
> HT20/LGI    MCS7        0.0        0.0        0.0          0(  0)
>      0           3
> HT20/LGI    MCS8        0.0        6.9        0.0          0(  0)
>     35         174
> HT20/LGI    MCS9        0.0        9.2        0.0          0(  0)
>     27         108
> HT20/LGI    MCS10       0.0        6.9        0.0          0(  0)
>     14         115
> HT20/LGI    MCS11       0.0        0.0        0.0          0(  0)
>      0           2
> HT20/LGI    MCS12       0.0        0.0        0.0          0(  0)
>      0           1
> HT20/LGI    MCS13       0.0        0.0        0.0          0(  0)
>      0           3
> HT20/LGI    MCS14       0.0        0.0        0.0          0(  0)
>      0           3
> HT20/LGI    MCS15       0.0        0.0        0.0          0(  0)
>      0           3
The packet counts seem rather low, so the client is probably 
reconnecting frequently. You should try to find out what triggers the 
disconnects. Anything interesting in the kernel log about connection 
loss? Maybe something in the wpa_supplicant debug log?

>
> Total packet count::    ideal 331      lookaround 36
> Average A-MPDU length: 1.0
> root at OpenWrt:~# iw wlan0 survey dump
> Survey data from wlan0
>          frequency:                      2412 MHz
>          noise:                          -97 dBm
>          channel active time:            37 ms
>          channel busy time:              12 ms
>          channel receive time:           0 ms
>          channel transmit time:          0 ms
> Survey data from wlan0
>          frequency:                      2417 MHz
> Survey data from wlan0
>          frequency:                      2422 MHz
> Survey data from wlan0
>          frequency:                      2427 MHz
> Survey data from wlan0
>          frequency:                      2432 MHz [in use]
>          noise:                          -107 dBm
>          channel active time:            108058390 ms
>          channel busy time:              21908872 ms
>          channel receive time:           3395958 ms
>          channel transmit time:          2010797 ms
 >20% busy time with only about 5% combined rx/tx time, I guess there's 
some interference on the channel which might be messing with your signal 
as well. Please try different channels and compare the survey output there.

- Felix

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ath9k-devel] how to config AR9280 for operation as 1X1 or other ideas
  2011-03-29 15:08   ` Larry Vaden
@ 2011-03-29 15:31     ` Felix Fietkau
  0 siblings, 0 replies; 21+ messages in thread
From: Felix Fietkau @ 2011-03-29 15:31 UTC (permalink / raw)
  To: ath9k-devel

On 2011-03-29 5:08 PM, Larry Vaden wrote:
> Felix,
>
> You can not know how appreciative this rural ISP is of your reply.
Great. I work with a few companies involved in either deploying outdoor 
links or making software for it, so I'm really interested in any 
feedback related to how ath9k performs in such setups.

> To prove Will Rogers was correct about ~ "we're all ignorant, just
> about different things,"
>
> do you wish that the chainmask be changed on only the AP or on both
> the AP and the CPE?
Both.

- Felix

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ath9k-devel] how to config AR9280 for operation as 1X1 or other ideas
  2011-03-29 14:36 ` Felix Fietkau
  2011-03-29 15:08   ` Larry Vaden
  2011-03-29 15:16   ` Larry Vaden
@ 2011-03-29 15:34   ` Larry Vaden
  2011-03-29 15:38   ` Larry Vaden
  2011-03-29 15:47   ` Larry Vaden
  4 siblings, 0 replies; 21+ messages in thread
From: Larry Vaden @ 2011-03-29 15:34 UTC (permalink / raw)
  To: ath9k-devel

On Tue, Mar 29, 2011 at 9:36 AM, Felix Fietkau <nbd@openwrt.org> wrote:
> On 2011-03-29 3:33 PM, Larry Vaden wrote:
>>
>> Good morning, ath9k devs and OpenWrt-users.
>>
>> Please excuse the cross post, not something we normally do.
>>
>> We have a particularly difficult situation in which we are trying to
>> achieve a stable link over 1.2 miles with the Ubiquiti M900 which uses
>> the AR9280 and thus 2X2 MIMO.
>>
>> We loaded OpenWrt trunk as a scientific control when we observed
>> spontaneous reboots on AirOS 5.2.1 and 5.3.
>>
>> There is only one tree in the Fresnel zone and it has few leaves this
>> time of year. ?An unlicensed SCADA operation is a few miles away,
>> using omnis at six water towers.
>>
>> To try to reduce the number of variables, we note with interest
>> MikroTik's statement below the sig and ask folks on ath9k-devel and
>> OpenWrt-users how to configure, e.g., OpenWrt to use only chain 0.
>>
>> Excerpts of dmesg for the AP are also below the sig. ?dmesg on the CPE is
>> quiet.
>>
>> If the objective of this email is unrelated, please offer any advice
>> to achieve desired operation.
>>
>> THANKS in advance for your help --- it is fully appreciated.
>
> To change the chainmask:
>
> wifi down
> echo 1 > /sys/kernel/debug/ieee80211/phy0/ath9k/rx_chainmask
> echo 1 > /sys/kernel/debug/ieee80211/phy0/ath9k/tx_chainmask
> wifi
>
> This might have some side effects as the HT capabilities are not
> recalculated (ath9k does not support the antenna control API yet), but it
> will configure the PHY to only use one chain, and the rate control is
> usually able to deal with that just fine.
>
> In order to debug this properly, please send a dump of the rate control
> stats of both sides:
> cat /sys/kernel/debug/ieee80211/phy0/netdev:wlan0/stations/*/rc_stats
>
> And also a dump of the channel busy time:
> iw wlan0 survey dump
>
> This might help narrow down the cause of this issue.
>
> - Felix

Felix,

Here's the requested information from the CPE end of the link, again
before any of the changes you suggest have been made:

wlan0: authenticate with 00:15:6d:4e:f1:46 (try 1)
wlan0: authenticated
wlan0: associate with 00:15:6d:4e:f1:46 (try 1)
wlan0: RX AssocResp from 00:15:6d:4e:f1:46 (capab=0x401 status=0 aid=1)
wlan0: associated
cfg80211: Calling CRDA to update world regulatory domain
cfg80211: World regulatory domain updated:
cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
wlan0: authenticate with 00:15:6d:4e:f1:46 (try 1)
wlan0: authenticated
wlan0: associate with 00:15:6d:4e:f1:46 (try 1)
wlan0: RX ReassocResp from 00:15:6d:4e:f1:46 (capab=0x401 status=0 aid=1)
wlan0: associated
root at OpenWrt:~# cat /etc/config/wireless
config wifi-device  radio0
	option type     mac80211
	option channel  5
	option macaddr	00:15:6d:9c:16:df
	option hwmode	11ng
	option htmode	HT20
	list ht_capab	SHORT-GI-40
	list ht_capab	TX-STBC
	list ht_capab	RX-STBC1
	list ht_capab	DSSS_CCK-40
	option disabled 0

config wifi-iface
	option device   radio0
	option network  wan
	option mode     sta
	option ssid     OpenWrt
	option encryption none
root at OpenWrt:~# cat /sys/kernel/debug/ieee80211/phy0/netdev:wlan0/stations/*/rc_
stats
type      rate     throughput  ewma prob   this prob  this
succ/attempt   success    attempts
HT20/LGI TtPMCS0        3.2       51.6      100.0          1(  1)
  380        4440
HT20/LGI    MCS1        0.0        0.0        0.0          0(  0)
    0           5
HT20/LGI    MCS2        0.0        0.0        0.0          0(  0)
    0           5
HT20/LGI    MCS3        0.0        0.0        0.0          0(  0)
    0           4
HT20/LGI    MCS4        0.0        0.0        0.0          0(  0)
    0           4
HT20/LGI    MCS5        0.0        0.0        0.0          0(  0)
    0           4
HT20/LGI    MCS6        0.0        0.0        0.0          0(  0)
    0           5
HT20/LGI    MCS7        0.0        0.0        0.0          0(  0)
    0           5
HT20/LGI    MCS8        0.0        3.9        0.0          0(  0)
    3          56
HT20/LGI    MCS9        0.0        0.0        0.0          0(  0)
    0           5
HT20/LGI    MCS10       0.0        0.0        0.0          0(  0)
    0           5
HT20/LGI    MCS11       0.0        0.0        0.0          0(  0)
    0           5
HT20/LGI    MCS12       0.0        0.0        0.0          0(  0)
    0           4
HT20/LGI    MCS13       0.0        0.0        0.0          0(  0)
    0           4
HT20/LGI    MCS14       0.0        0.0        0.0          0(  0)
    0           5
HT20/LGI    MCS15       0.0        0.0        0.0          0(  0)
    0           4

Total packet count::    ideal 657      lookaround 74
Average A-MPDU length: 1.0
root at OpenWrt:~# iw wlan0 survey dump
Survey data from wlan0
	frequency:			2412 MHz
	noise:				-111 dBm
	channel active time:		59 ms
	channel busy time:		14 ms
	channel receive time:		2 ms
	channel transmit time:		1 ms
Survey data from wlan0
	frequency:			2417 MHz
	noise:				-108 dBm
	channel active time:		59 ms
	channel busy time:		14 ms
	channel receive time:		2 ms
	channel transmit time:		1 ms
Survey data from wlan0
	frequency:			2422 MHz
	noise:				-113 dBm
	channel active time:		59 ms
	channel busy time:		14 ms
	channel receive time:		0 ms
	channel transmit time:		1 ms
Survey data from wlan0
	frequency:			2427 MHz
	noise:				-122 dBm
	channel active time:		59 ms
	channel busy time:		12 ms
	channel receive time:		2 ms
	channel transmit time:		1 ms
Survey data from wlan0
	frequency:			2432 MHz [in use]
	noise:				-121 dBm
	channel active time:		107955637 ms
	channel busy time:		23134560 ms
	channel receive time:		7555724 ms
	channel transmit time:		5890963 ms
Survey data from wlan0
	frequency:			2437 MHz
	noise:				-116 dBm
	channel active time:		59 ms
	channel busy time:		9 ms
	channel receive time:		1 ms
	channel transmit time:		1 ms
Survey data from wlan0
	frequency:			2442 MHz
	noise:				-97 dBm
	channel active time:		59 ms
	channel busy time:		8 ms
	channel receive time:		0 ms
	channel transmit time:		1 ms
Survey data from wlan0
	frequency:			2447 MHz
	noise:				-95 dBm
	channel active time:		59 ms
	channel busy time:		8 ms
	channel receive time:		0 ms
	channel transmit time:		1 ms
Survey data from wlan0
	frequency:			2452 MHz
	noise:				-98 dBm
	channel active time:		59 ms
	channel busy time:		8 ms
	channel receive time:		0 ms
	channel transmit time:		1 ms
Survey data from wlan0
	frequency:			2457 MHz
	noise:				-95 dBm
	channel active time:		59 ms
	channel busy time:		8 ms
	channel receive time:		0 ms
	channel transmit time:		1 ms
Survey data from wlan0
	frequency:			2462 MHz
	noise:				-115 dBm
	channel active time:		59 ms
	channel busy time:		8 ms
	channel receive time:		0 ms
	channel transmit time:		1 ms
Survey data from wlan0
	frequency:			2467 MHz
Survey data from wlan0
	frequency:			2472 MHz
Survey data from wlan0
	frequency:			2484 MHz
root at OpenWrt:~#

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ath9k-devel] how to config AR9280 for operation as 1X1 or other ideas
  2011-03-29 14:36 ` Felix Fietkau
                     ` (2 preceding siblings ...)
  2011-03-29 15:34   ` Larry Vaden
@ 2011-03-29 15:38   ` Larry Vaden
  2011-03-29 15:47   ` Larry Vaden
  4 siblings, 0 replies; 21+ messages in thread
From: Larry Vaden @ 2011-03-29 15:38 UTC (permalink / raw)
  To: ath9k-devel

On Tue, Mar 29, 2011 at 9:36 AM, Felix Fietkau <nbd@openwrt.org> wrote:
>
> To change the chainmask:
>
> wifi down
> echo 1 > /sys/kernel/debug/ieee80211/phy0/ath9k/rx_chainmask
> echo 1 > /sys/kernel/debug/ieee80211/phy0/ath9k/tx_chainmask
> wifi

On the CPE end this has been done:

root at OpenWrt:~# ifconfig -a | grep "inet addr:"
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet addr:209.151.124.10  Bcast:209.151.124.255  Mask:255.255.255.0
root at OpenWrt:~# wifi down
root at OpenWrt:~# echo 1 > /sys/kernel/debug/ieee80211/phy0/ath9k/rx_chainmask
root at OpenWrt:~# echo 1 > /sys/kernel/debug/ieee80211/phy0/ath9k/tx_chainmask
root at OpenWrt:~# wifi
root at OpenWrt:~# ps auxw | grep -i supplicant
 4299 root      1436 S    wpa_supplicant -B -P /var/run/wifi-wlan0.pid -D nl80
 4457 root      1424 S    grep -i supplicant
root at OpenWrt:~#

Now back to HQ and the AP.

kind regards/ldv

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ath9k-devel] how to config AR9280 for operation as 1X1 or other ideas
  2011-03-29 14:36 ` Felix Fietkau
                     ` (3 preceding siblings ...)
  2011-03-29 15:38   ` Larry Vaden
@ 2011-03-29 15:47   ` Larry Vaden
  4 siblings, 0 replies; 21+ messages in thread
From: Larry Vaden @ 2011-03-29 15:47 UTC (permalink / raw)
  To: ath9k-devel

On Tue, Mar 29, 2011 at 9:36 AM, Felix Fietkau <nbd@openwrt.org> wrote:
>> THANKS in advance for your help --- it is fully appreciated.
>
> To change the chainmask:
>
> wifi down
> echo 1 > /sys/kernel/debug/ieee80211/phy0/ath9k/rx_chainmask
> echo 1 > /sys/kernel/debug/ieee80211/phy0/ath9k/tx_chainmask
> wifi

Now the AP has been set per your instructions:

root at OpenWrt:~# ifconfig -a | grep "inet addr:"
          inet addr:209.151.124.2  Bcast:209.151.124.255  Mask:255.255.255.0
          inet addr:127.0.0.1  Mask:255.0.0.0
root at OpenWrt:~#
root at OpenWrt:~# wifi down
root at OpenWrt:~# echo 1 > /sys/kernel/debug/ieee80211/phy0/ath9k/rx_chainmask
root at OpenWrt:~# echo 1 > /sys/kernel/debug/ieee80211/phy0/ath9k/tx_chainmask
root at OpenWrt:~# wifi
Configuration file: /var/run/hostapd-phy0.conf
Using interface wlan0 with hwaddr 00:15:6d:4e:f1:46 and ssid 'OpenWrt'
root at OpenWrt:~#

kind regards/ldv

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ath9k-devel] how to config AR9280 for operation as 1X1 or other ideas
  2011-03-29 15:28     ` Felix Fietkau
@ 2011-03-29 16:04       ` Larry Vaden
  2011-03-29 17:23         ` Felix Fietkau
  2011-03-29 16:08       ` Larry Vaden
  2011-03-29 16:25       ` Larry Vaden
  2 siblings, 1 reply; 21+ messages in thread
From: Larry Vaden @ 2011-03-29 16:04 UTC (permalink / raw)
  To: ath9k-devel

On Tue, Mar 29, 2011 at 10:28 AM, Felix Fietkau <nbd@openwrt.org> wrote:
>> ? ? ? ? option htmode ? HT5
>
> HT5? Did you add any custom patches, or is this a configuration error?

No sir; see remark about Will Rogers and ignorance;  my intent was to
force 5 MHz channel width.  Will change per your dictates.

>> ? ? ? ? list ht_capab ? SHORT-GI-40
>> ? ? ? ? list ht_capab ? TX-STBC
>> ? ? ? ? list ht_capab ? RX-STBC1
>> ? ? ? ? list ht_capab ? DSSS_CCK-40
>> ? ? ? ? # REMOVE THIS LINE TO ENABLE WIFI:
>> ? ? ? ? option disabled 0
>> ? ? ? ? option uapsd ? ?0
>
> What's the 'uapsd' option for?

See comments about Will Rogers and ignornace;  iwconfig on the CPE
reports power save OFF;  this was an attempt to get the same condition
on the AP.

> The packet counts seem rather low, so the client is probably reconnecting
> frequently. You should try to find out what triggers the disconnects.
> Anything interesting in the kernel log about connection loss? Maybe
> something in the wpa_supplicant debug log?

dmesg on the CPE has been quiet.  OT but perhaps related is that
Justin suggested operating the CPE driven by AirOS with the AP turned
off and the result is that the Loco M900 CPE + AirOS does NOT
spontaneously reboot when the AP is turned off.

>>20% busy time with only about 5% combined rx/tx time, I guess there's some
>> interference on the channel which might be messing with your signal as well.
>> Please try different channels and compare the survey output there.

The information we have is from Robert @ UBNT some years back about
the correspondence for the UBNT SR9.  Said table is:

IEEE 802.11 Channel 3 = Carrier Frequency 922 MHz
IEEE 802.11 Channel 4 = Carrier Frequency 917 MHz
IEEE 802.11 Channel 5 = Carrier Frequency 912 MHz
IEEE 802.11 Channel 6 = Carrier Frequency 907 MHz

Using AirOS, the only fs which would operate without spontaneous
reboots were 909 MHz and 914 MHz (channel shifting).

We presume lack of robustness in the presence of interference as we
have also observed spontaneous reboots of AirOS on 2.4 GHz 20 MHz
channels;  the chain change is just to narrow the scope, perhaps even
a clumsy effort to narrow the scope.

The monitoring system currently reports no link between the AP and the CPE.

kind regards/ldv

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ath9k-devel] how to config AR9280 for operation as 1X1 or other ideas
  2011-03-29 15:28     ` Felix Fietkau
  2011-03-29 16:04       ` Larry Vaden
@ 2011-03-29 16:08       ` Larry Vaden
  2011-03-29 17:21         ` Felix Fietkau
  2011-03-29 16:25       ` Larry Vaden
  2 siblings, 1 reply; 21+ messages in thread
From: Larry Vaden @ 2011-03-29 16:08 UTC (permalink / raw)
  To: ath9k-devel

On Tue, Mar 29, 2011 at 10:28 AM, Felix Fietkau <nbd@openwrt.org> wrote:
> The packet counts seem rather low, so the client is probably reconnecting
> frequently. You should try to find out what triggers the disconnects.
> Anything interesting in the kernel log about connection loss? Maybe
> something in the wpa_supplicant debug log?

Please offer a hint as to where the wpa_supplicant debug log is located.

>>20% busy time with only about 5% combined rx/tx time, I guess there's some
>> interference on the channel which might be messing with your signal as well.
>> Please try different channels and compare the survey output there.

Do you wish to make changes to /etc/config/wireless (covering the
points you mentioned) in the interest of sanity?

kind regards/ldv

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ath9k-devel] how to config AR9280 for operation as 1X1 or other ideas
  2011-03-29 15:28     ` Felix Fietkau
  2011-03-29 16:04       ` Larry Vaden
  2011-03-29 16:08       ` Larry Vaden
@ 2011-03-29 16:25       ` Larry Vaden
  2011-03-29 17:20         ` Felix Fietkau
  2 siblings, 1 reply; 21+ messages in thread
From: Larry Vaden @ 2011-03-29 16:25 UTC (permalink / raw)
  To: ath9k-devel

On Tue, Mar 29, 2011 at 10:28 AM, Felix Fietkau <nbd@openwrt.org> wrote:

>>20% busy time with only about 5% combined rx/tx time, I guess there's some
>> interference on the channel which might be messing with your signal as well.
>> Please try different channels and compare the survey output there.

Felix,

Is there a way in OpenWrt for the M900 series to shift the channels
to, e.g., 909 and 914 MHz?

Those fs seemed most stable when running AirOS ... (read: no
spontaneous reboots occurred at those fs).

kind regards/ldv

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ath9k-devel] how to config AR9280 for operation as 1X1 or other ideas
  2011-03-29 16:25       ` Larry Vaden
@ 2011-03-29 17:20         ` Felix Fietkau
  2011-03-29 18:16           ` Larry Vaden
  0 siblings, 1 reply; 21+ messages in thread
From: Felix Fietkau @ 2011-03-29 17:20 UTC (permalink / raw)
  To: ath9k-devel

On 2011-03-29 6:25 PM, Larry Vaden wrote:
> On Tue, Mar 29, 2011 at 10:28 AM, Felix Fietkau<nbd@openwrt.org>  wrote:
>
>>>20% busy time with only about 5% combined rx/tx time, I guess there's some
>>>  interference on the channel which might be messing with your signal as well.
>>>  Please try different channels and compare the survey output there.
>
> Felix,
>
> Is there a way in OpenWrt for the M900 series to shift the channels
> to, e.g., 909 and 914 MHz?
Not at the moment. It'll use 900 mhz even though it's displaying a 
different frequency, but right now there are no tables for taking the 
frequency shift of the hardware into account.

> Those fs seemed most stable when running AirOS ... (read: no
> spontaneous reboots occurred at those fs).
I don't think reboot stability on AirOS is a good indicator for general 
stability with OpenWrt on these frequencies. If the devices reboot, 
that's an indicator of a driver bug.

- Felix

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ath9k-devel] how to config AR9280 for operation as 1X1 or other ideas
  2011-03-29 16:08       ` Larry Vaden
@ 2011-03-29 17:21         ` Felix Fietkau
  2011-03-29 17:25           ` Larry Vaden
  0 siblings, 1 reply; 21+ messages in thread
From: Felix Fietkau @ 2011-03-29 17:21 UTC (permalink / raw)
  To: ath9k-devel

On 2011-03-29 6:08 PM, Larry Vaden wrote:
> On Tue, Mar 29, 2011 at 10:28 AM, Felix Fietkau<nbd@openwrt.org>  wrote:
>>  The packet counts seem rather low, so the client is probably reconnecting
>>  frequently. You should try to find out what triggers the disconnects.
>>  Anything interesting in the kernel log about connection loss? Maybe
>>  something in the wpa_supplicant debug log?
>
> Please offer a hint as to where the wpa_supplicant debug log is located.
It's not created by default, you need to start it manually, with a 
similar command as the OpenWrt scripts start it, just with an added -dd 
option.

>>>20% busy time with only about 5% combined rx/tx time, I guess there's some
>>>  interference on the channel which might be messing with your signal as well.
>>>  Please try different channels and compare the survey output there.
>
> Do you wish to make changes to /etc/config/wireless (covering the
> points you mentioned) in the interest of sanity?
Trying different channels should be enough.

- Felix

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ath9k-devel] how to config AR9280 for operation as 1X1 or other ideas
  2011-03-29 16:04       ` Larry Vaden
@ 2011-03-29 17:23         ` Felix Fietkau
  2011-03-29 17:55           ` Larry Vaden
  0 siblings, 1 reply; 21+ messages in thread
From: Felix Fietkau @ 2011-03-29 17:23 UTC (permalink / raw)
  To: ath9k-devel

On 2011-03-29 6:04 PM, Larry Vaden wrote:
> On Tue, Mar 29, 2011 at 10:28 AM, Felix Fietkau<nbd@openwrt.org>  wrote:
>>>           option htmode   HT5
>>
>>  HT5? Did you add any custom patches, or is this a configuration error?
>
> No sir; see remark about Will Rogers and ignorance;  my intent was to
> force 5 MHz channel width.  Will change per your dictates.
5 MHz channels is not supported yet, that's still on my todo list.

- Felix

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ath9k-devel] how to config AR9280 for operation as 1X1 or other ideas
  2011-03-29 17:21         ` Felix Fietkau
@ 2011-03-29 17:25           ` Larry Vaden
  2011-03-29 17:33             ` Felix Fietkau
  0 siblings, 1 reply; 21+ messages in thread
From: Larry Vaden @ 2011-03-29 17:25 UTC (permalink / raw)
  To: ath9k-devel

On Tue, Mar 29, 2011 at 12:21 PM, Felix Fietkau <nbd@openwrt.org> wrote:
> On 2011-03-29 6:08 PM, Larry Vaden wrote:
>>
>> On Tue, Mar 29, 2011 at 10:28 AM, Felix Fietkau<nbd@openwrt.org> ?wrote:
>>> ?frequently. You should try to find out what triggers the disconnects.
>>> ?Anything interesting in the kernel log about connection loss? Maybe
>>> ?something in the wpa_supplicant debug log?
>>
>> Please offer a hint as to where the wpa_supplicant debug log is located.
>
> It's not created by default, you need to start it manually, with a similar
> command as the OpenWrt scripts start it, just with an added -dd option.

This dumb OKie needs 1 more clue at a minimum :(

>> Do you wish to make changes to /etc/config/wireless (covering the
>> points you mentioned) in the interest of sanity?
>
> Trying different channels should be enough.

root at OpenWrt:~# uptime
 00:07:40 up 7 min, load average: 0.00, 0.03, 0.04
root at OpenWrt:~# cat /etc/config/wireless
config wifi-device  radio0
        option type     mac80211
        option channel  3
        option macaddr  00:15:6d:4e:f1:46
        option hwmode   11ng
        option htmode   HT20
        list ht_capab   SHORT-GI-40
        list ht_capab   TX-STBC
        list ht_capab   RX-STBC1
        list ht_capab   DSSS_CCK-40
        # REMOVE THIS LINE TO ENABLE WIFI:
        option disabled 0

config wifi-iface
        option device   radio0
        option network  lan
        option mode     ap
        option ssid     OpenWrt
        option encryption none

root at OpenWrt:~# cat
/sys/kernel/debug/ieee80211/phy0/netdev:wlan0/stations/*/rc_stats
cat: can't open
'/sys/kernel/debug/ieee80211/phy0/netdev:wlan0/stations/*/rc_stats':
No such file or directory
root at OpenWrt:~# iw wlan0 survey dump
Survey data from wlan0
        frequency:                      2412 MHz
        noise:                          -97 dBm
        channel active time:            42 ms
        channel busy time:              14 ms
        channel receive time:           0 ms
        channel transmit time:          0 ms
Survey data from wlan0
        frequency:                      2417 MHz
Survey data from wlan0
        frequency:                      2422 MHz [in use]
        noise:                          -81 dBm
        channel active time:            455133 ms
        channel busy time:              59391 ms
        channel receive time:           9327 ms
        channel transmit time:          4375 ms
Survey data from wlan0
        frequency:                      2427 MHz
Survey data from wlan0
        frequency:                      2432 MHz
Survey data from wlan0
        frequency:                      2437 MHz
Survey data from wlan0
        frequency:                      2442 MHz
Survey data from wlan0
        frequency:                      2447 MHz
Survey data from wlan0
        frequency:                      2452 MHz
Survey data from wlan0
        frequency:                      2457 MHz
Survey data from wlan0
        frequency:                      2462 MHz
Survey data from wlan0
        frequency:                      2467 MHz
Survey data from wlan0
        frequency:                      2472 MHz
Survey data from wlan0
        frequency:                      2484 MHz
root at OpenWrt:~#

More to come ...

regards/ldv

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ath9k-devel] how to config AR9280 for operation as 1X1 or other ideas
  2011-03-29 17:25           ` Larry Vaden
@ 2011-03-29 17:33             ` Felix Fietkau
  2011-03-29 17:38               ` Larry Vaden
  0 siblings, 1 reply; 21+ messages in thread
From: Felix Fietkau @ 2011-03-29 17:33 UTC (permalink / raw)
  To: ath9k-devel

On 2011-03-29 7:25 PM, Larry Vaden wrote:
> root at OpenWrt:~# uptime
>   00:07:40 up 7 min, load average: 0.00, 0.03, 0.04
> root at OpenWrt:~# cat /etc/config/wireless
> config wifi-device  radio0
>          option type     mac80211
>          option channel  3
>          option macaddr  00:15:6d:4e:f1:46
>          option hwmode   11ng
>          option htmode   HT20
>          list ht_capab   SHORT-GI-40
>          list ht_capab   TX-STBC
>          list ht_capab   RX-STBC1
>          list ht_capab   DSSS_CCK-40
>          # REMOVE THIS LINE TO ENABLE WIFI:
>          option disabled 0
>
> config wifi-iface
>          option device   radio0
>          option network  lan
>          option mode     ap
>          option ssid     OpenWrt
>          option encryption none
>
> root at OpenWrt:~# cat
> /sys/kernel/debug/ieee80211/phy0/netdev:wlan0/stations/*/rc_stats
> cat: can't open
> '/sys/kernel/debug/ieee80211/phy0/netdev:wlan0/stations/*/rc_stats':
> No such file or directory
That happens if it's not connected.

> root at OpenWrt:~# iw wlan0 survey dump
> Survey data from wlan0
>          frequency:                      2412 MHz
>          noise:                          -97 dBm
>          channel active time:            42 ms
>          channel busy time:              14 ms
>          channel receive time:           0 ms
>          channel transmit time:          0 ms
> Survey data from wlan0
>          frequency:                      2417 MHz
> Survey data from wlan0
>          frequency:                      2422 MHz [in use]
>          noise:                          -81 dBm
>          channel active time:            455133 ms
>          channel busy time:              59391 ms
>          channel receive time:           9327 ms
>          channel transmit time:          4375 ms
Still very noisy and high busy time, something is causing quite a bit of 
interference. No idea how to reduce that or track it down though.

- Felix

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ath9k-devel] how to config AR9280 for operation as 1X1 or other ideas
  2011-03-29 17:33             ` Felix Fietkau
@ 2011-03-29 17:38               ` Larry Vaden
  2011-03-29 17:43                 ` Felix Fietkau
  0 siblings, 1 reply; 21+ messages in thread
From: Larry Vaden @ 2011-03-29 17:38 UTC (permalink / raw)
  To: ath9k-devel

On Tue, Mar 29, 2011 at 12:33 PM, Felix Fietkau <nbd@openwrt.org> wrote:
>
> Still very noisy and high busy time, something is causing quite a bit of
> interference. No idea how to reduce that or track it down though.

Felix and Matt,

Is the channel map that Robert provided for the SR9 applicable to the AR9280?

(read: are we sweeping through the right channels and not violating
some FCC reg?)

Felix,

Can we specify frequency rather than channel in OpenWrt to get to a specific f?

regards/ldv

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ath9k-devel] how to config AR9280 for operation as 1X1 or other ideas
  2011-03-29 17:38               ` Larry Vaden
@ 2011-03-29 17:43                 ` Felix Fietkau
  0 siblings, 0 replies; 21+ messages in thread
From: Felix Fietkau @ 2011-03-29 17:43 UTC (permalink / raw)
  To: ath9k-devel

On 2011-03-29 7:38 PM, Larry Vaden wrote:
> On Tue, Mar 29, 2011 at 12:33 PM, Felix Fietkau<nbd@openwrt.org>  wrote:
>>
>>  Still very noisy and high busy time, something is causing quite a bit of
>>  interference. No idea how to reduce that or track it down though.
>
> Felix and Matt,
>
> Is the channel map that Robert provided for the SR9 applicable to the AR9280?
The channel map is specific to the UBNT hardware that you're using. It 
has nothing to do with the AR9280 chip. I don't know if it's accurate 
for your hardware, you have to ask UBNT.

> (read: are we sweeping through the right channels and not violating
> some FCC reg?)
>
> Felix,
>
> Can we specify frequency rather than channel in OpenWrt to get to a specific f?
No, hostapd needs the channel number.

- Felix

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ath9k-devel] how to config AR9280 for operation as 1X1 or other ideas
  2011-03-29 17:23         ` Felix Fietkau
@ 2011-03-29 17:55           ` Larry Vaden
  0 siblings, 0 replies; 21+ messages in thread
From: Larry Vaden @ 2011-03-29 17:55 UTC (permalink / raw)
  To: ath9k-devel

On Tue, Mar 29, 2011 at 12:23 PM, Felix Fietkau <nbd@openwrt.org> wrote:
> On 2011-03-29 6:04 PM, Larry Vaden wrote:
>>
>> On Tue, Mar 29, 2011 at 10:28 AM, Felix Fietkau<nbd@openwrt.org> ?wrote:
>>>>
>>>> ? ? ? ? ?option htmode ? HT5
>>>
>>> ?HT5? Did you add any custom patches, or is this a configuration error?
>>
>> No sir; see remark about Will Rogers and ignorance; ?my intent was to
>> force 5 MHz channel width. ?Will change per your dictates.
>
> 5 MHz channels is not supported yet, that's still on my todo list.

Felix,

The radios are on public IPs and if you want, please send me your IP
and I will enable access for you if that would be better.

N.B.: I am not setting the chainmask each time I reboot the unit.
IMHO, if anything, the initial trial of chainmask did not get better
results, perhaps indicating the focus should be on interference rather
than on the tree.

That said, I'll do as directed by a master.

regards/ldv


root at OpenWrt:~# uptime
 00:06:17 up 6 min, load average: 0.00, 0.03, 0.03
root at OpenWrt:~# cat /etc/config/wireless
config wifi-device  radio0
        option type     mac80211
        option channel  4
        option macaddr  00:15:6d:4e:f1:46
        option hwmode   11ng
        option htmode   HT20
        list ht_capab   SHORT-GI-40
        list ht_capab   TX-STBC
        list ht_capab   RX-STBC1
        list ht_capab   DSSS_CCK-40
        # REMOVE THIS LINE TO ENABLE WIFI:
        option disabled 0

config wifi-iface
        option device   radio0
        option network  lan
        option mode     ap
        option ssid     OpenWrt
        option encryption none

root at OpenWrt:~# cat
/sys/kernel/debug/ieee80211/phy0/netdev:wlan0/stations/*/rc_stats
type      rate     throughput  ewma prob   this prob  this
succ/attempt   success    attempts
HT20/LGI  t MCS0        6.0       96.3      100.0          0(  0)
   63          87
HT20/LGI T PMCS1       11.7       99.7      100.0          1(  1)
   16          18
HT20/LGI    MCS2        0.0        0.0        0.0          0(  0)
    0           0
HT20/LGI    MCS3        0.0        0.0        0.0          0(  0)
    0           1
HT20/LGI    MCS4        0.0        0.0        0.0          0(  0)
    0           1
HT20/LGI    MCS5        0.0        0.0        0.0          0(  0)
    0           1
HT20/LGI    MCS6        0.0        0.0        0.0          0(  0)
    0           0
HT20/LGI    MCS7        0.0        0.0        0.0          0(  0)
    0           0
HT20/LGI    MCS8        0.0        0.0        0.0          0(  0)
    0           0
HT20/LGI    MCS9        0.0        0.0        0.0          0(  0)
    0           1
HT20/LGI    MCS10       0.0        0.0        0.0          0(  0)
    0           1
HT20/LGI    MCS11       0.0        0.0        0.0          0(  0)
    0           1
HT20/LGI    MCS12       0.0        0.0        0.0          0(  0)
    0           1
HT20/LGI    MCS13       0.0        0.0        0.0          0(  0)
    0           1
HT20/LGI    MCS14       0.0        0.0        0.0          0(  0)
    0           0
HT20/LGI    MCS15       0.0        0.0        0.0          0(  0)
    0           0

Total packet count::    ideal 69      lookaround 10
Average A-MPDU length: 1.0
root at OpenWrt:~# iw wlan0 survey dump
Survey data from wlan0
        frequency:                      2412 MHz
        channel active time:            32 ms
        channel busy time:              13 ms
        channel receive time:           0 ms
        channel transmit time:          0 ms
Survey data from wlan0
        frequency:                      2417 MHz
Survey data from wlan0
        frequency:                      2422 MHz
Survey data from wlan0
        frequency:                      2427 MHz [in use]
        noise:                          -107 dBm
        channel active time:            422545 ms
        channel busy time:              72284 ms
        channel receive time:           15932 ms
        channel transmit time:          4829 ms
Survey data from wlan0
        frequency:                      2432 MHz
Survey data from wlan0
        frequency:                      2437 MHz
Survey data from wlan0
        frequency:                      2442 MHz
Survey data from wlan0
        frequency:                      2447 MHz
Survey data from wlan0
        frequency:                      2452 MHz
Survey data from wlan0
        frequency:                      2457 MHz
Survey data from wlan0
        frequency:                      2462 MHz
Survey data from wlan0
        frequency:                      2467 MHz
Survey data from wlan0
        frequency:                      2472 MHz
Survey data from wlan0
        frequency:                      2484 MHz
root at OpenWrt:~#

==========


root at OpenWrt:~# uptime
 00:05:26 up 5 min, load average: 0.00, 0.03, 0.02
root at OpenWrt:~# cat /etc/config/wireless
config wifi-device  radio0
        option type     mac80211
        option channel  5
        option macaddr  00:15:6d:4e:f1:46
        option hwmode   11ng
        option htmode   HT20
        list ht_capab   SHORT-GI-40
        list ht_capab   TX-STBC
        list ht_capab   RX-STBC1
        list ht_capab   DSSS_CCK-40
        # REMOVE THIS LINE TO ENABLE WIFI:
        option disabled 0

config wifi-iface
        option device   radio0
        option network  lan
        option mode     ap
        option ssid     OpenWrt
        option encryption none

root at OpenWrt:~# cat
/sys/kernel/debug/ieee80211/phy0/netdev:wlan0/stations/*/rc_stats
type      rate     throughput  ewma prob   this prob  this
succ/attempt   success    attempts
HT20/LGI  t MCS0        3.1       50.7      100.0          0(  0)
    3           9
HT20/LGI    MCS1        0.0        0.0        0.0          0(  0)
    0           0
HT20/LGI    MCS2        0.0        0.0        0.0          0(  0)
    0           0
HT20/LGI T PMCS3       16.0       76.9      100.0          0(  0)
   10          21
HT20/LGI    MCS4        0.0        0.0        0.0          0(  0)
    0           0
HT20/LGI    MCS5        0.0        0.0        0.0          0(  0)
    0           0
HT20/LGI    MCS6        0.0        0.0        0.0          0(  0)
    0           1
HT20/LGI    MCS7        0.0        0.0        0.0          0(  0)
    0           1
HT20/LGI    MCS8        8.8       74.9       28.5          0(  0)
   41          58
HT20/LGI    MCS9        0.0        0.0        0.0          0(  0)
    0           0
HT20/LGI    MCS10       0.0        0.0        0.0          0(  0)
    0           0
HT20/LGI    MCS11       0.0        0.0        0.0          0(  0)
    0           1
HT20/LGI    MCS12       0.0        0.0        0.0          0(  0)
    0           1
HT20/LGI    MCS13       0.0        0.0        0.0          0(  0)
    0           0
HT20/LGI    MCS14       0.0        0.0        0.0          0(  0)
    0           0
HT20/LGI    MCS15       0.0        0.0        0.0          0(  0)
    0           1

Total packet count::    ideal 47      lookaround 8
Average A-MPDU length: 1.0
root at OpenWrt:~# iw wlan0 survey dump
Survey data from wlan0
        frequency:                      2412 MHz
        noise:                          -97 dBm
        channel active time:            42 ms
        channel busy time:              14 ms
        channel receive time:           1 ms
        channel transmit time:          0 ms
Survey data from wlan0
        frequency:                      2417 MHz
Survey data from wlan0
        frequency:                      2422 MHz
Survey data from wlan0
        frequency:                      2427 MHz
Survey data from wlan0
        frequency:                      2432 MHz [in use]
        noise:                          -100 dBm
        channel active time:            353597 ms
        channel busy time:              61533 ms
        channel receive time:           1299 ms
        channel transmit time:          3889 ms
Survey data from wlan0
        frequency:                      2437 MHz
Survey data from wlan0
        frequency:                      2442 MHz
Survey data from wlan0
        frequency:                      2447 MHz
Survey data from wlan0
        frequency:                      2452 MHz
Survey data from wlan0
        frequency:                      2457 MHz
Survey data from wlan0
        frequency:                      2462 MHz
Survey data from wlan0
        frequency:                      2467 MHz
Survey data from wlan0
        frequency:                      2472 MHz
Survey data from wlan0
        frequency:                      2484 MHz
root at OpenWrt:~#

==========

root at OpenWrt:~# uptime
 00:05:26 up 5 min, load average: 0.00, 0.03, 0.03
root at OpenWrt:~# cat /etc/config/wireless
config wifi-device  radio0
        option type     mac80211
        option channel  6
        option macaddr  00:15:6d:4e:f1:46
        option hwmode   11ng
        option htmode   HT20
        list ht_capab   SHORT-GI-40
        list ht_capab   TX-STBC
        list ht_capab   RX-STBC1
        list ht_capab   DSSS_CCK-40
        # REMOVE THIS LINE TO ENABLE WIFI:
        option disabled 0

config wifi-iface
        option device   radio0
        option network  lan
        option mode     ap
        option ssid     OpenWrt
        option encryption none

root at OpenWrt:~# cat
/sys/kernel/debug/ieee80211/phy0/netdev:wlan0/stations/*/rc_stats
cat: can't open
'/sys/kernel/debug/ieee80211/phy0/netdev:wlan0/stations/*/rc_stats':
No such file or directory
root at OpenWrt:~# iw wlan0 survey dump
Survey data from wlan0
        frequency:                      2412 MHz
        noise:                          -97 dBm
        channel active time:            51 ms
        channel busy time:              14 ms
        channel receive time:           0 ms
        channel transmit time:          0 ms
Survey data from wlan0
        frequency:                      2417 MHz
Survey data from wlan0
        frequency:                      2422 MHz
Survey data from wlan0
        frequency:                      2427 MHz
Survey data from wlan0
        frequency:                      2432 MHz
Survey data from wlan0
        frequency:                      2437 MHz [in use]
        noise:                          -97 dBm
        channel active time:            353277 ms
        channel busy time:              86067 ms
        channel receive time:           35133 ms
        channel transmit time:          3566 ms
Survey data from wlan0
        frequency:                      2442 MHz
Survey data from wlan0
        frequency:                      2447 MHz
Survey data from wlan0
        frequency:                      2452 MHz
Survey data from wlan0
        frequency:                      2457 MHz
Survey data from wlan0
        frequency:                      2462 MHz
Survey data from wlan0
        frequency:                      2467 MHz
Survey data from wlan0
        frequency:                      2472 MHz
Survey data from wlan0
        frequency:                      2484 MHz
root at OpenWrt:~#






-- 
Larry Vaden, CoFounder
Internet Texoma, Inc.
Serving Rural Texomaland Since 1995
We Care About Your Connection!

^ permalink raw reply	[flat|nested] 21+ messages in thread

* [ath9k-devel] how to config AR9280 for operation as 1X1 or other ideas
  2011-03-29 17:20         ` Felix Fietkau
@ 2011-03-29 18:16           ` Larry Vaden
  0 siblings, 0 replies; 21+ messages in thread
From: Larry Vaden @ 2011-03-29 18:16 UTC (permalink / raw)
  To: ath9k-devel

On Tue, Mar 29, 2011 at 12:20 PM, Felix Fietkau <nbd@openwrt.org> wrote:
>
> I don't think reboot stability on AirOS is a good indicator for general
> stability with OpenWrt on these frequencies. If the devices reboot, that's
> an indicator of a driver bug.

I agree with you.

I've had difficulty with those who generalize "works for me" and don't
realize Einstein spent the last 25 years of his life trying to
generalize on the special theory of relativity.

IMHO, the existence of spontaneous reboots on the M2 and the M900
pretty much supports your view point and I am glad to hear a
professional dev say a driver bug is involved.  Further, the
spontaneous reboots stopped on the CPE when Justin suggested turning
off the power to the AP.

I have rebooted the far end CPE to return the chainmask to normal,
presuming the echo is not persistent.

regards/ldv

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2011-03-29 18:16 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-29 13:33 [ath9k-devel] how to config AR9280 for operation as 1X1 or other ideas Larry Vaden
2011-03-29 14:36 ` Felix Fietkau
2011-03-29 15:08   ` Larry Vaden
2011-03-29 15:31     ` Felix Fietkau
2011-03-29 15:16   ` Larry Vaden
2011-03-29 15:28     ` Felix Fietkau
2011-03-29 16:04       ` Larry Vaden
2011-03-29 17:23         ` Felix Fietkau
2011-03-29 17:55           ` Larry Vaden
2011-03-29 16:08       ` Larry Vaden
2011-03-29 17:21         ` Felix Fietkau
2011-03-29 17:25           ` Larry Vaden
2011-03-29 17:33             ` Felix Fietkau
2011-03-29 17:38               ` Larry Vaden
2011-03-29 17:43                 ` Felix Fietkau
2011-03-29 16:25       ` Larry Vaden
2011-03-29 17:20         ` Felix Fietkau
2011-03-29 18:16           ` Larry Vaden
2011-03-29 15:34   ` Larry Vaden
2011-03-29 15:38   ` Larry Vaden
2011-03-29 15:47   ` Larry Vaden

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.