]> git.baikalelectronics.ru Git - kernel.git/commit
ath6kl: Add provision to define suspend policy in disconnected state.
authorRaja Mani <rmani@qca.qualcomm.com>
Tue, 6 Mar 2012 09:33:59 +0000 (15:03 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 7 Mar 2012 07:17:10 +0000 (09:17 +0200)
commit4d906a220b68eaebfc52aa9a7359a72ee042a51b
tree59235ddee2fa32abdd39e414b58bdd3ffb0c123e
parent45a4c4f3249abc36cca39277da7cb21b5a0709dc
ath6kl: Add provision to define suspend policy in disconnected state.

It gives flexibility to the user to define suspend policy
when the suspend mode is set to WOW and the device is in
disconnected state at the time of suspend.

New module parameter wow_mode is added to get the choice
from the user. This parameter is valid only if the module
parameter suspend_mode is set to WOW.

To force WOW in connected state and cut power
in disconnected state:
  suspend_mode=0x3 wow_mode=0x1

To force WOW in connected state and deep sleep
in disconnected state (this is also the default wow_mode):
   suspend_mode=0x3 wow_mode=0x2

If there is no value specified to wow_mode during insmod,
deep sleep mode will be tried in the disconnected state.

kvalo: clarified commit log

Signed-off-by: Raja Mani <rmani@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/cfg80211.c
drivers/net/wireless/ath/ath6kl/core.c
drivers/net/wireless/ath/ath6kl/core.h
drivers/net/wireless/ath/ath6kl/sdio.c