ath9k: fix suspend by waking device prior to stop
authorSujith <Sujith.Manoharan@atheros.com>
Thu, 24 Dec 2009 01:03:27 +0000 (20:03 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 28 Dec 2009 21:20:00 +0000 (16:20 -0500)
commit3867cf6a8c699846e928e8f5a9f31013708df192
tree10cd7cc2f289e8a5de30edcb26cc56a6d6484708
parent65486c8b30498dd274eea2c542696f22b63fe5b8
ath9k: fix suspend by waking device prior to stop

Ensure the device is awake prior to trying to tell hardware
to stop it. Impact of not doing this is we can likely leave
the device in an undefined state likely causing issues with
suspend and resume. This patch ensures harware is where it
should be prior to suspend.

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