rsi: fix for wowlan wakeup failure
authorSiva Rebbagondla <siva.rebbagondla@redpinesignals.com>
Mon, 4 Feb 2019 06:33:29 +0000 (12:03 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 8 Feb 2019 15:29:42 +0000 (17:29 +0200)
During wowlan regression tests, sometimes radio is not waking up for wowlan
packet in coex mode. This is because of power save is enabled by default
in case of coex mode greater than one. Hence, disable power save in coex
mode to avoid radio loss.

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

index 7bc8da69bfedb705c40bc195a2244fad1505d18d..3fd2571cdcb5ee6f639b373cac2b22d43845f7b1 100644 (file)
@@ -1901,6 +1901,10 @@ int rsi_config_wowlan(struct rsi_hw *adapter, struct cfg80211_wowlan *wowlan)
                return 0;
        }
        rsi_dbg(INFO_ZONE, "TRIGGERS %x\n", triggers);
+
+       if (common->coex_mode > 1)
+               rsi_disable_ps(adapter, adapter->vifs[0]);
+
        rsi_send_wowlan_request(common, triggers, 1);
 
        /**