mac80211: add the new 802.11n minstrel rate control implementation (optional, not...
[openwrt.git] / package / mac80211 / patches / 550-ath9k_rifs_disable.patch
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
5 */
6 REG_WRITE(ah, 0x9800 + (651 << 2), 0x11);
7 +
8 + /*
9 + * Disable RIFS search on some chips to avoid baseband
10 + * hang issues.
11 + */
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);
16 + }
17 }
18
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
23
24 #define AR_PHY_HEAVY_CLIP_ENABLE 0x99E0
25
26 +#define AR_PHY_HEAVY_CLIP_FACTOR_RIFS 0x99EC
27 +#define AR_PHY_RIFS_INIT_DELAY 0x03ff0000
28 +
29 #define AR_PHY_M_SLEEP 0x99f0
30 #define AR_PHY_REFCLKDLY 0x99f4
31 #define AR_PHY_REFCLKPD 0x99f8
This page took 0.046606 seconds and 5 git commands to generate.