diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2013-12-06 16:28:50 +0530 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-12-09 15:38:00 -0500 |
commit | 0c7c2bb4daebb23b08b86c24fe70189c3c049f78 (patch) | |
tree | 32b8f4eed6f043c801c1a33091be8bcd00ba4312 /drivers/net/wireless/ath/ath9k/hw.c | |
parent | ca488b921e98951217f1f9fdc7629febef19ccba (diff) | |
download | linux-0c7c2bb4daebb23b08b86c24fe70189c3c049f78.tar.gz linux-0c7c2bb4daebb23b08b86c24fe70189c3c049f78.tar.bz2 linux-0c7c2bb4daebb23b08b86c24fe70189c3c049f78.zip |
ath9k: Fix regulatory compliance
Adjusting the CCA registers for maximum permissible
noise floor in ETSI/Japan domains has to be done for
all AR9003 family chips.
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index 779d38a98a0e..4ee24b1eec38 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c @@ -548,11 +548,11 @@ static int ath9k_hw_post_init(struct ath_hw *ah) * EEPROM needs to be initialized before we do this. * This is required for regulatory compliance. */ - if (AR_SREV_9462(ah) || AR_SREV_9565(ah)) { + if (AR_SREV_9300_20_OR_LATER(ah)) { u16 regdmn = ah->eep_ops->get_eeprom(ah, EEP_REG_0); if ((regdmn & 0xF0) == CTL_FCC) { - ah->nf_2g.max = AR_PHY_CCA_MAX_GOOD_VAL_9462_FCC_2GHZ; - ah->nf_5g.max = AR_PHY_CCA_MAX_GOOD_VAL_9462_FCC_5GHZ; + ah->nf_2g.max = AR_PHY_CCA_MAX_GOOD_VAL_9300_FCC_2GHZ; + ah->nf_5g.max = AR_PHY_CCA_MAX_GOOD_VAL_9300_FCC_5GHZ; } } |