Commit b2ddde56 authored by Johannes Berg's avatar Johannes Berg

wifi: mac80211: remove unnecessary synchronize_net()

The call to ieee80211_do_stop() right after will also do
synchronize_rcu() to ensure the SDATA_STATE_RUNNING bit
is cleared, so we don't need to synchronize_net() here.

Change-Id: Id9f9ffcf195002013e5d9fde288877d219780864
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 94450963
...@@ -1849,8 +1849,7 @@ static int ieee80211_runtime_change_iftype(struct ieee80211_sub_if_data *sdata, ...@@ -1849,8 +1849,7 @@ static int ieee80211_runtime_change_iftype(struct ieee80211_sub_if_data *sdata,
ieee80211_stop_vif_queues(local, sdata, ieee80211_stop_vif_queues(local, sdata,
IEEE80211_QUEUE_STOP_REASON_IFTYPE_CHANGE); IEEE80211_QUEUE_STOP_REASON_IFTYPE_CHANGE);
synchronize_net(); /* do_stop will synchronize_rcu() first thing */
ieee80211_do_stop(sdata, false); ieee80211_do_stop(sdata, false);
ieee80211_teardown_sdata(sdata); ieee80211_teardown_sdata(sdata);
......
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