aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/eeprom.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-09-15 08:25:35 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-09-19 15:58:24 -0400
commit1b8714f7dcd8b41cd2843c42a6cc16ba2d4c899f (patch)
tree688f620b947800947b1cb4eed2add3572b209813 /drivers/net/wireless/ath/ath9k/eeprom.c
parentf11cc949fd9fed7040eba39eab11e7bee274b527 (diff)
ath9k_hw: clean up hardware revision checks
- AR_SREV_5416_20_OR_LATER is always true, remove it - AR_SREV_9280_20_OR_LATER is always true within eeprom_4k.c and eeprom_9287.c - (AR_SREV_9271 || AR_SREV_9285) is always true in eeprom_4k.c Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/eeprom.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/eeprom.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath9k/eeprom.c b/drivers/net/wireless/ath/ath9k/eeprom.c
index e61404dda8c..e46f751ab50 100644
--- a/drivers/net/wireless/ath/ath9k/eeprom.c
+++ b/drivers/net/wireless/ath/ath9k/eeprom.c
@@ -456,12 +456,7 @@ void ath9k_hw_get_gain_boundaries_pdadcs(struct ath_hw *ah,
456 pPdGainBoundaries[i] = 456 pPdGainBoundaries[i] =
457 min((u16)MAX_RATE_POWER, pPdGainBoundaries[i]); 457 min((u16)MAX_RATE_POWER, pPdGainBoundaries[i]);
458 458
459 if ((i == 0) && !AR_SREV_5416_20_OR_LATER(ah)) { 459 minDelta = 0;
460 minDelta = pPdGainBoundaries[0] - 23;
461 pPdGainBoundaries[0] = 23;
462 } else {
463 minDelta = 0;
464 }
465 460
466 if (i == 0) { 461 if (i == 0) {
467 if (AR_SREV_9280_20_OR_LATER(ah)) 462 if (AR_SREV_9280_20_OR_LATER(ah))