ath6kl: Optimize target power in deep sleep suspend
authorRaja Mani <rmani@qca.qualcomm.com>
Wed, 21 Mar 2012 09:33:38 +0000 (15:03 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 26 Mar 2012 13:07:40 +0000 (16:07 +0300)
commit40abc2defbca6a6d7fde49082586430350d0a535
tree64e436a139d706cd8f6088481321eb0ab231c98f
parent055bde493fc9a41b6b3e45381b454c18e2045d5b
ath6kl: Optimize target power in deep sleep suspend

Adding below steps helps to get good power numbers
in deep sleep suspend path,

    * Disable WOW mode.
    * Flush data packets and wait for all control packets.
      to be cleared in TX path before deep sleep suspend.
    * Set host sleep mode to SLEEP.

Below steps are added to perform the recovery action
while the system resume from deep sleep,

     * Set host sleep mode to AWAKE.
     * Reset scan parameters to default value.

In addition, Debug prints are added to track deep sleep
suspend/resume state.

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