All of lore.kernel.org
 help / color / mirror / Atom feed
* [ath9k-devel] ar9102 client mode unstable, ping times climb and climb
@ 2009-02-03 23:08 Stephen Gutknecht
  2009-02-05  1:51 ` Sujith
  0 siblings, 1 reply; 9+ messages in thread
From: Stephen Gutknecht @ 2009-02-03 23:08 UTC (permalink / raw)
  To: ath9k-devel

Howdy.

This is talking to a WDNR3300 second interface, which is a G only
broadcom chip, using wpa2 encryption.  I have seem similar problems
with an Atheros AP too... but wanted to document the AP in question.
I do not believe the encryption is a factor, I've seen similar
problems with no encryption.  These tests were performed using a
serial port console, none of the ethernet cabled ports of the router
were populated.

Basically the signal seems to retrain rate a lot, going down to 1Mbps
rate pretty quickly. Plus then I find ping times keep climbing until
it either retrains again or I have to rmmod and insmod the ath9k
driver.

Using the latest OpenWRT trunk with kernel 2.6.28.2 and
compat-wireless ath9k 2009-02-02. This is a real time session log,
from cold boot of the hardware with wireless off, then starting a ping
and enabling the driver.  see here:  http://pastebin.com/d5334f384

I know some prefer not to visit website logs, so I'm posting excerpt
here.  Pay attention to the ping sequence numbers, note how the
unloading of the driver and reloading temporarily helped.  But then
started to climb again.  I again encourage you to view the full
session at the pastebin site.

*****************
64 bytes from 192.168.2.1: seq=92 ttl=64 time=13305.570 ms
64 bytes from 192.168.2.1: seq=93 ttl=64 time=13269.615 ms
64 bytes from 192.168.2.1: seq=94 ttl=64 time=12894.204 ms
64 bytes from 192.168.2.1: seq=95 ttl=64 time=12600.285 ms
64 bytes from 192.168.2.1: seq=96 ttl=64 time=12592.624 ms
64 bytes from 192.168.2.1: seq=97 ttl=64 time=12443.262 ms
64 bytes from 192.168.2.1: seq=98 ttl=64 time=12263.204 ms
64 bytes from 192.168.2.1: seq=103 ttl=64 time=13871.598 ms
64 bytes from 192.168.2.1: seq=104 ttl=64 time=12883.335 ms
64 bytes from 192.168.2.1: seq=105 ttl=64 time=13100.105 ms

root at OpenWrt:/#
root at OpenWrt:/#
root at OpenWrt:/# rmmod ath9k && insmod ath9k debug=0x00002000 && wifi up && sleep
 4 && iwconfig wlan0 && sleep 3 && iwconfig wlan0 && sleep 5 && iwconfig wlan0 &
& sleep 5 & iwconfig wlan0

64 bytes from 192.168.2.1: seq=106 ttl=64 time=14704.042 ms

br-lan: port 2(wlan0) entering disabled state
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
ath9k: Driver unloaded
wlan0     No such device

root at OpenWrt:/# cfg80211: Calling CRDA for country: US
phy2: Atheros AR9100 MAC/BB Rev:0, AR2122 RF Rev:a1, mem=0xb80c0000, irq=2
device wlan0 entered promiscuous mode
br-lan: topology change detected, propagating
br-lan: port 2(wlan0) entering forwarding state
wlan0     IEEE 802.11bgn  ESSID:"IPC-Stock-NETGEAR-2.4-G"
          Mode:Managed  Frequency:2.412 GHz  Access Point: 00:1E:2A:6C:9E:89
          Bit Rate=5.5 Mb/s   Tx-Power=20 dBm
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B
          Encryption key:E46F-D424-180B-0FCB-6D3B-75A5-3891-44E0 [2]
Security mode:open
          Power Management:off
          Link Quality=97/100  Signal level:-47 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

wlan0     IEEE 802.11bgn  ESSID:"IPC-Stock-NETGEAR-2.4-G"
          Mode:Managed  Frequency:2.412 GHz  Access Point: 00:1E:2A:6C:9E:89
          Bit Rate=1 Mb/s   Tx-Power=20 dBm
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B
          Encryption key:E46F-D424-180B-0FCB-6D3B-75A5-3891-44E0 [2]
Security mode:open
          Power Management:off
          Link Quality=97/100  Signal level:-47 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

br-lan: port 2(wlan0) entering disabled state
br-lan: topology change detected, propagating
br-lan: port 2(wlan0) entering forwarding state
wlan0     IEEE 802.11bgn  ESSID:"IPC-Stock-NETGEAR-2.4-G"
          Mode:Managed  Frequency:2.412 GHz  Access Point: 00:1E:2A:6C:9E:89
          Bit Rate=1 Mb/s   Tx-Power=20 dBm
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B
          Encryption key:off
          Power Management:off
          Link Quality=100/100  Signal level:-36 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

64 bytes from 192.168.2.1: seq=140 ttl=64 time=1150.495 ms
64 bytes from 192.168.2.1: seq=141 ttl=64 time=311.064 ms
64 bytes from 192.168.2.1: seq=142 ttl=64 time=4.246 ms
64 bytes from 192.168.2.1: seq=143 ttl=64 time=4.287 ms
64 bytes from 192.168.2.1: seq=144 ttl=64 time=4.717 ms
64 bytes from 192.168.2.1: seq=145 ttl=64 time=126.177 ms
64 bytes from 192.168.2.1: seq=146 ttl=64 time=177.116 ms
64 bytes from 192.168.2.1: seq=147 ttl=64 time=200.735 ms
64 bytes from 192.168.2.1: seq=148 ttl=64 time=429.594 ms
64 bytes from 192.168.2.1: seq=149 ttl=64 time=244.758 ms
64 bytes from 192.168.2.1: seq=150 ttl=64 time=214.435 ms
64 bytes from 192.168.2.1: seq=151 ttl=64 time=250.878 ms
64 bytes from 192.168.2.1: seq=152 ttl=64 time=282.593 ms
64 bytes from 192.168.2.1: seq=153 ttl=64 time=547.478 ms
64 bytes from 192.168.2.1: seq=154 ttl=64 time=663.129 ms
64 bytes from 192.168.2.1: seq=155 ttl=64 time=755.421 ms
64 bytes from 192.168.2.1: seq=156 ttl=64 time=793.606 ms
64 bytes from 192.168.2.1: seq=157 ttl=64 time=1008.357 ms
64 bytes from 192.168.2.1: seq=158 ttl=64 time=734.861 ms
64 bytes from 192.168.2.1: seq=159 ttl=64 time=383.581 ms
64 bytes from 192.168.2.1: seq=160 ttl=64 time=425.629 ms
64 bytes from 192.168.2.1: seq=161 ttl=64 time=299.488 ms
64 bytes from 192.168.2.1: seq=162 ttl=64 time=218.053 ms
64 bytes from 192.168.2.1: seq=163 ttl=64 time=331.606 ms
64 bytes from 192.168.2.1: seq=164 ttl=64 time=508.171 ms
64 bytes from 192.168.2.1: seq=165 ttl=64 time=218.615 ms
64 bytes from 192.168.2.1: seq=166 ttl=64 time=140.144 ms
64 bytes from 192.168.2.1: seq=167 ttl=64 time=4.155 ms
64 bytes from 192.168.2.1: seq=168 ttl=64 time=53.280 ms
64 bytes from 192.168.2.1: seq=169 ttl=64 time=1439.498 ms
64 bytes from 192.168.2.1: seq=170 ttl=64 time=1624.040 ms
64 bytes from 192.168.2.1: seq=171 ttl=64 time=1850.329 ms
64 bytes from 192.168.2.1: seq=172 ttl=64 time=1876.449 ms
64 bytes from 192.168.2.1: seq=173 ttl=64 time=1912.648 ms
64 bytes from 192.168.2.1: seq=174 ttl=64 time=2026.347 ms
64 bytes from 192.168.2.1: seq=175 ttl=64 time=2196.713 ms
64 bytes from 192.168.2.1: seq=176 ttl=64 time=2292.335 ms
64 bytes from 192.168.2.1: seq=177 ttl=64 time=2383.363 ms
64 bytes from 192.168.2.1: seq=178 ttl=64 time=2428.318 ms
64 bytes from 192.168.2.1: seq=179 ttl=64 time=3782.700 ms
64 bytes from 192.168.2.1: seq=180 ttl=64 time=4728.032 ms
64 bytes from 192.168.2.1: seq=181 ttl=64 time=6938.147 ms

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

* [ath9k-devel]  ar9102 client mode unstable, ping times climb and climb
  2009-02-03 23:08 [ath9k-devel] ar9102 client mode unstable, ping times climb and climb Stephen Gutknecht
@ 2009-02-05  1:51 ` Sujith
  2009-02-06  7:20   ` Stephen Gutknecht
  2009-02-06 21:48   ` Stephen Gutknecht
  0 siblings, 2 replies; 9+ messages in thread
From: Sujith @ 2009-02-05  1:51 UTC (permalink / raw)
  To: ath9k-devel

