Skip to contentSkip to conversation

ath9k: do not disable hardware while wow is enabled

PATCH New Mohammed Shafi Shajakhan 1 participant 1 message Jul 10, 2012 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH v4 10/10 ath9k: do not disable hardware while wow is enabled

From: Mohammed Shafi Shajakhan <[email protected]>

Hardware needs to be AWAKE and should maintain association with the AP to process WoW triggers any time

Cc Senthil Balasubramanian <[email protected]>
Cc Rajkumar Manoharan <[email protected]>
Cc vadivel at qca.qualcomm.com
---
 drivers/net/wireless/ath/ath9k/pci.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/net/wireless/ath/ath9k/pci.c +3 -0
index aa0e83a..87b89d5 100644
@@ -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.
Signature · 1 line
1.7.0.4