1 --- a/drivers/net/wireless/ath/ath9k/hw.c
2 +++ b/drivers/net/wireless/ath/ath9k/hw.c
3 @@ -1326,6 +1326,16 @@ static void ath9k_hw_override_ini(struct
4 * Necessary to avoid issues on AR5416 2.0
6 REG_WRITE(ah, 0x9800 + (651 << 2), 0x11);
9 + * Disable RIFS search on some chips to avoid baseband
12 + if (AR_SREV_9100(ah) || AR_SREV_9160(ah)) {
13 + val = REG_READ(ah, AR_PHY_HEAVY_CLIP_FACTOR_RIFS);
14 + val &= ~AR_PHY_RIFS_INIT_DELAY;
15 + REG_WRITE(ah, AR_PHY_HEAVY_CLIP_FACTOR_RIFS, val);
19 static u32 ath9k_hw_def_ini_fixup(struct ath_hw *ah,
20 --- a/drivers/net/wireless/ath/ath9k/phy.h
21 +++ b/drivers/net/wireless/ath/ath9k/phy.h
22 @@ -384,6 +384,9 @@ bool ath9k_hw_set_rf_regs(struct ath_hw
24 #define AR_PHY_HEAVY_CLIP_ENABLE 0x99E0
26 +#define AR_PHY_HEAVY_CLIP_FACTOR_RIFS 0x99EC
27 +#define AR_PHY_RIFS_INIT_DELAY 0x03ff0000
29 #define AR_PHY_M_SLEEP 0x99f0
30 #define AR_PHY_REFCLKDLY 0x99f4
31 #define AR_PHY_REFCLKPD 0x99f8