diff options
Diffstat (limited to 'net/mac80211/scan.c')
-rw-r--r-- | net/mac80211/scan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c index 5dc17c623f72..cb34cbbaa20c 100644 --- a/net/mac80211/scan.c +++ b/net/mac80211/scan.c | |||
@@ -332,7 +332,7 @@ static int ieee80211_start_sw_scan(struct ieee80211_local *local) | |||
332 | ieee80211_offchannel_stop_vifs(local); | 332 | ieee80211_offchannel_stop_vifs(local); |
333 | 333 | ||
334 | /* ensure nullfunc is transmitted before leaving operating channel */ | 334 | /* ensure nullfunc is transmitted before leaving operating channel */ |
335 | drv_flush(local, false); | 335 | ieee80211_flush_queues(local, NULL); |
336 | 336 | ||
337 | ieee80211_configure_filter(local); | 337 | ieee80211_configure_filter(local); |
338 | 338 | ||
@@ -668,7 +668,7 @@ static void ieee80211_scan_state_resume(struct ieee80211_local *local, | |||
668 | ieee80211_offchannel_stop_vifs(local); | 668 | ieee80211_offchannel_stop_vifs(local); |
669 | 669 | ||
670 | if (local->ops->flush) { | 670 | if (local->ops->flush) { |
671 | drv_flush(local, false); | 671 | ieee80211_flush_queues(local, NULL); |
672 | *next_delay = 0; | 672 | *next_delay = 0; |
673 | } else | 673 | } else |
674 | *next_delay = HZ / 10; | 674 | *next_delay = HZ / 10; |