svn commit: r300383 - head/sys/net80211
Andriy Voskoboinyk
avos at FreeBSD.org
Sat May 21 23:21:43 UTC 2016
Author: avos
Date: Sat May 21 23:21:42 2016
New Revision: 300383
URL: https://svnweb.freebsd.org/changeset/base/300383
Log:
net80211: send RTM_IEEE80211_SCAN event when scan was cancelled.
wpa_supplicant(8) expects to see 'scan complete' event after every
scan command; in case, when event is not sent it will hang for
indefinite time.
PR: 209198
Modified:
head/sys/net80211/ieee80211_scan_sw.c
Modified: head/sys/net80211/ieee80211_scan_sw.c
==============================================================================
--- head/sys/net80211/ieee80211_scan_sw.c Sat May 21 23:18:23 2016 (r300382)
+++ head/sys/net80211/ieee80211_scan_sw.c Sat May 21 23:21:42 2016 (r300383)
@@ -865,10 +865,10 @@ scan_done(struct ieee80211_scan_state *s
*/
if (scandone) {
vap->iv_sta_ps(vap, 0);
- if (ss->ss_next >= ss->ss_last) {
- ieee80211_notify_scan_done(vap);
+ if (ss->ss_next >= ss->ss_last)
ic->ic_flags_ext &= ~IEEE80211_FEXT_BGSCAN;
- }
+
+ ieee80211_notify_scan_done(vap);
}
ss_priv->ss_iflags &= ~(ISCAN_CANCEL|ISCAN_ABORT);
ss_priv->ss_scanend = 0;
More information about the svn-src-head
mailing list