Stephen Gutknecht (hilltx) wrote:
> Using the latest OpenWRT trunk with kernel 2.6.28.2 and
> compat-wireless ath9k 2009-02-02. This is a real time session log,
> from cold boot of the hardware with wireless off, then starting a ping
> and enabling the driver.  see here:  http://pastebin.com/d5334f384

The post at pastebin has expired...

Sujith
-- 
http://sujith-m.blogspot.com

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

* [ath9k-devel] ar9102 client mode unstable, ping times climb and  climb
  2009-02-05  1:51 ` Sujith
@ 2009-02-06  7:20   ` Stephen Gutknecht
  2009-02-15  3:14     ` Stephen Gutknecht
  2009-02-06 21:48   ` Stephen Gutknecht
  1 sibling, 1 reply; 9+ messages in thread
From: Stephen Gutknecht @ 2009-02-06  7:20 UTC (permalink / raw)
  To: ath9k-devel

> The post at pastebin has expired...
>
> Sujith


Yha, sorry about that; Ok, I'm going to start this over and focus on
the retrain and rate issues.  Both routers are running the same
chipset with an ar9102, the AP using proprietary madwifi and the
client running ath9k.

Router / AP:  D-Link DIR-615 rev C1 running firmware 3.01. Mode:
802.11n only. Channel: 2.462 Ghz channel 11.  Channel width: Auto
20/40 Mhz. Encryption: WPA2/AES.  wireless chip: ar9102

Router / client: Trendnet TEW-652BRP hardware running OpenWRT trunk
with compat-wireless 2009-02-02 on Linux kernel 2.6.28.2.  wireless
chip: ar9102

"iwlist wlan0 scan" output for this AP:

          Cell 07 - Address: 00:14:D1:5B:22:59
                    ESSID:"DLINK_DIR-615_C1_STOCK_WPA_AES"
                    Mode:Master
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=100/100  Signal level:-42 dBm
                    Encryption key:on
                    IE: Unknown:
001E444C494E4B5F4449522D3631355F43315F53544F434B5F5750415F414553
                    IE: Unknown: 010882848B960C121824
                    IE: Unknown: 03010B
                    IE: Unknown: 0706555320010B1B
                    IE: Unknown: 200100
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 2A0100
                    IE: Unknown: 32043048606C
                    IE: Unknown:
DD180050F2020101070003A4000027A4000042435E0062322F00
                    IE: Unknown:
DD1E00904C334E101BFFFF000000000000000000000000000000000000000000
                    IE: Unknown:
2D1A4E101BFFFF000000000000000000000000000000000000000000
                    IE: Unknown:
DD1A00904C340B071900000000000000000000000000000000000000
                    IE: Unknown:
3D160B071900000000000000000000000000000000000000
                    IE: Unknown: DD0900037F01010000FF7F
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Extra:tsf=000000089a755bf0
                    Extra: Last beacon: 130ms ago

PROBLEM:  Only getting connected at 1Mb/s rate in client mode with ath9k.

root at OpenWrt:/# iwconfig wlan0
wlan0     IEEE 802.11bgn  ESSID:"DLINK_DIR-615_C1_STOCK_WPA_AES"
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:14:D1:5B:22:59
          Bit Rate=1 Mb/s   Tx-Power=20 dBm
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B
          Encryption key:6371-0346-209D-C4FE-63B2-BE0E-4EDF-09E0 [2]
Security mode:open
          Power Management:off
          Link Quality=100/100  Signal level:-37 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

I unloaded ath9k, then loaded ath9k driver in debug mode on the
problem client ar9102 router.  Here is the dmesg output after the
unload/load.

