mac80211: fix IEEE80211_SDATA_DISCONNECT_RESUME
Since commit12e7f51702
, IEEE80211_SDATA_DISCONNECT_RESUME no longer worked as it would simply never be tested. Restore a bit of the code removed there and in9b7d72c104
to make it work again. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
@@ -1740,6 +1740,13 @@ int ieee80211_reconfig(struct ieee80211_local *local)
|
||||
mb();
|
||||
local->resuming = false;
|
||||
|
||||
list_for_each_entry(sdata, &local->interfaces, list) {
|
||||
if (!ieee80211_sdata_running(sdata))
|
||||
continue;
|
||||
if (sdata->vif.type == NL80211_IFTYPE_STATION)
|
||||
ieee80211_sta_restart(sdata);
|
||||
}
|
||||
|
||||
mod_timer(&local->sta_cleanup, jiffies + 1);
|
||||
#else
|
||||
WARN_ON(1);
|
||||
|
Reference in New Issue
Block a user