diff options
author | Marek Lindner <lindner_marek@yahoo.de> | 2011-08-03 10:35:16 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-12 13:45:02 -0400 |
commit | f3d4505de539f754b78d5c30e5d2cb41a0ed0117 (patch) | |
tree | 31ddc2f430b0c6068a1ebc6fff4effd1d221d1fb /drivers | |
parent | f612cedfe152b536197c0120f2e7779bc90219d0 (diff) |
ath9k: remove eeprom txgain override for minor version < 19
ath9k_hw_4k_get_eeprom() overrides the eeprom value for txgain if the
minor version is not 19 or above with a value of 0.
ar9002_hw_init_mode_gain_regs() relies on this information to
determine whether this is a high power wifi card or not. The override
caused the driver to always use the 'normal' power tables even for
high power devices if their minor version was not high enough. Thus
leading to reduced power output.
This isn't needed for the AR9285; the check originated with the
AR9280 setup code which requires the EEPROM version check.
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Acked-by: Felix Fietkau <nbd@openwrt.org>
Acked-by: Adrian Chadd <adrian@freebsd.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/eeprom_4k.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath9k/eeprom_4k.c b/drivers/net/wireless/ath/ath9k/eeprom_4k.c index 1c6ce0442e2f..ea658e794cbd 100644 --- a/drivers/net/wireless/ath/ath9k/eeprom_4k.c +++ b/drivers/net/wireless/ath/ath9k/eeprom_4k.c | |||
@@ -349,10 +349,7 @@ static u32 ath9k_hw_4k_get_eeprom(struct ath_hw *ah, | |||
349 | case EEP_ANT_DIV_CTL1: | 349 | case EEP_ANT_DIV_CTL1: |
350 | return pModal->antdiv_ctl1; | 350 | return pModal->antdiv_ctl1; |
351 | case EEP_TXGAIN_TYPE: | 351 | case EEP_TXGAIN_TYPE: |
352 | if (ver_minor >= AR5416_EEP_MINOR_VER_19) | 352 | return pBase->txGainType; |
353 | return pBase->txGainType; | ||
354 | else | ||
355 | return AR5416_EEP_TXGAIN_ORIGINAL; | ||
356 | default: | 353 | default: |
357 | return 0; | 354 | return 0; |
358 | } | 355 | } |