]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9593d01bd4df58f030516bc6148e1d48aed57875
treeb49ac5d2614afedefdf15fafdecdd4d7a2d40e93
parentfb4a5e044f361a2e937c552f4a5713d2d6a75ec5
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