BugLink: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1753438
BugLink: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1753439
At SDIO restore ieee80211_restart_hw() is getting called to
restart all MAC operations. This step is not required.
eturning 1 from mac80211_resume() will serve this purpose.
Above method adding up some races in calling functions because
of timing issues.
Signed-off-by: Prameela Rani Garnepudi <prameela.garnepudi@redpinesignals.com>
Signed-off-by: Amitkumar Karwar <amit.karwar@redpinesignals.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Shrirang Bagul <shrirang.bagul@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
if (common->hibernate_resume) {
if (common->reinit_hw)
wait_for_completion(&common->wlan_init_completion);
- return 0;
+ /* Device need a complete restart of all MAC operations.
+ * returning 1 will serve this purpose.
+ */
+ return 1;
}
#ifdef CONFIG_VEN_RSI_WOW
adapter->priv->iface_down = true;
adapter->sc_nvifs = 0;
- rsi_mac80211_hw_scan_cancel(adapter->hw, adapter->priv->scan_vif);
flush_workqueue(adapter->priv->scan_workqueue);
ieee80211_stop_queues(adapter->hw);
- ieee80211_restart_hw(adapter->hw);
/* Initialize device again */
adapter->priv->reinit_hw = true;