]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k_hw: Fix instable target power control b/w CCK/OFDM
authorRajkumar Manoharan <rmanoharan@atheros.com>
Wed, 6 Apr 2011 16:12:52 +0000 (21:42 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 12 Apr 2011 20:57:35 +0000 (16:57 -0400)
commita9707db2a9530377b44c2c194c3bca23ab276229
treecfc4a387ff3bd4bfc8879b703d6dabf0aa7d3893
parent8624bbbed56283ad448d1a65183e987a3196ebe4
ath9k_hw: Fix instable target power control b/w CCK/OFDM

The problem is that when the attenuation is increased,
the rate will start to drop from MCS7 -> MCS6, and finally
will see MCS1 -> CCK_11Mbps. When the rate is changed b/w
CCK and OFDM, it will use register desired_scale to calculate
how much tx gain need to change.

The output power with the same tx gain for CCK and OFDM modulated
signals are different. This difference is constant for AR9280
but not AR9285/AR9271. It has different PA architecture
a constant. So it should be calibrated against this PA
characteristic.

The driver has to read the calibrated values from EEPROM and set
the tx power registers accordingly.

Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com>
Acked-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9002_phy.h
drivers/net/wireless/ath/ath9k/eeprom.h
drivers/net/wireless/ath/ath9k/eeprom_4k.c