aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2009-08-13 00:04:37 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-14 09:14:09 -0400
commiteff563cf10e2f24e3b025d352c3aa174cf0111b3 (patch)
tree93cde0456157c12efc15f2f56bacb55c6799f4d0 /drivers
parent523c36fc9cf75ccf605d9acf68ae9eb857de3f58 (diff)
ath9k: Set HW state properly
This patch fixes a bug in ath9k_stop() where the HW was not put into FULL_SLEEP state. Not doing so will cause issues in suspend-resume and the HW will not respond to chip resets. Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ath/ath9k/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index 3eb6dc0c8e21..fa4c6e74f977 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -2140,6 +2140,7 @@ static void ath9k_stop(struct ieee80211_hw *hw)
2140 /* disable HAL and put h/w to sleep */ 2140 /* disable HAL and put h/w to sleep */
2141 ath9k_hw_disable(sc->sc_ah); 2141 ath9k_hw_disable(sc->sc_ah);
2142 ath9k_hw_configpcipowersave(sc->sc_ah, 1); 2142 ath9k_hw_configpcipowersave(sc->sc_ah, 1);
2143 ath9k_hw_setpower(sc->sc_ah, ATH9K_PM_FULL_SLEEP);
2143 2144
2144 sc->sc_flags |= SC_OP_INVALID; 2145 sc->sc_flags |= SC_OP_INVALID;
2145 2146