Commit cef28271 authored by Johannes Berg's avatar Johannes Berg

mac80211: remove unneeded ieee80211_run_deferred_scan()

Ilan pointed out to me that ieee80211_start_next_roc()
already calls ieee80211_run_deferred_scan() if the list
of ROC items is empty, so there's no need to call it
again after calling ieee80211_start_next_roc().
Reported-by: default avatarIlan Peer <ilan.peer@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent a4f606ea
...@@ -2330,7 +2330,6 @@ static int ieee80211_cancel_roc(struct ieee80211_local *local, ...@@ -2330,7 +2330,6 @@ static int ieee80211_cancel_roc(struct ieee80211_local *local,
list_del(&found->list); list_del(&found->list);
ieee80211_run_deferred_scan(local);
ieee80211_start_next_roc(local); ieee80211_start_next_roc(local);
mutex_unlock(&local->mtx); mutex_unlock(&local->mtx);
......
...@@ -379,7 +379,6 @@ void ieee80211_sw_roc_work(struct work_struct *work) ...@@ -379,7 +379,6 @@ void ieee80211_sw_roc_work(struct work_struct *work)
ieee80211_recalc_idle(local); ieee80211_recalc_idle(local);
ieee80211_start_next_roc(local); ieee80211_start_next_roc(local);
ieee80211_run_deferred_scan(local);
} }
out_unlock: out_unlock:
...@@ -410,9 +409,6 @@ static void ieee80211_hw_roc_done(struct work_struct *work) ...@@ -410,9 +409,6 @@ static void ieee80211_hw_roc_done(struct work_struct *work)
/* if there's another roc, start it now */ /* if there's another roc, start it now */
ieee80211_start_next_roc(local); ieee80211_start_next_roc(local);
/* or scan maybe */
ieee80211_run_deferred_scan(local);
out_unlock: out_unlock:
mutex_unlock(&local->mtx); mutex_unlock(&local->mtx);
} }
...@@ -455,7 +451,6 @@ void ieee80211_roc_purge(struct ieee80211_sub_if_data *sdata) ...@@ -455,7 +451,6 @@ void ieee80211_roc_purge(struct ieee80211_sub_if_data *sdata)
} }
ieee80211_start_next_roc(local); ieee80211_start_next_roc(local);
ieee80211_run_deferred_scan(local);
mutex_unlock(&local->mtx); mutex_unlock(&local->mtx);
list_for_each_entry_safe(roc, tmp, &tmp_list, list) { list_for_each_entry_safe(roc, tmp, &tmp_list, list) {
......
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