summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSujith Manoharan <Sujith.Manoharan@atheros.com>2011-01-04 13:16:54 +0530
committerJohn W. Linville <linville@tuxdriver.com>2011-01-10 15:40:51 -0500
commit07422063d43612762d53fac8b6df213c96f4b1f6 (patch)
treedce06b97c18e90e6d84278cd2172def89096c910 /drivers
parent6cae913d6c06557fee81aa8a181eafcc9a76516a (diff)
downloadlinux-07422063d43612762d53fac8b6df213c96f4b1f6.tar.gz
linux-07422063d43612762d53fac8b6df213c96f4b1f6.tar.bz2
linux-07422063d43612762d53fac8b6df213c96f4b1f6.zip
ath9k_hw: Fix calibration for AR9287 devices
AR9287 based devices have issues with ADC gain calibration which would cause uplink throughput drops in HT40 mode. Remove ADC gain from the supported calibration algorithms. Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ath/ath9k/ar9002_calib.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9002_calib.c b/drivers/net/wireless/ath/ath9k/ar9002_calib.c
index 01880aa13e36..ea2e7d714bda 100644
--- a/drivers/net/wireless/ath/ath9k/ar9002_calib.c
+++ b/drivers/net/wireless/ath/ath9k/ar9002_calib.c
@@ -954,6 +954,9 @@ static void ar9002_hw_init_cal_settings(struct ath_hw *ah)
&adc_dc_cal_multi_sample;
}
ah->supp_cals = ADC_GAIN_CAL | ADC_DC_CAL | IQ_MISMATCH_CAL;
+
+ if (AR_SREV_9287(ah))
+ ah->supp_cals &= ~ADC_GAIN_CAL;
}
}