Commit a63762d0 authored by Siva Rebbagondla's avatar Siva Rebbagondla Committed by Kalle Valo

rsi: fix wowlan wakeup issue for hibernate(S4)

At SDIO restore ieee80211_restart_hw() is getting called to restart all
MAC operations. This step is not required.
Returning 1 from mac80211_resume() will serve this purpose.
Signed-off-by: default avatarSiva Rebbagondla <siva.rebbagondla@redpinesignals.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent cbde979b
...@@ -1938,8 +1938,12 @@ static int rsi_mac80211_resume(struct ieee80211_hw *hw) ...@@ -1938,8 +1938,12 @@ static int rsi_mac80211_resume(struct ieee80211_hw *hw)
rsi_dbg(INFO_ZONE, "%s: mac80211 resume\n", __func__); rsi_dbg(INFO_ZONE, "%s: mac80211 resume\n", __func__);
if (common->hibernate_resume) if (common->hibernate_resume) {
return 0; /* Device need a complete restart of all MAC operations.
* returning 1 will serve this purpose.
*/
return 1;
}
mutex_lock(&common->mutex); mutex_lock(&common->mutex);
rsi_send_wowlan_request(common, 0, 0); rsi_send_wowlan_request(common, 0, 0);
......
...@@ -1396,7 +1396,6 @@ static int rsi_restore(struct device *dev) ...@@ -1396,7 +1396,6 @@ static int rsi_restore(struct device *dev)
common->iface_down = true; common->iface_down = true;
adapter->sc_nvifs = 0; adapter->sc_nvifs = 0;
ieee80211_restart_hw(adapter->hw);
common->wow_flags = 0; common->wow_flags = 0;
common->iface_down = false; common->iface_down = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment