rsi: Set wowlan flag while writing wowlan config parameters
authorSiva Rebbagondla <siva.rebbagondla@redpinesignals.com>
Fri, 11 May 2018 14:57:53 +0000 (20:27 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 15 May 2018 05:37:50 +0000 (08:37 +0300)
As wowlan enable flag did not set, while writing wowlan parameters to
card using rsi_send_vap_dynamic_update, which results firmware is unable to
set wowlan configurations. Hence, setting wowlan flag before sending
parameters.

Signed-off-by: Siva Rebbagondla <siva.rebbagondla@redpinesignals.com>
Signed-off-by: Sushant Kumar Mishra <sushant.mishra@redpinesignals.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rsi/rsi_91x_mac80211.c

index 743706eeffa24b41ad1912408c633558c4ed2989..3faa0449a5ef1f4058c341615f6511827793a933 100644 (file)
@@ -1818,6 +1818,7 @@ int rsi_config_wowlan(struct rsi_hw *adapter, struct cfg80211_wowlan *wowlan)
                return -EINVAL;
        }
 
+       common->wow_flags |= RSI_WOW_ENABLED;
        triggers = rsi_wow_map_triggers(common, wowlan);
        if (!triggers) {
                rsi_dbg(ERR_ZONE, "%s:No valid WoW triggers\n", __func__);
@@ -1840,7 +1841,6 @@ int rsi_config_wowlan(struct rsi_hw *adapter, struct cfg80211_wowlan *wowlan)
 
        rx_filter_word = (ALLOW_DATA_ASSOC_PEER | DISALLOW_BEACONS);
        rsi_send_rx_filter_frame(common, rx_filter_word);
-       common->wow_flags |= RSI_WOW_ENABLED;
 
        return 0;
 }