All of lore.kernel.org
 help / color / mirror / Atom feed
* [ath9k-devel] Why not running at n speed?
@ 2009-02-03  9:40 Tamas Selmeci
  2009-02-03 16:49 ` Luis R. Rodriguez
  2009-02-03 17:27 ` Stephen Gutknecht
  0 siblings, 2 replies; 3+ messages in thread
From: Tamas Selmeci @ 2009-02-03  9:40 UTC (permalink / raw)
  To: ath9k-devel

Hi all!

I'm using AR5416-based (TP-Link TL-WN861N) n-card with ath9k 
(compat-wireless-2009-01-25) with 2.6.27-rc6 kernel on ARM (Intel XScal 
IXP425). We have two Netgear n-routers, but the connection speed 
(measured by simple FTP transfer) doesn't seem to be 'n'. ~2 weeks ago 
there was a thread on this list about n speed, I made a quick compare 
between my logs and the logs found on the list, and noticed that my card 
never operates on 5Ghz frequencies.

(The card is switched to DE regulatory)

Do you have any idea? What is wrong?

Here are the logs:

With router Netgear WNR854T:

[...]
wlan0: RX AssocResp from c39aa02a (capab=0x411 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: 2427 MHz
ath9k: tx chmask: 5, rx chmask: 5
ath9k: (2427 MHz) -> (2427 MHz), chanwidth: 1
ath9k: BSS Changed PREAMBLE 1
ath9k: BSS Changed CTS PROT 1
ath9k: BSS Changed ASSOC 1
ath9k: Bss Info ASSOC 1, bssid: c2dc2dc8
ath9k: Set HW RX filter: 0x0
ath9k: Set HW RX filter: 0x0
ath9k: Set HW RX filter: 0x0



With router Netgear WNR2000:

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
ath9k: 0.1
PCI: enabling device 0000:00:02.0 (0140 -> 0142)
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: ffc09000 (73728) -> 3940000 (73728)
ath9k: beacon DMA: 1 buffers 1 desc/buf
ath9k: beacon DMA map: ffc1b000 (144) -> 395f000 (144)
ath9k: cachelsz 32 rxbufsize 3872
ath9k: rx DMA: 512 buffers 1 desc/buf
ath9k: rx DMA map: ffc1c000 (73728) -> 3960000 (73728)
phy0: Selected rate control algorithm 'ath9k_rate_control'
cfg80211: Calling CRDA for country: DE
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 AR5416 MAC/BB Rev:2 AR2122 RF Rev:81: mem=0xc4900000, irq=27
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
cfg80211: Regulatory domain changed to country: DE
         (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
         (2400000 KHz - 2483500 KHz @ 40000 KHz), (N/A, 2000 mBm)
         (5150000 KHz - 5255000 KHz @ 40000 KHz), (N/A, 2301 mBm)
         (5470000 KHz - 5650000 KHz @ 40000 KHz), (N/A, 3000 mBm)
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: 2467 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2462 MHz) -> (2467 MHz), chanwidth: 0
ath9k: Set channel: 2472 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2467 MHz) -> (2472 MHz), chanwidth: 0
ath9k: Set channel: 2412 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2472 MHz) -> (2412 MHz), chanwidth: 0
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: 2467 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2462 MHz) -> (2467 MHz), chanwidth: 0
ath9k: Set channel: 2472 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2467 MHz) -> (2472 MHz), chanwidth: 0
ath9k: Set channel: 2412 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2472 MHz) -> (2412 MHz), chanwidth: 0
ath9k: Set HW RX filter: 0x0
ath9k: Set channel: 2427 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2412 MHz) -> (2427 MHz), chanwidth: 0
ath9k: RX filter 0x0 bssid c2dd4dc8 aid 0x0
ath9k: Set channel: 2427 MHz
ath9k: tx chmask: 1, rx chmask: 1
ath9k: (2427 MHz) -> (2427 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
wlan0: authenticate with AP c2c3dcc8
wlan0: authenticated
wlan0: associate with AP c2c3dcc8
wlan0: RX AssocResp from c39b002a (capab=0x431 status=0 aid=2)
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: 2427 MHz
ath9k: tx chmask: 5, rx chmask: 5
ath9k: (2427 MHz) -> (2427 MHz), chanwidth: 1
ath9k: BSS Changed PREAMBLE 1
ath9k: BSS Changed ASSOC 1
ath9k: Bss Info ASSOC 2, bssid: c2dd4dc8
ath9k: Set HW RX filter: 0x0
ath9k: Set HW RX filter: 0x0
ath9k: Set HW RX filter: 0x0

Best regards,
-- 
Tamas Selmeci
R&D Engineer

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

* [ath9k-devel] Why not running at n speed?
  2009-02-03  9:40 [ath9k-devel] Why not running at n speed? Tamas Selmeci
@ 2009-02-03 16:49 ` Luis R. Rodriguez
  2009-02-03 17:27 ` Stephen Gutknecht
  1 sibling, 0 replies; 3+ messages in thread
From: Luis R. Rodriguez @ 2009-02-03 16:49 UTC (permalink / raw)
  To: ath9k-devel

On Tue, Feb 03, 2009 at 01:40:50AM -0800, Tamas Selmeci wrote:
> Hi all!
> 
> I'm using AR5416-based (TP-Link TL-WN861N) n-card with ath9k
> (compat-wireless-2009-01-25) with 2.6.27-rc6 kernel on ARM (Intel XScal
> IXP425). We have two Netgear n-routers, but the connection speed
> (measured by simple FTP transfer) doesn't seem to be 'n'. ~2 weeks ago
> there was a thread on this list about n speed, I made a quick compare
> between my logs and the logs found on the list, 

> and noticed that my card
> never operates on 5Ghz frequencies.
> 
> (The card is switched to DE regulatory)

Your logs showed:

> phy0: Atheros AR5416 MAC/BB Rev:2 AR2122 RF Rev:81: mem=0xc4900000, irq=27

AR2122 is a single band 2.4 GHz 2x2 MIMO radio -- it has
two integrated 2.4 GHz radios, supports both 20 MHz and 40 MHz
bandwidths.

> Do you have any idea? What is wrong?

You reported two things:

1. Not getting good throughput
2. No 5 GHz.

As for your first issue can you confirm you have set up your access points
in 802.11n mode, and see if you can enable HT40. If you have no legacy products
(802.11bg) I would recommend to go 'Pure N' or aka 'Greenfield'.

As for your second issue, your concern about not getting 5 GHz channels,
your card seems to be single band so it does not have any 5 GHz radios.
You can always install iw and run 'iw list' to confirm. Not all cards are
dual band. Dual band card are quite rare, specially AR5416 cards from what
I have seen.

http://wireless.kernel.org/en/users/Documentation/iw

> Here are the logs:
> 
> With router Netgear WNR854T:

<-- snip -->

> With router Netgear WNR2000:

Instead of logs please show iperf tests for now, from the station using
the ath9k driver to a box connected directly to an APs through ethernet.

  Luis

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

* [ath9k-devel] Why not running at n speed?
  2009-02-03  9:40 [ath9k-devel] Why not running at n speed? Tamas Selmeci
  2009-02-03 16:49 ` Luis R. Rodriguez
@ 2009-02-03 17:27 ` Stephen Gutknecht
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Gutknecht @ 2009-02-03 17:27 UTC (permalink / raw)
  To: ath9k-devel

On Tue, Feb 3, 2009 at 1:40 AM, Tamas Selmeci <tselmeci@dension.com> wrote:

> With router Netgear WNR2000:
>
> 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

I have one of those routers too; I think it is interesting to note
that your Netgear WNR2000 is an AP81 router platform that has ar9103
chip radio with 3x3 MIMO.  It actually is capable of running OpenWRT
with the ath9k driver... although you would need to solder in a
3.3volt rs232 serial port (3 easy wires) and use tftpboot to load
OpenWRT (currently we have not devised a way to flash newer OpenWRT on
to the router).  The default netgear firmware on the router uses a
madwifi for kernel 2.6.15 we have not located the source code for.

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

end of thread, other threads:[~2009-02-03 17:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-03  9:40 [ath9k-devel] Why not running at n speed? Tamas Selmeci
2009-02-03 16:49 ` Luis R. Rodriguez
2009-02-03 17:27 ` 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.