ath9k: Driver unloaded
ath9k: Rate:  1Mbps, ratecode: 27
ath9k: Rate:  2Mbps, ratecode: 26
ath9k: Rate:  5Mbps, ratecode: 25
ath9k: Rate: 11Mbps, ratecode: 24
ath9k: Rate:  6Mbps, ratecode: 11
ath9k: Rate:  9Mbps, ratecode: 15
ath9k: Rate: 12Mbps, ratecode: 10
ath9k: Rate: 18Mbps, ratecode: 14
ath9k: Rate: 24Mbps, ratecode:  9
ath9k: Rate: 36Mbps, ratecode: 13
ath9k: Rate: 48Mbps, ratecode:  8
ath9k: Rate: 54Mbps, ratecode: 12
ath9k: Rate:  6Mbps, ratecode: 11
ath9k: Rate:  9Mbps, ratecode: 15
ath9k: Rate: 12Mbps, ratecode: 10
ath9k: Rate: 18Mbps, ratecode: 14
ath9k: Rate: 24Mbps, ratecode:  9
ath9k: Rate: 36Mbps, ratecode: 13
ath9k: Rate: 48Mbps, ratecode:  8
ath9k: Rate: 54Mbps, ratecode: 12
ath9k: tx DMA: 512 buffers 1 desc/buf
ath9k: tx DMA map: a1f20000 (73728) -> 1f20000 (73728)
ath9k: beacon DMA: 1 buffers 1 desc/buf
ath9k: beacon DMA map: a1e6e000 (144) -> 1e6e000 (144)
ath9k: cachelsz 32 rxbufsize 3872
ath9k: rx DMA: 512 buffers 1 desc/buf
ath9k: rx DMA map: a1fa0000 (73728) -> 1fa0000 (73728)
phy1: Selected rate control algorithm 'ath9k_rate_control'
cfg80211: Calling CRDA for country: US
phy1: Atheros AR9100 MAC/BB Rev:0, AR2122 RF Rev:a1, mem=0xb80c0000, irq=2
ath9k: Starting driver with initial channel: 2412 MHz
ath9k: Attach a VAP of type: 2
ath9k: BSS Changed PREAMBLE 0
ath9k: BSS Changed CTS PROT 0
ath9k: Set HW RX filter: 0x0
ath9k: Set channel: 2412 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2412 MHz) -> (2412 MHz), chanwidth: 0
ath9k: Configure tx [queue/halq] [0/3],  aifs: 2, cw_min: 31, cw_max:
1023, txop: 0
ath9k: Configure tx [queue/halq] [1/2],  aifs: 2, cw_min: 31, cw_max:
1023, txop: 0
ath9k: Configure tx [queue/halq] [2/1],  aifs: 2, cw_min: 31, cw_max:
1023, txop: 0
ath9k: Configure tx [queue/halq] [3/0],  aifs: 2, cw_min: 31, cw_max:
1023, txop: 0
ath9k: Set HW RX filter: 0x0
ath9k: Set HW RX filter: 0x0
ath9k: Set HW RX filter: 0x0
ath9k: Set HW RX filter: 0x10
ath9k: Set channel: 2412 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2412 MHz) -> (2412 MHz), chanwidth: 0
ath9k: Set channel: 2417 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2412 MHz) -> (2417 MHz), chanwidth: 0
ath9k: Set channel: 2422 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2417 MHz) -> (2422 MHz), chanwidth: 0
ath9k: Set channel: 2427 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2422 MHz) -> (2427 MHz), chanwidth: 0
ath9k: Set channel: 2432 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2427 MHz) -> (2432 MHz), chanwidth: 0
ath9k: Set channel: 2437 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2432 MHz) -> (2437 MHz), chanwidth: 0
ath9k: Set channel: 2442 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2437 MHz) -> (2442 MHz), chanwidth: 0
ath9k: Set channel: 2447 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2442 MHz) -> (2447 MHz), chanwidth: 0
ath9k: Set channel: 2452 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2447 MHz) -> (2452 MHz), chanwidth: 0
ath9k: Set channel: 2457 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2452 MHz) -> (2457 MHz), chanwidth: 0
ath9k: Set channel: 2462 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2457 MHz) -> (2462 MHz), chanwidth: 0
ath9k: Set channel: 2412 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2462 MHz) -> (2412 MHz), chanwidth: 0
ath9k: Set HW RX filter: 0x0
ath9k: Set channel: 2462 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2412 MHz) -> (2462 MHz), chanwidth: 0
ath9k: RX filter 0x0 bssid 80ca2e68 aid 0x0
ath9k: Set channel: 2462 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 0
ath9k: RX filter 0x0 bssid 80ca2e68 aid 0x0
ath9k: Configure tx [queue/halq] [0/3],  aifs: 2, cw_min: 15, cw_max:
1023, txop: 0
ath9k: Configure tx [queue/halq] [1/2],  aifs: 2, cw_min: 15, cw_max:
1023, txop: 0
ath9k: Configure tx [queue/halq] [2/1],  aifs: 2, cw_min: 15, cw_max:
1023, txop: 0
ath9k: Configure tx [queue/halq] [3/0],  aifs: 2, cw_min: 15, cw_max:
1023, txop: 0
wlan0: authenticate with AP 81e0fce8
wlan0: authenticated
wlan0: associate with AP 81e0fce8
wlan0: RX AssocResp from 8179a02a (capab=0x431 status=0 aid=1)
wlan0: associated
ath9k: Choosing rate table for mode: 10
ath9k: Configure tx [queue/halq] [2/1],  aifs: 3, cw_min: 15, cw_max:
1023, txop: 0
ath9k: Configure tx [queue/halq] [3/0],  aifs: 7, cw_min: 15, cw_max:
1023, txop: 0
ath9k: Configure tx [queue/halq] [1/2],  aifs: 2, cw_min: 7, cw_max:
15, txop: 94
ath9k: Configure tx [queue/halq] [0/3],  aifs: 2, cw_min: 3, cw_max: 7, txop: 47
ath9k: Set channel: 2462 MHz
ath9k: tx chmask: 5, rx chmask: 5
ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 1
ath9k: BSS Changed PREAMBLE 1
ath9k: BSS Changed ASSOC 1
ath9k: Bss Info ASSOC 1, bssid: 80ca2e68
eth1: link down
wlan0: deauthenticating by local choice (reason=3)
ath9k: Set channel: 2462 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 0
ath9k: BSS Changed PREAMBLE 0
ath9k: BSS Changed CTS PROT 0
ath9k: BSS Changed ASSOC 0
ath9k: Bss Info DISSOC
ath9k: Set HW RX filter: 0x0
ath9k: Set HW RX filter: 0x0
ath9k: Detach Interface
ath9k: Cleaning up
ath9k: Driver halt
ar71xx: pll_reg 0xb8050018: 0x13000a44
eth1: link up (100Mbps/Full duplex)
ath9k: Starting driver with initial channel: 2462 MHz
ath9k: Attach a VAP of type: 2
ath9k: BSS Changed PREAMBLE 0
ath9k: BSS Changed CTS PROT 0
ath9k: Set HW RX filter: 0x0
ath9k: Set channel: 2462 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 0
ath9k: Configure tx [queue/halq] [0/3],  aifs: 2, cw_min: 15, cw_max:
1023, txop: 0
ath9k: Configure tx [queue/halq] [1/2],  aifs: 2, cw_min: 15, cw_max:
1023, txop: 0
ath9k: Configure tx [queue/halq] [2/1],  aifs: 2, cw_min: 15, cw_max:
1023, txop: 0
ath9k: Configure tx [queue/halq] [3/0],  aifs: 2, cw_min: 15, cw_max:
1023, txop: 0
ath9k: Set HW RX filter: 0x0
ath9k: Set HW RX filter: 0x0
ath9k: Set HW RX filter: 0x10
ath9k: Set HW RX filter: 0x0
ath9k: Set channel: 2412 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2462 MHz) -> (2412 MHz), chanwidth: 0
ath9k: Set channel: 2417 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2412 MHz) -> (2417 MHz), chanwidth: 0
ath9k: Set channel: 2422 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2417 MHz) -> (2422 MHz), chanwidth: 0
ath9k: Set HW RX filter: 0x0
ath9k: Set channel: 2427 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2422 MHz) -> (2427 MHz), chanwidth: 0
device wlan0 entered promiscuous mode
ath9k: Set HW RX filter: 0x1
ath9k: Set HW RX filter: 0x1
ath9k: Set channel: 2432 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2427 MHz) -> (2432 MHz), chanwidth: 0
ath9k: Set channel: 2437 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2432 MHz) -> (2437 MHz), chanwidth: 0
ath9k: Set channel: 2442 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2437 MHz) -> (2442 MHz), chanwidth: 0
ath9k: Set channel: 2447 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2442 MHz) -> (2447 MHz), chanwidth: 0
ath9k: Set channel: 2452 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2447 MHz) -> (2452 MHz), chanwidth: 0
ath9k: Set channel: 2457 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2452 MHz) -> (2457 MHz), chanwidth: 0
ath9k: Set channel: 2462 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2457 MHz) -> (2462 MHz), chanwidth: 0
ath9k: Set channel: 2462 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 0
ath9k: Set HW RX filter: 0x1
ath9k: Set HW RX filter: 0x11
ath9k: Set channel: 2412 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2462 MHz) -> (2412 MHz), chanwidth: 0
eth1: link down
ath9k: Set channel: 2417 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2412 MHz) -> (2417 MHz), chanwidth: 0
ath9k: Set channel: 2422 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2417 MHz) -> (2422 MHz), chanwidth: 0
ath9k: Set channel: 2427 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2422 MHz) -> (2427 MHz), chanwidth: 0
ath9k: Set channel: 2432 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2427 MHz) -> (2432 MHz), chanwidth: 0
ath9k: Set channel: 2437 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2432 MHz) -> (2437 MHz), chanwidth: 0
ath9k: Set channel: 2442 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2437 MHz) -> (2442 MHz), chanwidth: 0
ath9k: Set channel: 2447 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2442 MHz) -> (2447 MHz), chanwidth: 0
ath9k: Set channel: 2452 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2447 MHz) -> (2452 MHz), chanwidth: 0
ath9k: Set channel: 2457 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2452 MHz) -> (2457 MHz), chanwidth: 0
ath9k: Set channel: 2462 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2457 MHz) -> (2462 MHz), chanwidth: 0
ath9k: Set channel: 2462 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 0
ath9k: Set HW RX filter: 0x1
ath9k: Set channel: 2462 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 0
ath9k: RX filter 0x0 bssid 80ca2e68 aid 0x0
ath9k: Set channel: 2462 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 0
ath9k: RX filter 0x0 bssid 80ca2e68 aid 0x0
ath9k: Configure tx [queue/halq] [0/3],  aifs: 2, cw_min: 15, cw_max:
1023, txop: 0
ath9k: Configure tx [queue/halq] [1/2],  aifs: 2, cw_min: 15, cw_max:
1023, txop: 0
ath9k: Configure tx [queue/halq] [2/1],  aifs: 2, cw_min: 15, cw_max:
1023, txop: 0
ath9k: Configure tx [queue/halq] [3/0],  aifs: 2, cw_min: 15, cw_max:
1023, txop: 0
wlan0: authenticate with AP 81e0fce8
wlan0: authenticated
wlan0: associate with AP 81e0fce8
wlan0: RX AssocResp from 8140c02a (capab=0x431 status=0 aid=1)
wlan0: associated
ath9k: Choosing rate table for mode: 10
ath9k: Configure tx [queue/halq] [2/1],  aifs: 3, cw_min: 15, cw_max:
1023, txop: 0
ath9k: Configure tx [queue/halq] [3/0],  aifs: 7, cw_min: 15, cw_max:
1023, txop: 0
ath9k: Configure tx [queue/halq] [1/2],  aifs: 2, cw_min: 7, cw_max:
15, txop: 94
ath9k: Configure tx [queue/halq] [0/3],  aifs: 2, cw_min: 3, cw_max: 7, txop: 47
ath9k: Set channel: 2462 MHz
ath9k: tx chmask: 5, rx chmask: 5
ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 1
ath9k: BSS Changed PREAMBLE 1
ath9k: BSS Changed ASSOC 1
ath9k: Bss Info ASSOC 1, bssid: 80ca2e68

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

* [ath9k-devel] ar9102 client mode unstable, ping times climb and  climb
  2009-02-05  1:51 ` Sujith
  2009-02-06  7:20   ` Stephen Gutknecht
@ 2009-02-06 21:48   ` Stephen Gutknecht
  1 sibling, 0 replies; 9+ messages in thread
From: Stephen Gutknecht @ 2009-02-06 21:48 UTC (permalink / raw)
  To: ath9k-devel

On Wed, Feb 4, 2009 at 5:51 PM, Sujith <m.sujith@gmail.com> wrote:
> Stephen Gutknecht (hilltx) wrote:

> The post at pastebin has expired...



Ok, a fresh pastebin with expiration set correctly.  This was against
a Netgear WNDR3300 Broadcom G chip (2nd chip in this router, the main
chip was set to NA mode).  This time the connection was more stable,
but you can see how it connects at 5.5Mb/s and quickly drops to 1Mb/s.
 I've managed to connect at 24Mb/s and see it quickly drop to 1Mb/s on
various attempts.

the ath9k was loaded in debug mode, I included the output.  There is a
bit to wade through, but hopefully it details the issue.

session here: http://openwrt.pastebin.com/f1795e978

Thank you.

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

* [ath9k-devel] ar9102 client mode unstable, ping times climb and  climb
  2009-02-06  7:20   ` Stephen Gutknecht
@ 2009-02-15  3:14     ` Stephen Gutknecht
  2009-02-15 19:31       ` austinxxh-ath9k at yahoo.com
  0 siblings, 1 reply; 9+ messages in thread
From: Stephen Gutknecht @ 2009-02-15  3:14 UTC (permalink / raw)
  To: ath9k-devel

Can someone please try client (station) mode on an AHB bus AP81
router?  The slower MIPS CPU or even how we initialize the
ar9102/ar9103 chips could be factors.

if you are a serious ath9k developer (the ones with the Linux Kernel
skills) and need a router, please contact me.... I will personally
send you a router for free to advance the Linux router cause.  OpenWRT
is the real deal, please get involved.  Being stuck on binary drivers
with a 3 or 9 year old kernel is impacting greater society.  We want
to be _ahead_ of the technology curve - this time.

  Stephen Gutknecht
  President, Austin Texas Linux Users Group (Austin LUG)



