|
@@ -313,6 +313,9 @@ static int ath_pci_suspend(struct device *device)
|
|
struct ieee80211_hw *hw = pci_get_drvdata(pdev);
|
|
struct ieee80211_hw *hw = pci_get_drvdata(pdev);
|
|
struct ath_softc *sc = hw->priv;
|
|
struct ath_softc *sc = hw->priv;
|
|
|
|
|
|
|
|
+ if (sc->wow_enabled)
|
|
|
|
+ return 0;
|
|
|
|
+
|
|
/* The device has to be moved to FULLSLEEP forcibly.
|
|
/* The device has to be moved to FULLSLEEP forcibly.
|
|
* Otherwise the chip never moved to full sleep,
|
|
* Otherwise the chip never moved to full sleep,
|
|
* when no interface is up.
|
|
* when no interface is up.
|