Finally, declare support for NL80211_WOW_TRIGGER_ANYTHING. Since this feature requires the ability to stay awake while the host is suspended, the support should be declared per-interface (sdio will support it if it supports the MMC_PM_KEEP_POWER capability) Signed-off-by: Eliad Peller <eliad@xxxxxxxxxx> --- drivers/net/wireless/wl12xx/sdio.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/net/wireless/wl12xx/sdio.c b/drivers/net/wireless/wl12xx/sdio.c index f5d4b21..0a5b05d 100644 --- a/drivers/net/wireless/wl12xx/sdio.c +++ b/drivers/net/wireless/wl12xx/sdio.c @@ -237,6 +237,7 @@ static int __devinit wl1271_probe(struct sdio_func *func, struct ieee80211_hw *hw; const struct wl12xx_platform_data *wlan_data; struct wl1271 *wl; + mmc_pm_flag_t flags; int ret; /* We are only able to handle the wlan function */ @@ -278,6 +279,14 @@ static int __devinit wl1271_probe(struct sdio_func *func, disable_irq(wl->irq); + /* if sdio can keep power while host is suspended, enable wow */ + flags = sdio_get_host_pm_caps(func); + wl1271_debug(DEBUG_SDIO, "sdio PM caps = 0x%x", flags); + + if (flags & MMC_PM_KEEP_POWER) + hw->wiphy->supported_wow_triggers = + NL80211_WOW_TRIGGER_ANYTHING; + ret = wl1271_init_ieee80211(wl); if (ret) goto out_irq; -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html