[PATCH 2/2] Update to new wowlan support struct

Olof Johansson dev at skyshaper.net
Sat Jul 6 13:03:16 EDT 2013


Commit 964dc9e2c3aaccacacd40640964a58544fb5769a updated the way to
configure wowlan support. This commit adapts wcn36xx to this new way.

Signed-off-by: Olof Johansson <dev at skyshaper.net>
---
 main.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/main.c b/main.c
index 7d4179d..1a3123a 100644
--- a/main.c
+++ b/main.c
@@ -177,6 +177,13 @@ static const struct ieee80211_iface_combination if_comb = {
 	.num_different_channels = 1,
 };
 
+#ifdef CONFIG_PM
+static const struct wiphy_wowlan_support wowlan_support = {
+	.flags = WIPHY_WOWLAN_ANY,
+	.n_patterns = 0,
+};
+#endif
+
 static int wcn36xx_start(struct ieee80211_hw *hw)
 {
 	struct wcn36xx *wcn = hw->priv;
@@ -820,8 +827,7 @@ static int wcn36xx_init_ieee80211(struct wcn36xx *wcn)
 
 	wcn->hw->wiphy->flags |= WIPHY_FLAG_AP_PROBE_RESP_OFFLOAD;
 
-	wcn->hw->wiphy->wowlan.flags = WIPHY_WOWLAN_ANY;
-	wcn->hw->wiphy->wowlan.n_patterns = 0;
+	wcn->hw->wiphy->wowlan = &wowlan_support;
 
 	/* TODO make a conf file where to read this information from */
 	wcn->hw->max_listen_interval = 200;
-- 
1.8.3.1




More information about the wcn36xx mailing list