On Fri, Feb 6, 2009 at 1:20 AM, Stephen Gutknecht (hilltx)
<stephen@hilltx.com> wrote:
>> The post at pastebin has expired...
>>
>> Sujith
>
>
> Yha, sorry about that; Ok, I'm going to start this over and focus on
> the retrain and rate issues.  Both routers are running the same
> chipset with an ar9102, the AP using proprietary madwifi and the
> client running ath9k.
>
> Router / AP:  D-Link DIR-615 rev C1 running firmware 3.01. Mode:
> 802.11n only. Channel: 2.462 Ghz channel 11.  Channel width: Auto
> 20/40 Mhz. Encryption: WPA2/AES.  wireless chip: ar9102
>
> Router / client: Trendnet TEW-652BRP hardware running OpenWRT trunk
> with compat-wireless 2009-02-02 on Linux kernel 2.6.28.2.  wireless
> chip: ar9102
>
> "iwlist wlan0 scan" output for this AP:
>
>          Cell 07 - Address: 00:14:D1:5B:22:59
>                    ESSID:"DLINK_DIR-615_C1_STOCK_WPA_AES"
>                    Mode:Master
>                    Channel:11
>                    Frequency:2.462 GHz (Channel 11)
>                    Quality=100/100  Signal level:-42 dBm
>                    Encryption key:on
>                    IE: Unknown:
> 001E444C494E4B5F4449522D3631355F43315F53544F434B5F5750415F414553
>                    IE: Unknown: 010882848B960C121824
>                    IE: Unknown: 03010B
>                    IE: Unknown: 0706555320010B1B
>                    IE: Unknown: 200100
>                    IE: IEEE 802.11i/WPA2 Version 1
>                        Group Cipher : CCMP
>                        Pairwise Ciphers (1) : CCMP
>                        Authentication Suites (1) : PSK
>                    IE: Unknown: 2A0100
>                    IE: Unknown: 32043048606C
>                    IE: Unknown:
> DD180050F2020101070003A4000027A4000042435E0062322F00
>                    IE: Unknown:
> DD1E00904C334E101BFFFF000000000000000000000000000000000000000000
>                    IE: Unknown:
> 2D1A4E101BFFFF000000000000000000000000000000000000000000
>                    IE: Unknown:
> DD1A00904C340B071900000000000000000000000000000000000000
>                    IE: Unknown:
> 3D160B071900000000000000000000000000000000000000
>                    IE: Unknown: DD0900037F01010000FF7F
>                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
>                              9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
>                              48 Mb/s; 54 Mb/s
>                    Extra:tsf=000000089a755bf0
>                    Extra: Last beacon: 130ms ago
>
> PROBLEM:  Only getting connected at 1Mb/s rate in client mode with ath9k.
>
> root at OpenWrt:/# iwconfig wlan0
> wlan0     IEEE 802.11bgn  ESSID:"DLINK_DIR-615_C1_STOCK_WPA_AES"
>          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:14:D1:5B:22:59
>          Bit Rate=1 Mb/s   Tx-Power=20 dBm
>          Retry min limit:7   RTS thr:off   Fragment thr=2352 B
>          Encryption key:6371-0346-209D-C4FE-63B2-BE0E-4EDF-09E0 [2]
> Security mode:open
>          Power Management:off
>          Link Quality=100/100  Signal level:-37 dBm
>          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
>
> I unloaded ath9k, then loaded ath9k driver in debug mode on the
> problem client ar9102 router.  Here is the dmesg output after the
> unload/load.
>
> ath9k: Driver unloaded
> ath9k: Rate:  1Mbps, ratecode: 27
> ath9k: Rate:  2Mbps, ratecode: 26
> ath9k: Rate:  5Mbps, ratecode: 25
> ath9k: Rate: 11Mbps, ratecode: 24
> ath9k: Rate:  6Mbps, ratecode: 11
> ath9k: Rate:  9Mbps, ratecode: 15
> ath9k: Rate: 12Mbps, ratecode: 10
> ath9k: Rate: 18Mbps, ratecode: 14
> ath9k: Rate: 24Mbps, ratecode:  9
> ath9k: Rate: 36Mbps, ratecode: 13
> ath9k: Rate: 48Mbps, ratecode:  8
> ath9k: Rate: 54Mbps, ratecode: 12
> ath9k: Rate:  6Mbps, ratecode: 11
> ath9k: Rate:  9Mbps, ratecode: 15
> ath9k: Rate: 12Mbps, ratecode: 10
> ath9k: Rate: 18Mbps, ratecode: 14
> ath9k: Rate: 24Mbps, ratecode:  9
> ath9k: Rate: 36Mbps, ratecode: 13
> ath9k: Rate: 48Mbps, ratecode:  8
> ath9k: Rate: 54Mbps, ratecode: 12
> ath9k: tx DMA: 512 buffers 1 desc/buf
> ath9k: tx DMA map: a1f20000 (73728) -> 1f20000 (73728)
> ath9k: beacon DMA: 1 buffers 1 desc/buf
> ath9k: beacon DMA map: a1e6e000 (144) -> 1e6e000 (144)
> ath9k: cachelsz 32 rxbufsize 3872
> ath9k: rx DMA: 512 buffers 1 desc/buf
> ath9k: rx DMA map: a1fa0000 (73728) -> 1fa0000 (73728)
> phy1: Selected rate control algorithm 'ath9k_rate_control'
> cfg80211: Calling CRDA for country: US
> phy1: Atheros AR9100 MAC/BB Rev:0, AR2122 RF Rev:a1, mem=0xb80c0000, irq=2
> ath9k: Starting driver with initial channel: 2412 MHz
> ath9k: Attach a VAP of type: 2
> ath9k: BSS Changed PREAMBLE 0
> ath9k: BSS Changed CTS PROT 0
> ath9k: Set HW RX filter: 0x0
> ath9k: Set channel: 2412 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2412 MHz) -> (2412 MHz), chanwidth: 0
> ath9k: Configure tx [queue/halq] [0/3],  aifs: 2, cw_min: 31, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [1/2],  aifs: 2, cw_min: 31, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [2/1],  aifs: 2, cw_min: 31, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [3/0],  aifs: 2, cw_min: 31, cw_max:
> 1023, txop: 0
> ath9k: Set HW RX filter: 0x0
> ath9k: Set HW RX filter: 0x0
> ath9k: Set HW RX filter: 0x0
> ath9k: Set HW RX filter: 0x10
> ath9k: Set channel: 2412 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2412 MHz) -> (2412 MHz), chanwidth: 0
> ath9k: Set channel: 2417 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2412 MHz) -> (2417 MHz), chanwidth: 0
> ath9k: Set channel: 2422 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2417 MHz) -> (2422 MHz), chanwidth: 0
> ath9k: Set channel: 2427 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2422 MHz) -> (2427 MHz), chanwidth: 0
> ath9k: Set channel: 2432 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2427 MHz) -> (2432 MHz), chanwidth: 0
> ath9k: Set channel: 2437 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2432 MHz) -> (2437 MHz), chanwidth: 0
> ath9k: Set channel: 2442 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2437 MHz) -> (2442 MHz), chanwidth: 0
> ath9k: Set channel: 2447 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2442 MHz) -> (2447 MHz), chanwidth: 0
> ath9k: Set channel: 2452 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2447 MHz) -> (2452 MHz), chanwidth: 0
> ath9k: Set channel: 2457 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2452 MHz) -> (2457 MHz), chanwidth: 0
> ath9k: Set channel: 2462 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2457 MHz) -> (2462 MHz), chanwidth: 0
> ath9k: Set channel: 2412 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2462 MHz) -> (2412 MHz), chanwidth: 0
> ath9k: Set HW RX filter: 0x0
> ath9k: Set channel: 2462 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2412 MHz) -> (2462 MHz), chanwidth: 0
> ath9k: RX filter 0x0 bssid 80ca2e68 aid 0x0
> ath9k: Set channel: 2462 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 0
> ath9k: RX filter 0x0 bssid 80ca2e68 aid 0x0
> ath9k: Configure tx [queue/halq] [0/3],  aifs: 2, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [1/2],  aifs: 2, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [2/1],  aifs: 2, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [3/0],  aifs: 2, cw_min: 15, cw_max:
> 1023, txop: 0
> wlan0: authenticate with AP 81e0fce8
> wlan0: authenticated
> wlan0: associate with AP 81e0fce8
> wlan0: RX AssocResp from 8179a02a (capab=0x431 status=0 aid=1)
> wlan0: associated
> ath9k: Choosing rate table for mode: 10
> ath9k: Configure tx [queue/halq] [2/1],  aifs: 3, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [3/0],  aifs: 7, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [1/2],  aifs: 2, cw_min: 7, cw_max:
> 15, txop: 94
> ath9k: Configure tx [queue/halq] [0/3],  aifs: 2, cw_min: 3, cw_max: 7, txop: 47
> ath9k: Set channel: 2462 MHz
> ath9k: tx chmask: 5, rx chmask: 5
> ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 1
> ath9k: BSS Changed PREAMBLE 1
> ath9k: BSS Changed ASSOC 1
> ath9k: Bss Info ASSOC 1, bssid: 80ca2e68
> eth1: link down
> wlan0: deauthenticating by local choice (reason=3)
> ath9k: Set channel: 2462 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 0
> ath9k: BSS Changed PREAMBLE 0
> ath9k: BSS Changed CTS PROT 0
> ath9k: BSS Changed ASSOC 0
> ath9k: Bss Info DISSOC
> ath9k: Set HW RX filter: 0x0
> ath9k: Set HW RX filter: 0x0
> ath9k: Detach Interface
> ath9k: Cleaning up
> ath9k: Driver halt
> ar71xx: pll_reg 0xb8050018: 0x13000a44
> eth1: link up (100Mbps/Full duplex)
> ath9k: Starting driver with initial channel: 2462 MHz
> ath9k: Attach a VAP of type: 2
> ath9k: BSS Changed PREAMBLE 0
> ath9k: BSS Changed CTS PROT 0
> ath9k: Set HW RX filter: 0x0
> ath9k: Set channel: 2462 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 0
> ath9k: Configure tx [queue/halq] [0/3],  aifs: 2, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [1/2],  aifs: 2, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [2/1],  aifs: 2, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [3/0],  aifs: 2, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Set HW RX filter: 0x0
> ath9k: Set HW RX filter: 0x0
> ath9k: Set HW RX filter: 0x10
> ath9k: Set HW RX filter: 0x0
> ath9k: Set channel: 2412 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2462 MHz) -> (2412 MHz), chanwidth: 0
> ath9k: Set channel: 2417 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2412 MHz) -> (2417 MHz), chanwidth: 0
> ath9k: Set channel: 2422 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2417 MHz) -> (2422 MHz), chanwidth: 0
> ath9k: Set HW RX filter: 0x0
> ath9k: Set channel: 2427 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2422 MHz) -> (2427 MHz), chanwidth: 0
> device wlan0 entered promiscuous mode
> ath9k: Set HW RX filter: 0x1
> ath9k: Set HW RX filter: 0x1
> ath9k: Set channel: 2432 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2427 MHz) -> (2432 MHz), chanwidth: 0
> ath9k: Set channel: 2437 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2432 MHz) -> (2437 MHz), chanwidth: 0
> ath9k: Set channel: 2442 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2437 MHz) -> (2442 MHz), chanwidth: 0
> ath9k: Set channel: 2447 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2442 MHz) -> (2447 MHz), chanwidth: 0
> ath9k: Set channel: 2452 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2447 MHz) -> (2452 MHz), chanwidth: 0
> ath9k: Set channel: 2457 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2452 MHz) -> (2457 MHz), chanwidth: 0
> ath9k: Set channel: 2462 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2457 MHz) -> (2462 MHz), chanwidth: 0
> ath9k: Set channel: 2462 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 0
> ath9k: Set HW RX filter: 0x1
> ath9k: Set HW RX filter: 0x11
> ath9k: Set channel: 2412 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2462 MHz) -> (2412 MHz), chanwidth: 0
> eth1: link down
> ath9k: Set channel: 2417 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2412 MHz) -> (2417 MHz), chanwidth: 0
> ath9k: Set channel: 2422 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2417 MHz) -> (2422 MHz), chanwidth: 0
> ath9k: Set channel: 2427 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2422 MHz) -> (2427 MHz), chanwidth: 0
> ath9k: Set channel: 2432 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2427 MHz) -> (2432 MHz), chanwidth: 0
> ath9k: Set channel: 2437 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2432 MHz) -> (2437 MHz), chanwidth: 0
> ath9k: Set channel: 2442 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2437 MHz) -> (2442 MHz), chanwidth: 0
> ath9k: Set channel: 2447 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2442 MHz) -> (2447 MHz), chanwidth: 0
> ath9k: Set channel: 2452 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2447 MHz) -> (2452 MHz), chanwidth: 0
> ath9k: Set channel: 2457 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2452 MHz) -> (2457 MHz), chanwidth: 0
> ath9k: Set channel: 2462 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2457 MHz) -> (2462 MHz), chanwidth: 0
> ath9k: Set channel: 2462 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 0
> ath9k: Set HW RX filter: 0x1
> ath9k: Set channel: 2462 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 0
> ath9k: RX filter 0x0 bssid 80ca2e68 aid 0x0
> ath9k: Set channel: 2462 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 0
> ath9k: RX filter 0x0 bssid 80ca2e68 aid 0x0
> ath9k: Configure tx [queue/halq] [0/3],  aifs: 2, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [1/2],  aifs: 2, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [2/1],  aifs: 2, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [3/0],  aifs: 2, cw_min: 15, cw_max:
> 1023, txop: 0
> wlan0: authenticate with AP 81e0fce8
> wlan0: authenticated
> wlan0: associate with AP 81e0fce8
> wlan0: RX AssocResp from 8140c02a (capab=0x431 status=0 aid=1)
> wlan0: associated
> ath9k: Choosing rate table for mode: 10
> ath9k: Configure tx [queue/halq] [2/1],  aifs: 3, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [3/0],  aifs: 7, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [1/2],  aifs: 2, cw_min: 7, cw_max:
> 15, txop: 94
> ath9k: Configure tx [queue/halq] [0/3],  aifs: 2, cw_min: 3, cw_max: 7, txop: 47
> ath9k: Set channel: 2462 MHz
> ath9k: tx chmask: 5, rx chmask: 5
> ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 1
> ath9k: BSS Changed PREAMBLE 1
> ath9k: BSS Changed ASSOC 1
> ath9k: Bss Info ASSOC 1, bssid: 80ca2e68
>

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

* [ath9k-devel] ar9102 client mode unstable, ping times climb and  climb
  2009-02-15  3:14     ` Stephen Gutknecht
@ 2009-02-15 19:31       ` austinxxh-ath9k at yahoo.com
  2009-02-23  0:23         ` Stephen Gutknecht
  0 siblings, 1 reply; 9+ messages in thread
From: austinxxh-ath9k at yahoo.com @ 2009-02-15 19:31 UTC (permalink / raw)
  To: ath9k-devel

I can not even associate my ath9k(AR9130) to a Trendnet652 under n-mode, g/n mode is OK but ath9k client can only get 1Mbps(so, it's likely the g-mode was used). I have added ieee80211n to hostapd and ht_capab was added there as well. 

root at OpenWrt:/# iwlist wlan0 scan
wlan0???? Scan completed :
????????? Cell 01 - Address: 00:14:D1:5D:6C:1B
??????????????????? ESSID:"tew652"
??????????????????? Mode:Master
??????????????????? Channel:11
??????????????????? Frequency:2.462 GHz (Channel 11)
??????????????????? Quality=24/100? Signal level:-84 dBm? 
??????????????????? Encryption key:off
??????????????????? IE: Unknown: 0006746577363532
??????????????????? IE: Unknown: 010882848B960C121824
??????????????????? IE: Unknown: 03010B
??????????????????? IE: Unknown: 0706555320010B1B
??????????????????? IE: Unknown: 200100
??????????????????? IE: Unknown: 2A0100
??????????????????? IE: Unknown: 32043048606C
??????????????????? IE: Unknown: DD1E00904C334E101BFFFF000000000000000000000000000000000000000000
??????????????????? IE: Unknown: 2D1A4E101BFFFF000000000000000000000000000000000000000000
??????????????????? IE: Unknown: DD1A00904C340B071900000000000000000000000000000000000000
??????????????????? IE: Unknown: 3D160B071900000000000000000000000000000000000000
??????????????????? IE: Unknown: DD0900037F01010000FF7F
??????????????????? Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
????????????????????????????? 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
????????????????????????????? 48 Mb/s; 54 Mb/s
??????????????????? Extra:tsf=00000000083e4eb4
??????????????????? Extra: Last beacon: 3100ms ago
root at OpenWrt:/# iwconfig wlan0
wlan0???? IEEE 802.11abgn? ESSID:"tew652"? 
????????? Mode:Managed? Frequency:2.462 GHz? Access Point: Not-Associated?? 
????????? Tx-Power=20 dBm?? 
????????? Retry min limit:7?? RTS thr:off?? Fragment thr=2352 B?? 
????????? Encryption key:off
????????? Power Management:off
????????? Link Quality:0? Signal level:0? Noise level:0
????????? Rx invalid nwid:0? Rx invalid crypt:0? Rx invalid frag:0
????????? Tx excessive retries:0? Invalid misc:0?? Missed beacon:0

root at OpenWrt:/# dmesg
Linux version 2.6.28.5 (xxiao at machinexx.localdomain) (gcc version 4.1.2) #1 Sun Feb 15 12:24:29 CST 2009
prom: fw_arg0=00000002, fw_arg1=80050020, fw_arg2=80050000, fw_arg3=0000001b
MyLoader: sysp=00000000, boardp=00000000, parts=3c011fff
console [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR7161 rev 2 (id:0xaa), CPU:680.000 MHz, AHB:85.000 MHz, DDR:170.000 MHz
Determined physical RAM map:
?memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
? Normal?? 0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
??? 0: 0x00000000 -> 0x00002000
On node 0 totalpages: 8192
free_area_init_node: node 0, pgdat 80275800, node_mem_map 81000000
? Normal zone: 64 pages used for memmap
? Normal zone: 0 pages reserved
? Normal zone: 8128 pages, LIFO batch:0
? Movable zone: 0 pages used for memmap
Built 1 zonelists in Zone order, mobility grouping on.? Total pages: 8128
Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 init=/etc/preinit
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=0007c4f2
Readback ErrCtl register=0007c4f2
PID hash table entries: 128 (order: 7, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 29716k/32768k available (1816k kernel code, 3052k reserved, 326k data, 132k init, 0k highmem)
SLUB: Genslabs=6, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 452.19 BogoMIPS (lpj=2260992)
Mount-cache hash table entries: 512
net_namespace: 480 bytes
NET: Registered protocol family 16
MIPS: machine is Ubiquiti LS-SR71
registering PCI controller with io_map_base unset
pci 0000:00:00.0: reg 10 32bit mmio: [0x000000-0xfffffff]
pci 0000:00:00.0: reg 14 io port: [0x00-0xff]
pci 0000:00:00.0: supports D1 D2
pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot
pci 0000:00:00.0: PME# disabled
pci 0000:00:11.0: reg 10 32bit mmio: [0x000000-0x00ffff]
pci 0000:00:11.0: PME# supported from D0 D3hot
pci 0000:00:11.0: PME# disabled
PCI: mapping irq 32 to pin1 at 0000:00:11.0
Switched to high resolution mode on CPU 0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)? ?? 2001-2006 Red Hat, Inc.
yaffs Feb 15 2009 12:21:26 Installing. 
msgmni has been set to 58
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console handover: boot [early0] -> real [ttyS0]
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xb9000000, irq 4
eth0: connected to PHY at 0:01 [uid=00221619, driver=Generic PHY]
Atheros AR71xx SPI Controller driver version 0.2.2
m25p80 spi0.0: m25p64 (8192 Kbytes)
spi0.0: searching for MyLoader partition table at offset 0x10000
spi0.0: searching for MyLoader partition table at offset 0x20000
spi0.0: searching for MyLoader partition table at offset 0x30000
spi0.0: searching for MyLoader partition table at offset 0x40000
spi0.0: no MyLoader partition table found
Searching for RedBoot partition table in spi0.0 at offset 0x7e0000
Searching for RedBoot partition table in spi0.0 at offset 0x7f0000
5 RedBoot partitions found on MTD device spi0.0
Creating 5 MTD partitions on "spi0.0":
0x00000000-0x00030000 : "RedBoot"
0x00030000-0x00330000 : "kernel"
0x00330000-0x007f0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=5B0000, len=240000 
0x005b0000-0x007f0000 : "rootfs_data"
0x007f0000-0x007ff000 : "FIS directory"
0x007ff000-0x00800000 : "RedBoot config"
Atheros AR71xx hardware watchdog driver version 0.1.0
ar71xx-wdt: timeout=15 secs (max=50)
TCP vegas registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 132k freed
Please be patient, while OpenWrt loads ...
Algorithmics/MIPS FPU Emulator v1.5
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs
ar71xx: pll_reg 0xb8050010: 0x1099
eth0: link up (100Mbps/Full duplex)
cfg80211: Using static regulatory domain info
cfg80211: Regulatory domain: US
??????? (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
??????? (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
??????? (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
??????? (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
??????? (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
??????? (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
??????? (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
cfg80211: Calling CRDA for country: US
PCI: Enabling device 0000:00:11.0 (0000 -> 0002)
phy0: Selected rate control algorithm 'ath9k_rate_control'
cfg80211: Calling CRDA for country: US
Registered led device: ath9k-phy0::radio
Registered led device: ath9k-phy0::assoc
Registered led device: ath9k-phy0::tx
Registered led device: ath9k-phy0::rx
phy0: Atheros AR9160 MAC/BB Rev:0 AR5133 RF Rev:b0: mem=0xb0000000, irq=32
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
nf_conntrack version 0.5.0 (512 buckets, 2048 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel paramater, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
wlan0: authenticate with AP 81e434e8
wlan0: authenticated
wlan0: associate with AP 81e434e8
wlan0: RX AssocResp from 81f9602a (capab=0x421 status=10 aid=10615)
wlan0: AP denied association (code=10)
wlan0: associate with AP 81e434e8
wlan0: deauthenticated (Reason: 9)
wlan0: direct probe to AP 81e434e8 try 1
wlan0 direct probe responded
wlan0: authenticate with AP 81e434e8
wlan0: authenticated
wlan0: associate with AP 81e434e8
wlan0: RX AssocResp from 81fb602a (capab=0x421 status=10 aid=10615)
wlan0: AP denied association (code=10)
wlan0: association with AP 81e434e8 timed out
ar71xx-wdt: enabling watchdog timer
root at OpenWrt:/# 


--- On Sat, 2/14/09, Stephen Gutknecht (hilltx) <stephen@hilltx.com> wrote:
From: Stephen Gutknecht (hilltx) <stephen@hilltx.com>
Subject: Re: [ath9k-devel] ar9102 client mode unstable, ping times climb and  climb
To: "Sujith" <m.sujith@gmail.com>
Cc: "ath9k-devel at lists.ath9k.org" <ath9k-devel@lists.ath9k.org>
Date: Saturday, February 14, 2009, 9:14 PM

Can someone please try client (station) mode on an AHB bus AP81
router?  The slower MIPS CPU or even how we initialize the
ar9102/ar9103 chips could be factors.

if you are a serious ath9k developer (the ones with the Linux Kernel
skills) and need a router, please contact me.... I will personally
send you a router for free to advance the Linux router cause.  OpenWRT
is the real deal, please get involved.  Being stuck on binary drivers
with a 3 or 9 year old kernel is impacting greater society.  We want
to be _ahead_ of the technology curve - this time.

  Stephen Gutknecht
  President, Austin Texas Linux Users Group (Austin LUG)



On Fri, Feb 6, 2009 at 1:20 AM, Stephen Gutknecht (hilltx)
<stephen@hilltx.com> wrote:
>> The post at pastebin has expired...
>>
>> Sujith
>
>
> Yha, sorry about that; Ok, I'm going to start this over and focus on
> the retrain and rate issues.  Both routers are running the same
> chipset with an ar9102, the AP using proprietary madwifi and the
> client running ath9k.
>
> Router / AP:  D-Link DIR-615 rev C1 running firmware 3.01. Mode:
> 802.11n only. Channel: 2.462 Ghz channel 11.  Channel width: Auto
> 20/40 Mhz. Encryption: WPA2/AES.  wireless chip: ar9102
>
> Router / client: Trendnet TEW-652BRP hardware running OpenWRT trunk
> with compat-wireless 2009-02-02 on Linux kernel 2.6.28.2.  wireless
> chip: ar9102
>
> "iwlist wlan0 scan" output for this AP:
>
>          Cell 07 - Address: 00:14:D1:5B:22:59
>                    ESSID:"DLINK_DIR-615_C1_STOCK_WPA_AES"
>                    Mode:Master
>                    Channel:11
>                    Frequency:2.462 GHz (Channel 11)
>                    Quality=100/100  Signal level:-42 dBm
>                    Encryption key:on
>                    IE: Unknown:
> 001E444C494E4B5F4449522D3631355F43315F53544F434B5F5750415F414553
>                    IE: Unknown: 010882848B960C121824
>                    IE: Unknown: 03010B
>                    IE: Unknown: 0706555320010B1B
>                    IE: Unknown: 200100
>                    IE: IEEE 802.11i/WPA2 Version 1
>                        Group Cipher : CCMP
>                        Pairwise Ciphers (1) : CCMP
>                        Authentication Suites (1) : PSK
>                    IE: Unknown: 2A0100
>                    IE: Unknown: 32043048606C
>                    IE: Unknown:
> DD180050F2020101070003A4000027A4000042435E0062322F00
>                    IE: Unknown:
> DD1E00904C334E101BFFFF000000000000000000000000000000000000000000
>                    IE: Unknown:
> 2D1A4E101BFFFF000000000000000000000000000000000000000000
>                    IE: Unknown:
> DD1A00904C340B071900000000000000000000000000000000000000
>                    IE: Unknown:
> 3D160B071900000000000000000000000000000000000000
>                    IE: Unknown: DD0900037F01010000FF7F
>                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
>                              9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
>                              48 Mb/s; 54 Mb/s
>                    Extra:tsf=000000089a755bf0
>                    Extra: Last beacon: 130ms ago
>
> PROBLEM:  Only getting connected at 1Mb/s rate in client mode with ath9k.
>
> root at OpenWrt:/# iwconfig wlan0
> wlan0     IEEE 802.11bgn  ESSID:"DLINK_DIR-615_C1_STOCK_WPA_AES"
>          Mode:Managed  Frequency:2.462 GHz  Access Point:
00:14:D1:5B:22:59
>          Bit Rate=1 Mb/s   Tx-Power=20 dBm
>          Retry min limit:7   RTS thr:off   Fragment thr=2352 B
>          Encryption key:6371-0346-209D-C4FE-63B2-BE0E-4EDF-09E0 [2]
> Security mode:open
>          Power Management:off
>          Link Quality=100/100  Signal level:-37 dBm
>          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
>
> I unloaded ath9k, then loaded ath9k driver in debug mode on the
> problem client ar9102 router.  Here is the dmesg output after the
> unload/load.
>
> ath9k: Driver unloaded
> ath9k: Rate:  1Mbps, ratecode: 27
> ath9k: Rate:  2Mbps, ratecode: 26
> ath9k: Rate:  5Mbps, ratecode: 25
> ath9k: Rate: 11Mbps, ratecode: 24
> ath9k: Rate:  6Mbps, ratecode: 11
> ath9k: Rate:  9Mbps, ratecode: 15
> ath9k: Rate: 12Mbps, ratecode: 10
> ath9k: Rate: 18Mbps, ratecode: 14
> ath9k: Rate: 24Mbps, ratecode:  9
> ath9k: Rate: 36Mbps, ratecode: 13
> ath9k: Rate: 48Mbps, ratecode:  8
> ath9k: Rate: 54Mbps, ratecode: 12
> ath9k: Rate:  6Mbps, ratecode: 11
> ath9k: Rate:  9Mbps, ratecode: 15
> ath9k: Rate: 12Mbps, ratecode: 10
> ath9k: Rate: 18Mbps, ratecode: 14
> ath9k: Rate: 24Mbps, ratecode:  9
> ath9k: Rate: 36Mbps, ratecode: 13
> ath9k: Rate: 48Mbps, ratecode:  8
> ath9k: Rate: 54Mbps, ratecode: 12
> ath9k: tx DMA: 512 buffers 1 desc/buf
> ath9k: tx DMA map: a1f20000 (73728) -> 1f20000 (73728)
> ath9k: beacon DMA: 1 buffers 1 desc/buf
> ath9k: beacon DMA map: a1e6e000 (144) -> 1e6e000 (144)
> ath9k: cachelsz 32 rxbufsize 3872
> ath9k: rx DMA: 512 buffers 1 desc/buf
> ath9k: rx DMA map: a1fa0000 (73728) -> 1fa0000 (73728)
> phy1: Selected rate control algorithm 'ath9k_rate_control'
> cfg80211: Calling CRDA for country: US
> phy1: Atheros AR9100 MAC/BB Rev:0, AR2122 RF Rev:a1, mem=0xb80c0000, irq=2
> ath9k: Starting driver with initial channel: 2412 MHz
> ath9k: Attach a VAP of type: 2
> ath9k: BSS Changed PREAMBLE 0
> ath9k: BSS Changed CTS PROT 0
> ath9k: Set HW RX filter: 0x0
> ath9k: Set channel: 2412 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2412 MHz) -> (2412 MHz), chanwidth: 0
> ath9k: Configure tx [queue/halq] [0/3],  aifs: 2, cw_min: 31, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [1/2],  aifs: 2, cw_min: 31, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [2/1],  aifs: 2, cw_min: 31, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [3/0],  aifs: 2, cw_min: 31, cw_max:
> 1023, txop: 0
> ath9k: Set HW RX filter: 0x0
> ath9k: Set HW RX filter: 0x0
> ath9k: Set HW RX filter: 0x0
> ath9k: Set HW RX filter: 0x10
> ath9k: Set channel: 2412 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2412 MHz) -> (2412 MHz), chanwidth: 0
> ath9k: Set channel: 2417 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2412 MHz) -> (2417 MHz), chanwidth: 0
> ath9k: Set channel: 2422 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2417 MHz) -> (2422 MHz), chanwidth: 0
> ath9k: Set channel: 2427 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2422 MHz) -> (2427 MHz), chanwidth: 0
> ath9k: Set channel: 2432 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2427 MHz) -> (2432 MHz), chanwidth: 0
> ath9k: Set channel: 2437 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2432 MHz) -> (2437 MHz), chanwidth: 0
> ath9k: Set channel: 2442 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2437 MHz) -> (2442 MHz), chanwidth: 0
> ath9k: Set channel: 2447 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2442 MHz) -> (2447 MHz), chanwidth: 0
> ath9k: Set channel: 2452 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2447 MHz) -> (2452 MHz), chanwidth: 0
> ath9k: Set channel: 2457 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2452 MHz) -> (2457 MHz), chanwidth: 0
> ath9k: Set channel: 2462 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2457 MHz) -> (2462 MHz), chanwidth: 0
> ath9k: Set channel: 2412 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2462 MHz) -> (2412 MHz), chanwidth: 0
> ath9k: Set HW RX filter: 0x0
> ath9k: Set channel: 2462 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2412 MHz) -> (2462 MHz), chanwidth: 0
> ath9k: RX filter 0x0 bssid 80ca2e68 aid 0x0
> ath9k: Set channel: 2462 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 0
> ath9k: RX filter 0x0 bssid 80ca2e68 aid 0x0
> ath9k: Configure tx [queue/halq] [0/3],  aifs: 2, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [1/2],  aifs: 2, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [2/1],  aifs: 2, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [3/0],  aifs: 2, cw_min: 15, cw_max:
> 1023, txop: 0
> wlan0: authenticate with AP 81e0fce8
> wlan0: authenticated
> wlan0: associate with AP 81e0fce8
> wlan0: RX AssocResp from 8179a02a (capab=0x431 status=0 aid=1)
> wlan0: associated
> ath9k: Choosing rate table for mode: 10
> ath9k: Configure tx [queue/halq] [2/1],  aifs: 3, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [3/0],  aifs: 7, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [1/2],  aifs: 2, cw_min: 7, cw_max:
> 15, txop: 94
> ath9k: Configure tx [queue/halq] [0/3],  aifs: 2, cw_min: 3, cw_max: 7,
txop: 47
> ath9k: Set channel: 2462 MHz
> ath9k: tx chmask: 5, rx chmask: 5
> ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 1
> ath9k: BSS Changed PREAMBLE 1
> ath9k: BSS Changed ASSOC 1
> ath9k: Bss Info ASSOC 1, bssid: 80ca2e68
> eth1: link down
> wlan0: deauthenticating by local choice (reason=3)
> ath9k: Set channel: 2462 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 0
> ath9k: BSS Changed PREAMBLE 0
> ath9k: BSS Changed CTS PROT 0
> ath9k: BSS Changed ASSOC 0
> ath9k: Bss Info DISSOC
> ath9k: Set HW RX filter: 0x0
> ath9k: Set HW RX filter: 0x0
> ath9k: Detach Interface
> ath9k: Cleaning up
> ath9k: Driver halt
> ar71xx: pll_reg 0xb8050018: 0x13000a44
> eth1: link up (100Mbps/Full duplex)
> ath9k: Starting driver with initial channel: 2462 MHz
> ath9k: Attach a VAP of type: 2
> ath9k: BSS Changed PREAMBLE 0
> ath9k: BSS Changed CTS PROT 0
> ath9k: Set HW RX filter: 0x0
> ath9k: Set channel: 2462 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 0
> ath9k: Configure tx [queue/halq] [0/3],  aifs: 2, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [1/2],  aifs: 2, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [2/1],  aifs: 2, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [3/0],  aifs: 2, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Set HW RX filter: 0x0
> ath9k: Set HW RX filter: 0x0
> ath9k: Set HW RX filter: 0x10
> ath9k: Set HW RX filter: 0x0
> ath9k: Set channel: 2412 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2462 MHz) -> (2412 MHz), chanwidth: 0
> ath9k: Set channel: 2417 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2412 MHz) -> (2417 MHz), chanwidth: 0
> ath9k: Set channel: 2422 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2417 MHz) -> (2422 MHz), chanwidth: 0
> ath9k: Set HW RX filter: 0x0
> ath9k: Set channel: 2427 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2422 MHz) -> (2427 MHz), chanwidth: 0
> device wlan0 entered promiscuous mode
> ath9k: Set HW RX filter: 0x1
> ath9k: Set HW RX filter: 0x1
> ath9k: Set channel: 2432 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2427 MHz) -> (2432 MHz), chanwidth: 0
> ath9k: Set channel: 2437 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2432 MHz) -> (2437 MHz), chanwidth: 0
> ath9k: Set channel: 2442 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2437 MHz) -> (2442 MHz), chanwidth: 0
> ath9k: Set channel: 2447 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2442 MHz) -> (2447 MHz), chanwidth: 0
> ath9k: Set channel: 2452 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2447 MHz) -> (2452 MHz), chanwidth: 0
> ath9k: Set channel: 2457 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2452 MHz) -> (2457 MHz), chanwidth: 0
> ath9k: Set channel: 2462 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2457 MHz) -> (2462 MHz), chanwidth: 0
> ath9k: Set channel: 2462 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 0
> ath9k: Set HW RX filter: 0x1
> ath9k: Set HW RX filter: 0x11
> ath9k: Set channel: 2412 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2462 MHz) -> (2412 MHz), chanwidth: 0
> eth1: link down
> ath9k: Set channel: 2417 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2412 MHz) -> (2417 MHz), chanwidth: 0
> ath9k: Set channel: 2422 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2417 MHz) -> (2422 MHz), chanwidth: 0
> ath9k: Set channel: 2427 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2422 MHz) -> (2427 MHz), chanwidth: 0
> ath9k: Set channel: 2432 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2427 MHz) -> (2432 MHz), chanwidth: 0
> ath9k: Set channel: 2437 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2432 MHz) -> (2437 MHz), chanwidth: 0
> ath9k: Set channel: 2442 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2437 MHz) -> (2442 MHz), chanwidth: 0
> ath9k: Set channel: 2447 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2442 MHz) -> (2447 MHz), chanwidth: 0
> ath9k: Set channel: 2452 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2447 MHz) -> (2452 MHz), chanwidth: 0
> ath9k: Set channel: 2457 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2452 MHz) -> (2457 MHz), chanwidth: 0
> ath9k: Set channel: 2462 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2457 MHz) -> (2462 MHz), chanwidth: 0
> ath9k: Set channel: 2462 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 0
> ath9k: Set HW RX filter: 0x1
> ath9k: Set channel: 2462 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 0
> ath9k: RX filter 0x0 bssid 80ca2e68 aid 0x0
> ath9k: Set channel: 2462 MHz
> ath9k: tx chmask: 1, rx chmask: 1
> ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 0
> ath9k: RX filter 0x0 bssid 80ca2e68 aid 0x0
> ath9k: Configure tx [queue/halq] [0/3],  aifs: 2, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [1/2],  aifs: 2, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [2/1],  aifs: 2, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [3/0],  aifs: 2, cw_min: 15, cw_max:
> 1023, txop: 0
> wlan0: authenticate with AP 81e0fce8
> wlan0: authenticated
> wlan0: associate with AP 81e0fce8
> wlan0: RX AssocResp from 8140c02a (capab=0x431 status=0 aid=1)
> wlan0: associated
> ath9k: Choosing rate table for mode: 10
> ath9k: Configure tx [queue/halq] [2/1],  aifs: 3, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [3/0],  aifs: 7, cw_min: 15, cw_max:
> 1023, txop: 0
> ath9k: Configure tx [queue/halq] [1/2],  aifs: 2, cw_min: 7, cw_max:
> 15, txop: 94
> ath9k: Configure tx [queue/halq] [0/3],  aifs: 2, cw_min: 3, cw_max: 7,
txop: 47
> ath9k: Set channel: 2462 MHz
> ath9k: tx chmask: 5, rx chmask: 5
> ath9k: (2462 MHz) -> (2462 MHz), chanwidth: 1
> ath9k: BSS Changed PREAMBLE 1
> ath9k: BSS Changed ASSOC 1
> ath9k: Bss Info ASSOC 1, bssid: 80ca2e68
>
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20090215/db57bf9e/attachment-0001.html 

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

* [ath9k-devel] ar9102 client mode unstable, ping times climb and  climb
  2009-02-15 19:31       ` austinxxh-ath9k at yahoo.com
@ 2009-02-23  0:23         ` Stephen Gutknecht
  2009-02-23 15:40           ` Sujith
  0 siblings, 1 reply; 9+ messages in thread
From: Stephen Gutknecht @ 2009-02-23  0:23 UTC (permalink / raw)
  To: ath9k-devel

On Sun, Feb 15, 2009 at 11:31 AM,  <austinxxh-ath9k@yahoo.com> wrote:
> I can not even associate my ath9k(AR9130) to a Trendnet652 under n-mode, g/n
> mode is OK but ath9k client can only get 1Mbps(so, it's likely the g-mode
> was used). I have added ieee80211n to hostapd and ht_capab was added there
> as well.


The ping time climbing seems fixed.  Thank you.  I assume it was this
change related to the RTC clock of AR9100.  Reference change:

http://git.kernel.org/?p=linux/kernel/git/linville/wireless-testing.git;a=commitdiff;h=0cee9809976b35d7bd9eeb6bb7f32b8ac3fcd86d

On kernel 2.6.28.6 with compat-wireless 2009-02-19.  All who have put
the AR9102 in client-mode seem to watch it quickly degrade to 0 or
1Mbps rate... which I do not see on a laptop with AR5418 MiniPCI card
using same compat-wireless.

Sujith or other developer tried ath9k on AP81 platform routers in client mode?

Thank you.

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

* [ath9k-devel] ar9102 client mode unstable, ping times climb and  climb
  2009-02-23  0:23         ` Stephen Gutknecht
@ 2009-02-23 15:40           ` Sujith
  2009-02-23 16:28             ` Stephen Gutknecht
  0 siblings, 1 reply; 9+ messages in thread
From: Sujith @ 2009-02-23 15:40 UTC (permalink / raw)
  To: ath9k-devel

Stephen Gutknecht (hilltx) wrote:
> The ping time climbing seems fixed.  Thank you.  I assume it was this
> change related to the RTC clock of AR9100.  Reference change:
> 
> http://git.kernel.org/?p=linux/kernel/git/linville/wireless-testing.git;a=commitdiff;h=0cee9809976b35d7bd9eeb6bb7f32b8ac3fcd86d
> 
> On kernel 2.6.28.6 with compat-wireless 2009-02-19.  All who have put
> the AR9102 in client-mode seem to watch it quickly degrade to 0 or
> 1Mbps rate... which I do not see on a laptop with AR5418 MiniPCI card
> using same compat-wireless.
> 
> Sujith or other developer tried ath9k on AP81 platform routers in client mode?
> 

I haven't tried using ath9k on routers. Do you use OpenWrt ?

Sujith
-- 
http://sujith-m.blogspot.com

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

* [ath9k-devel] ar9102 client mode unstable, ping times climb and  climb
  2009-02-23 15:40           ` Sujith
