aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/hw.c
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2009-03-09 00:01:49 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-03-16 18:09:38 -0400
commit9c81e8be236b7f1c94f9d055a97a83f84c81890f (patch)
tree5732af3233b623f9c207db572f65626ec307bc20 /drivers/net/wireless/ath9k/hw.c
parent22e5b08585f7282060c464a36908b19cb4809fde (diff)
ath9k: Initialize ANI properly
ANI was not being initialized correctly for all HW variants. This patch fixes it. Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/hw.c')
-rw-r--r--drivers/net/wireless/ath9k/hw.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/net/wireless/ath9k/hw.c b/drivers/net/wireless/ath9k/hw.c
index c10b33b1b673..ea550cc64356 100644
--- a/drivers/net/wireless/ath9k/hw.c
+++ b/drivers/net/wireless/ath9k/hw.c
@@ -662,16 +662,9 @@ static struct ath_hw *ath9k_hw_do_attach(u16 devid, struct ath_softc *sc,
662 ah->supp_cals = ADC_GAIN_CAL | ADC_DC_CAL | IQ_MISMATCH_CAL; 662 ah->supp_cals = ADC_GAIN_CAL | ADC_DC_CAL | IQ_MISMATCH_CAL;
663 } 663 }
664 664
665 if (AR_SREV_9160(ah)) { 665 ah->ani_function = ATH9K_ANI_ALL;
666 ah->config.enable_ani = 1; 666 if (AR_SREV_9280_10_OR_LATER(ah))
667 ah->ani_function = (ATH9K_ANI_SPUR_IMMUNITY_LEVEL | 667 ah->ani_function &= ~ATH9K_ANI_NOISE_IMMUNITY_LEVEL;
668 ATH9K_ANI_FIRSTEP_LEVEL);
669 } else {
670 ah->ani_function = ATH9K_ANI_ALL;
671 if (AR_SREV_9280_10_OR_LATER(ah)) {
672 ah->ani_function &= ~ATH9K_ANI_NOISE_IMMUNITY_LEVEL;
673 }
674 }
675 668
676 DPRINTF(sc, ATH_DBG_RESET, 669 DPRINTF(sc, ATH_DBG_RESET,
677 "This Mac Chip Rev 0x%02x.%x is \n", 670 "This Mac Chip Rev 0x%02x.%x is \n",