ath9k: do not access hw registers in FULL SLEEP
authorRajkumar Manoharan <rmanoharan@atheros.com>
Mon, 31 Jan 2011 18:17:46 +0000 (23:47 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 3 Feb 2011 21:44:43 +0000 (16:44 -0500)
commit4c89fe954d929781126af41691fba1bc670293a5
tree7ce2e88e15890b5ca7005561a842b16c5434ddcd
parentb2a5c3dfecf3d0e1db08ac7cd94ee4c1cf9bc998
ath9k: do not access hw registers in FULL SLEEP

The opmode recalculation is accessing hw registers.
When it is called from remove interface callback and
if there are no vifs present then hw is moved to FULL SLEEP
by radio disable. So use power save wrappers before
accessing hw registers in calculating opmode state.

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