Skip to content

Commit

Permalink
ath9k: fix a regression in ath9k_ps_restore
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felix Fietkau authored and John W. Linville committed Sep 27, 2011
1 parent 38f04c6 commit 1a8f0d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void ath9k_ps_restore(struct ath_softc *sc)
ath_hw_cycle_counters_update(common);
spin_unlock(&common->cc_lock);

ath9k_hw_setpower(sc->sc_ah, ATH9K_PM_NETWORK_SLEEP);
ath9k_hw_setpower(sc->sc_ah, mode);

unlock:
spin_unlock_irqrestore(&sc->sc_pm_lock, flags);
Expand Down

0 comments on commit 1a8f0d3

Please sign in to comment.