@@ -2463,7 +2463,10 @@ static int rsi_mac80211_resume(struct ieee80211_hw *hw)
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
@@ -1506,10 +1506,8 @@ int rsi_restore(struct device *dev)
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;