aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/scan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c
index 439c98d93a79..41635b2c91bf 100644
--- a/net/mac80211/scan.c
+++ b/net/mac80211/scan.c
@@ -286,8 +286,6 @@ void ieee80211_scan_completed(struct ieee80211_hw *hw, bool aborted)
286 local->scanning = 0; 286 local->scanning = 0;
287 local->scan_channel = NULL; 287 local->scan_channel = NULL;
288 288
289 drv_sw_scan_complete(local);
290
291 /* we only have to protect scan_req and hw/sw scan */ 289 /* we only have to protect scan_req and hw/sw scan */
292 mutex_unlock(&local->scan_mtx); 290 mutex_unlock(&local->scan_mtx);
293 291
@@ -297,6 +295,8 @@ void ieee80211_scan_completed(struct ieee80211_hw *hw, bool aborted)
297 295
298 ieee80211_configure_filter(local); 296 ieee80211_configure_filter(local);
299 297
298 drv_sw_scan_complete(local);
299
300 ieee80211_offchannel_return(local, true); 300 ieee80211_offchannel_return(local, true);
301 301
302 done: 302 done: