> 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.

r...@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@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Reply via email to