ath9k: Fix IDLE Powersave
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Tue, 24 Apr 2012 04:53:20 +0000 (10:23 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 24 Apr 2012 18:54:28 +0000 (14:54 -0400)
commitad12886091cbc955dafd6cb91de2411b3ff36b39
treeb49ac5d2614afedefdf15fafdecdd4d7a2d40e93
parent7e3ed02c6e65a0cb4c9259c0d34740305d9aa5e7
ath9k: Fix IDLE Powersave

* PS_WAIT_FOR_TX_ACK is used in network-sleep mode and checking
  it for handling IDLE transitions is incorrect. Fix this.

* RX PCU/DMA engines have to be stopped before setting the chip into
  full-sleep mode - otherwise the chip becomes mute.

* Make things a bit clear by checking explicitly for network-sleep
  mode in the tx() routine and add a couple of debug statements
  to aid PS debugging.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/main.c