mac80211: replace restart_complete() with reconfig_complete()
Drivers might want to know also when mac80211 has completed reconfiguring after resume (e.g. in order to know when frames can be passed to mac80211). Rename restart_complete() to a more-generic reconfig_complete(), and add a new enum to indicate the reconfiguration type. Update the current users with the new prototype. Signed-off-by: Eliad Peller <eliadx.peller@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:

committed by
Johannes Berg

parent
13a8098af9
commit
cf2c92d840
@@ -1998,7 +1998,7 @@ int ieee80211_reconfig(struct ieee80211_local *local)
|
||||
* We may want to change that later, however.
|
||||
*/
|
||||
if (!local->suspended || reconfig_due_to_wowlan)
|
||||
drv_restart_complete(local);
|
||||
drv_reconfig_complete(local, IEEE80211_RECONFIG_TYPE_RESTART);
|
||||
|
||||
if (!local->suspended)
|
||||
return 0;
|
||||
@@ -2009,6 +2009,9 @@ int ieee80211_reconfig(struct ieee80211_local *local)
|
||||
mb();
|
||||
local->resuming = false;
|
||||
|
||||
if (!reconfig_due_to_wowlan)
|
||||
drv_reconfig_complete(local, IEEE80211_RECONFIG_TYPE_SUSPEND);
|
||||
|
||||
list_for_each_entry(sdata, &local->interfaces, list) {
|
||||
if (!ieee80211_sdata_running(sdata))
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user