summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/init.c
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2013-06-21 11:11:52 +0530
committerJohn W. Linville <linville@tuxdriver.com>2013-06-24 14:44:24 -0400
commitfca3c21d5659f21edbf30a80b706cbc00f368659 (patch)
treef0b53afc55a160538d92f4c02bdfa3418bedc218 /drivers/net/wireless/ath/ath9k/init.c
parent7258416c517c79b2ebb30b61d8c6807a04dc6b25 (diff)
downloadop-kernel-dev-fca3c21d5659f21edbf30a80b706cbc00f368659.zip
op-kernel-dev-fca3c21d5659f21edbf30a80b706cbc00f368659.tar.gz
ath9k: Enable WoW only for supported models
Since platform support is required for WoW, identify and and enable Wow only for supported cards. Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/init.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c
index 1e555d8..16f8b20 100644
--- a/drivers/net/wireless/ath/ath9k/init.c
+++ b/drivers/net/wireless/ath/ath9k/init.c
@@ -837,6 +837,7 @@ void ath9k_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw)
#ifdef CONFIG_PM_SLEEP
if ((ah->caps.hw_caps & ATH9K_HW_WOW_DEVICE_CAPABLE) &&
+ (sc->driver_data & ATH9K_PCI_WOW) &&
device_can_wakeup(sc->dev))
hw->wiphy->wowlan = &ath9k_wowlan_support;
OpenPOWER on IntegriCloud