OSDN Git Service

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)
commita261f0e965b7e903873880cec1a70c9cbc776c76
treea97b242f5c58bdd7be622ea72d21cbaa3fb2fa3f
parent4eb287a4048e4a2cb0400a6d972d97739ec8c799
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