Honor the IEEE80211_SCAN_BGSCAN flag, which makes it possible to actually

request a background scan using IEEE80211_IOC_SCAN_BGSCAN.

MFC after:	1 month
This commit is contained in:
Bernhard Schmidt 2011-01-30 11:23:59 +00:00
parent 5ad703e0c8
commit abf0f91e13

View File

@ -416,6 +416,8 @@ start_scan_locked(const struct ieee80211_scanner *scan,
vap->iv_stats.is_scan_passive++;
if (flags & IEEE80211_SCAN_FLUSH)
ss->ss_ops->scan_flush(ss);
if (flags & IEEE80211_SCAN_BGSCAN)
ic->ic_flags_ext |= IEEE80211_FEXT_BGSCAN;
/* NB: flush frames rx'd before 1st channel change */
SCAN_PRIVATE(ss)->ss_iflags |= ISCAN_DISCARD;