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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 6 Jan 2010 23:04:17 +0000 (15:04 -0800)
commit12ba7097e0996b27d768504ae4b337ae3e892221
treeb3da68c2c73b5c6d4e125c2cc2099422eaa8f1d0
parentc965e1efdb88a1c42afb119b276d649cddb70387
ath9k: fix suspend by waking device prior to stop

commit 3867cf6a8c699846e928e8f5a9f31013708df192 upstream.

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.

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/ath/ath9k/main.c