diff options
author | Rajkumar Manoharan <rmanohar@qca.qualcomm.com> | 2012-07-01 19:53:54 +0530 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-07-09 16:36:20 -0400 |
commit | 08d4df410a9ff02c999e69268ec2f4fbfeaac8d7 (patch) | |
tree | fe93bdce46fd2e2681cefcc6a7c8ae173657f27f /drivers/net/wireless/ath/ath9k/main.c | |
parent | b73f3e78047abdcc8bc33f97445ef6691ce3cc3d (diff) | |
download | lwn-08d4df410a9ff02c999e69268ec2f4fbfeaac8d7.tar.gz lwn-08d4df410a9ff02c999e69268ec2f4fbfeaac8d7.zip |
ath9k: fix power consumption on network sleep when BTCOEX is enabled
The chip is waken up for every 45ms in btcoex timer cycle to
for sharing the radio between BT and WLAN. Whenever the wlan
interface is in network sleep mode, do not schedule hw timers.
This could reduce power consumption on idle associated state.
Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 6ce012815ba6..06a3d1c7f2b9 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c @@ -130,6 +130,8 @@ void ath9k_ps_restore(struct ath_softc *sc) PS_WAIT_FOR_PSPOLL_DATA | PS_WAIT_FOR_TX_ACK))) { mode = ATH9K_PM_NETWORK_SLEEP; + if (ath9k_hw_btcoex_is_enabled(sc->sc_ah)) + ath9k_btcoex_stop_gen_timer(sc); } else { goto unlock; } |