ath9k: Add a debugfs file for WOW
This can be used to force WOW for cards that are not present in the supported PCI ID list. Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:

committed by
Kalle Valo

parent
e094c3375c
commit
8b86171508
@@ -327,7 +327,7 @@ void ath9k_init_wow(struct ieee80211_hw *hw)
|
||||
{
|
||||
struct ath_softc *sc = hw->priv;
|
||||
|
||||
if (sc->driver_data & ATH9K_PCI_WOW) {
|
||||
if ((sc->driver_data & ATH9K_PCI_WOW) || sc->force_wow) {
|
||||
hw->wiphy->wowlan = &ath9k_wowlan_support;
|
||||
device_init_wakeup(sc->dev, 1);
|
||||
}
|
||||
@@ -337,6 +337,6 @@ void ath9k_deinit_wow(struct ieee80211_hw *hw)
|
||||
{
|
||||
struct ath_softc *sc = hw->priv;
|
||||
|
||||
if (sc->driver_data & ATH9K_PCI_WOW)
|
||||
if ((sc->driver_data & ATH9K_PCI_WOW) || sc->force_wow)
|
||||
device_init_wakeup(sc->dev, 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user