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
This commit is contained in:
Andriy Voskoboinyk 2016-05-21 23:21:42 +00:00
parent 6753423ccb
commit cd7d06ac7e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300383

View File

@ -865,10 +865,10 @@ scan_done(struct ieee80211_scan_state *ss, int scandone)
*/
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;