904dd3c03b453db27f5e1b6d0d8f62e1ad68915d
[openwrt/staging/chunkeey.git] / package / mac80211 / patches / 800-mac80211_scan_callback_revert.patch
1 --- a/net/mac80211/scan.c
2 +++ b/net/mac80211/scan.c
3 @@ -287,8 +287,6 @@ void ieee80211_scan_completed(struct iee
4 local->scanning = 0;
5 local->scan_channel = NULL;
6
7 - drv_sw_scan_complete(local);
8 -
9 /* we only have to protect scan_req and hw/sw scan */
10 mutex_unlock(&local->scan_mtx);
11
12 @@ -298,6 +296,8 @@ void ieee80211_scan_completed(struct iee
13
14 ieee80211_configure_filter(local);
15
16 + drv_sw_scan_complete(local);
17 +
18 ieee80211_offchannel_return(local, true);
19
20 done: