summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
authorMohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>2012-07-10 14:57:11 +0530
committerJohn W. Linville <linville@tuxdriver.com>2012-07-12 15:27:17 -0400
commit4a17a50d8d458db747c6b3e164cc6a0148398ced (patch)
tree60b8762cf11deeefabd631a5c6ef3bfb72e61ebb /drivers/net/wireless/ath
parentb11e640aef3e23ef3834ce95b27640d28680c79b (diff)
downloadblackbird-obmc-linux-4a17a50d8d458db747c6b3e164cc6a0148398ced.tar.gz
blackbird-obmc-linux-4a17a50d8d458db747c6b3e164cc6a0148398ced.zip
ath9k: do not disable hardware while wow is enabled
Hardware needs to be AWAKE and should maintain association with the AP to process WoW triggers any time Cc: Senthil Balasubramanian <senthilb@qca.qualcomm.com> Cc: Rajkumar Manoharan <rmanohar@qca.qualcomm.com> Cc: vadivel@qca.qualcomm.com Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r--drivers/net/wireless/ath/ath9k/pci.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/pci.c b/drivers/net/wireless/ath/ath9k/pci.c
index aa0e83ac51f4..87b89d55e637 100644
--- a/drivers/net/wireless/ath/ath9k/pci.c
+++ b/drivers/net/wireless/ath/ath9k/pci.c
@@ -313,6 +313,9 @@ static int ath_pci_suspend(struct device *device)
struct ieee80211_hw *hw = pci_get_drvdata(pdev);
struct ath_softc *sc = hw->priv;
+ if (sc->wow_enabled)
+ return 0;
+
/* The device has to be moved to FULLSLEEP forcibly.
* Otherwise the chip never moved to full sleep,
* when no interface is up.
OpenPOWER on IntegriCloud