ath9k: Enable WoW only for supported models
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.
Signed-off-by Sujith Manoharan <[email protected]>
--- 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
@@ -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
@@ -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