ath9k: fix a regression in touching power mode related registers
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 544-ath9k_fix_sleep_mode_reg.patch
1 --- a/drivers/net/wireless/ath/ath9k/hw.c
2 +++ b/drivers/net/wireless/ath/ath9k/hw.c
3 @@ -1846,7 +1846,8 @@ static void ath9k_set_power_sleep(struct
4 }
5
6 /* Clear Bit 14 of AR_WA after putting chip into Full Sleep mode. */
7 - REG_WRITE(ah, AR_WA, ah->WARegVal & ~AR_WA_D3_L1_DISABLE);
8 + if (AR_SREV_9300_20_OR_LATER(ah))
9 + REG_WRITE(ah, AR_WA, ah->WARegVal & ~AR_WA_D3_L1_DISABLE);
10 }
11
12 /*