1 --- a/net/mac80211/scan.c
2 +++ b/net/mac80211/scan.c
3 @@ -287,8 +287,6 @@ void ieee80211_scan_completed(struct iee
5 local->scan_channel = NULL;
7 - drv_sw_scan_complete(local);
9 /* we only have to protect scan_req and hw/sw scan */
10 mutex_unlock(&local->scan_mtx);
12 @@ -298,6 +296,8 @@ void ieee80211_scan_completed(struct iee
14 ieee80211_configure_filter(local);
16 + drv_sw_scan_complete(local);
18 ieee80211_offchannel_return(local, true);