ath9k_htc: Revamp CONF_IDLE handling
commit881ac6a53587acb12b009a3053830295688f2c70
authorSujith <Sujith.Manoharan@atheros.com>
Tue, 1 Jun 2010 09:44:11 +0000 (1 15:14 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 3 Jun 2010 18:10:47 +0000 (3 14:10 -0400)
treee676fee215db1f8f33bd79d9daa24b9733de1afd
parente9141f71f4734584bc9704e1266090abe98e1859
ath9k_htc: Revamp CONF_IDLE handling

This patch revamps IDLE power save handling in the driver.
Two separate functions (radio enable/disable) are introduced,
because the semantics of radio handling is just not the same
as the start()/stop() callbacks. For example, the HW must not
be disabled, instead, the PHY has to be disabled in radio_disable().
Also, the HW has to be reset properly in radio enable/disable and
certain registers have to be programmed only once, in the
start() callback.

The radio_enable() routine doesn't need the PS wrappers since
we set the HW power mode to AWAKE anyway before calling it.

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