@ 2009-02-23 16:28             ` Stephen Gutknecht
  0 siblings, 0 replies; 9+ messages in thread
From: Stephen Gutknecht @ 2009-02-23 16:28 UTC (permalink / raw)
  To: ath9k-devel

On Mon, Feb 23, 2009 at 7:40 AM, Sujith <m.sujith@gmail.com> wrote:
> Stephen Gutknecht (hilltx) wrote:
>> The ping time climbing seems fixed.  Thank you.  I assume it was this
>> change related to the RTC clock of AR9100.  Reference change:
>>
>> http://git.kernel.org/?p=linux/kernel/git/linville/wireless-testing.git;a=commitdiff;h=0cee9809976b35d7bd9eeb6bb7f32b8ac3fcd86d
>>
>> On kernel 2.6.28.6 with compat-wireless 2009-02-19.  All who have put
>> the AR9102 in client-mode seem to watch it quickly degrade to 0 or
>> 1Mbps rate... which I do not see on a laptop with AR5418 MiniPCI card
>> using same compat-wireless.
>>
>> Sujith or other developer tried ath9k on AP81 platform routers in client mode?
>>
>
> I haven't tried using ath9k on routers. Do you use OpenWrt ?


Yes.  For OpenWRT, I have been attempting to identify and locate every
retail router that uses AR9130/AR9132 paired with
AR9102/AR9103/AR9104/AR9106 chip.  I speculate this is known
internally at Atheros as the "Howl".  I have compiled a list of known
retail routers: http://wiki.openwrt.org/AtherosAR9100

The GPL downloads for these routers includes binary kernel 2.6.15
madwifi customized by Atheros for which I have been unable to find
complete open source code.  The madwifi drivers emit these messages:

ath_ahb: 0.9.4.5 (Atheros/multi-bss)
Howl Revision ID 0xb5
wifi0: Atheros AR9100 WiSoC: mem=0xb80c0000, irq=2

Some routers also indicate "Howl Revision ID 0xb4" we have encountered.

These routers are MIPS CPU instruction set and use the AHB bus for the
ar910x chips.  We have AP mode working with ath9k, but it is erratic
and retrains rate every few seconds.  Even if the retrains stop for a
while, relatively slow throughput (1.2MB/s WAN to LAN is best I can
achieve over wireless with 2009-02-19 compat-wireless).  Client mode
consistently drops to 1Mbps rate immediately after association as
shown by iwconfig (have tried against both Atheros and Broadcom N and
G routers).

Currently, OpenWRT is fully installable (no need to open hardware) on:

D-Link DIR-615 revision C1 (ar9102)
Trendnet TEW-632BRP (ar9102)
Trendnet TEW-652BRP (ar9102)
Planex MZK-W04NU (ar9103)

There are other brands and models of the commercialized AP81 platform
that we have been able to run OpenWRT with the addition of hardware
access to the internal console serial port.  Work is still underway to
assimilate them fully.

I can only theorize that there are possible issues with ath9k on the
slower MIPS CPU environment, some special registers these AHB chips
require initialized, or ??.  Note that CPU usage itself has been
resolved as an issue, we do not see it go beyond 10% usage (there was
an issue we had earlier with LED, but OpenWRT has patched to disable
this for now).

If there is any way I can help you familiarize yourself with OpenWRT
compilation environment, please let me know. If you would like
specific debug tests to be performed, please provide instructions.
Thank you for your attention on the situation.

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

end of thread, other threads:[~2009-02-23 16:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-03 23:08 [ath9k-devel] ar9102 client mode unstable, ping times climb and climb Stephen Gutknecht
2009-02-05  1:51 ` Sujith
2009-02-06  7:20   ` Stephen Gutknecht
2009-02-15  3:14     ` Stephen Gutknecht
2009-02-15 19:31       ` austinxxh-ath9k at yahoo.com
2009-02-23  0:23         ` Stephen Gutknecht
2009-02-23 15:40           ` Sujith
2009-02-23 16:28             ` Stephen Gutknecht
2009-02-06 21:48   ` Stephen Gutknecht

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.