]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k_hw: Fix minimum CTL power for each runtime mode
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>
Tue, 22 Nov 2011 13:22:00 +0000 (18:52 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 28 Nov 2011 19:36:22 +0000 (14:36 -0500)
commit496a05ff9884a9cbda5fcfa2b8e6fa8e7a843aa7
treea97b242f5c58bdd7be622ea72d21cbaa3fb2fa3f
parent783b75ff79a771ba5760f00efc82111f9a63a5c0
ath9k_hw: Fix minimum CTL power for each runtime mode

The conformance test limits (CTL) for each regulatory domains
(FCC/ETSI/MKK) are programmed for each runtime modes (11B,11G,
HT20 and HT40) in EEPROM. The lowest ctledge power value of a
particular running mode should not be used while computing
ctledge power for a different running mode.(i.e 11G's min ctledge
power should not be used while computing ctledge power for HT20).

Currently, the code does not handle this properly which would
result in incorrect txpowers in certain cases. So reset the
twiceMaxEdgePower to the default while computing min ctlegepower
for every mode.

Cc: David Quan <dquan@qca.qualcomm.com>
Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
drivers/net/wireless/ath/ath9k/eeprom_4k.c
drivers/net/wireless/ath/ath9k/eeprom_9287.c
drivers/net/wireless/ath/ath9k/eeprom_def.c