diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-09-22 10:04:32 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-27 14:34:05 -0400 |
commit | 1a8f0d39a04beb0fd61f46ed99fd05189083b409 (patch) | |
tree | 69ebe9531447353da42dd97a1c93c78b92c3d316 /drivers/net | |
parent | 38f04c6b1b682f1879441e2925403ad9aff9e229 (diff) |
ath9k: fix a regression in ath9k_ps_restore
After 'ath9k: optimize ath9k_ps_restore', it would only send the device to
network sleep and not to full sleep anymore, potentially causing more
battery drain.
Reported-by: Vivek Natarajan <nataraja@qca.qualcomm.com>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index fb803e209760..edaa7843bf4c 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -133,7 +133,7 @@ void ath9k_ps_restore(struct ath_softc *sc) | |||
133 | ath_hw_cycle_counters_update(common); | 133 | ath_hw_cycle_counters_update(common); |
134 | spin_unlock(&common->cc_lock); | 134 | spin_unlock(&common->cc_lock); |
135 | 135 | ||
136 | ath9k_hw_setpower(sc->sc_ah, ATH9K_PM_NETWORK_SLEEP); | 136 | ath9k_hw_setpower(sc->sc_ah, mode); |
137 | 137 | ||
138 | unlock: | 138 | unlock: |
139 | spin_unlock_irqrestore(&sc->sc_pm_lock, flags); | 139 | spin_unlock_irqrestore(&sc->sc_pm_lock, flags); |