aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/ar5008_phy.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ar5008_phy.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/ar5008_phy.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar5008_phy.c b/drivers/net/wireless/ath/ath9k/ar5008_phy.c
index de8ce1291a4..b2c17c98bb3 100644
--- a/drivers/net/wireless/ath/ath9k/ar5008_phy.c
+++ b/drivers/net/wireless/ath/ath9k/ar5008_phy.c
@@ -850,7 +850,7 @@ static int ar5008_hw_process_ini(struct ath_hw *ah,
850 850
851 REG_WRITE_ARRAY(&ah->iniBB_RfGain, freqIndex, regWrites); 851 REG_WRITE_ARRAY(&ah->iniBB_RfGain, freqIndex, regWrites);
852 852
853 if (AR_SREV_9280_20(ah) && IS_CHAN_A_5MHZ_SPACED(chan)) { 853 if (IS_CHAN_A_FAST_CLOCK(ah, chan)) {
854 REG_WRITE_ARRAY(&ah->iniModesAdditional, modesIndex, 854 REG_WRITE_ARRAY(&ah->iniModesAdditional, modesIndex,
855 regWrites); 855 regWrites);
856 } 856 }
@@ -892,8 +892,7 @@ static void ar5008_hw_set_rfmode(struct ath_hw *ah, struct ath9k_channel *chan)
892 rfMode |= (IS_CHAN_5GHZ(chan)) ? 892 rfMode |= (IS_CHAN_5GHZ(chan)) ?
893 AR_PHY_MODE_RF5GHZ : AR_PHY_MODE_RF2GHZ; 893 AR_PHY_MODE_RF5GHZ : AR_PHY_MODE_RF2GHZ;
894 894
895 if ((AR_SREV_9280_20(ah) || AR_SREV_9300_20_OR_LATER(ah)) 895 if (IS_CHAN_A_FAST_CLOCK(ah, chan))
896 && IS_CHAN_A_5MHZ_SPACED(chan))
897 rfMode |= (AR_PHY_MODE_DYNAMIC | AR_PHY_MODE_DYN_CCK_DISABLE); 896 rfMode |= (AR_PHY_MODE_DYNAMIC | AR_PHY_MODE_DYN_CCK_DISABLE);
898 897
899 REG_WRITE(ah, AR_PHY_MODE, rfMode); 898 REG_WRITE(ah, AR_PHY_MODE, rfMode);