]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ath9k: set 40 Mhz rate only if hw is configured in ht40
authorRajkumar Manoharan <rmanoharan@atheros.com>
Fri, 20 May 2011 12:22:14 +0000 (17:52 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 26 May 2011 19:43:32 +0000 (15:43 -0400)
commit41e2b05b9598d6bdf91fc20280bfc538d853f769
treeb36b2bdb2e762469ba43e49ebf9f80d4c2b18954
parent51ac8cbb2176dc159ee910d7074c6796079c3068
ath9k: set 40 Mhz rate only if hw is configured in ht40

Whenever there is a channel width change from 40 Mhz to 20 Mhz,
the hardware is reconfigured to ht20. Meantime before doing
the rate control updation, the packets are being transmitted are
selected rate with IEEE80211_TX_RC_40_MHZ_WIDTH.

While transmitting ht40 rate packets in ht20 mode is causing
baseband panic with AR9003 based chips.

==== BB update: BB status=0x02001109 ====
ath: ** BB state: wd=1 det=1 rdar=0 rOFDM=1 rCCK=1 tOFDM=0 tCCK=0 agc=2
src=0 **
ath: ** BB WD cntl: cntl1=0xffff0085 cntl2=0x00000004 **
ath: ** BB mode: BB_gen_controls=0x000033c0 **
ath: ** BB busy times: rx_clear=99%, rx_frame=0%, tx_frame=0% **
ath: ==== BB update: done ====

Cc: stable@kernel.org
Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/rc.c