Skip to contentSkip to conversation

ath9k: Enable WoW only for supported models

PATCH New Sujith Manoharan 1 participant 1 message Jun 21, 2013 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath9k: Enable WoW only for supported models

From: Sujith Manoharan <[email protected]>

Since platform support is required for WoW, identify and and enable Wow only for supported cards.

---
 drivers/net/wireless/ath/ath9k/ath9k.h |  1 +
 drivers/net/wireless/ath/ath9k/init.c  |  1 +
 drivers/net/wireless/ath/ath9k/pci.c   | 57 ++++++++++++++++++++++++++++++++++
 3 files changed, 59 insertions(+)
drivers/net/wireless/ath/ath9k/ath9k.h +1 -0
index 04b2d3e..c1224b5 100644
@@ -634,6 +634,7 @@ void ath_ant_comb_update(struct ath_softc *sc);
 #define ATH9K_PCI_CUS198 0x0001
 #define ATH9K_PCI_CUS230 0x0002
 #define ATH9K_PCI_CUS217 0x0004
+#define ATH9K_PCI_WOW    0x0008
 
 /*
  * Default cache line size, in bytes.
drivers/net/wireless/ath/ath9k/init.c +1 -0
index 1e555d8..16f8b20 100644
@@ -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;
 
drivers/net/wireless/ath/ath9k/pci.c +57 -0

63 lines not on this page · raw message

Signature · 1 line
1.8.3.1