From 165fe051b65ef5883312109061e6b15a2364b31b Mon Sep 17 00:00:00 2001 From: nbd Date: Sun, 27 Nov 2011 06:30:17 +0000 Subject: [PATCH] ath9k: fix a regression in touching power mode related registers (backport of r29341) git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@29342 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../patches/544-ath9k_fix_sleep_mode_reg.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 package/mac80211/patches/544-ath9k_fix_sleep_mode_reg.patch diff --git a/package/mac80211/patches/544-ath9k_fix_sleep_mode_reg.patch b/package/mac80211/patches/544-ath9k_fix_sleep_mode_reg.patch new file mode 100644 index 000000000..2231b444e --- /dev/null +++ b/package/mac80211/patches/544-ath9k_fix_sleep_mode_reg.patch @@ -0,0 +1,12 @@ +--- a/drivers/net/wireless/ath/ath9k/hw.c ++++ b/drivers/net/wireless/ath/ath9k/hw.c +@@ -1846,7 +1846,8 @@ static void ath9k_set_power_sleep(struct + } + + /* Clear Bit 14 of AR_WA after putting chip into Full Sleep mode. */ +- REG_WRITE(ah, AR_WA, ah->WARegVal & ~AR_WA_D3_L1_DISABLE); ++ if (AR_SREV_9300_20_OR_LATER(ah)) ++ REG_WRITE(ah, AR_WA, ah->WARegVal & ~AR_WA_D3_L1_DISABLE); + } + + /* -- 2.35.1