From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mohammed Shafi Shajakhan Date: Tue, 19 Jun 2012 21:17:30 +0530 Subject: [ath9k-devel] [PATCH 10/10] ath9k: do not disable hardware while wow is enabled In-Reply-To: <1340120850-9155-1-git-send-email-mohammed@qca.qualcomm.com> References: <1340120850-9155-1-git-send-email-mohammed@qca.qualcomm.com> Message-ID: <1340120850-9155-11-git-send-email-mohammed@qca.qualcomm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org From: Mohammed Shafi Shajakhan Cc: Senthil Balasubramanian Cc: Rajkumar Manoharan Cc: vadivel at qca.qualcomm.com Tested-by: Mohammed Shafi Shajakhan Signed-off-by: Mohammed Shafi Shajakhan --- drivers/net/wireless/ath/ath9k/pci.c | 3 +++ 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 2b7fe51..b9e67e2 100644 --- a/drivers/net/wireless/ath/ath9k/pci.c +++ b/drivers/net/wireless/ath/ath9k/pci.c @@ -316,6 +316,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. -- 1.7.0.4