Fix background roaming to actually work in AUTO roaming mode.

IEEE80211_F_BGSCAN is a vap flag, not a channel flag. So although bgscan
occured, sta_roam_check() would never be called.
This commit is contained in:
Adrian Chadd 2010-10-01 09:18:30 +00:00
parent de02b15928
commit 4e62eb6c85
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213321

View file

@ -1361,7 +1361,7 @@ sta_age(struct ieee80211_scan_state *ss)
KASSERT(vap->iv_opmode == IEEE80211_M_STA,
("wrong mode %u", vap->iv_opmode));
if (vap->iv_roaming == IEEE80211_ROAMING_AUTO &&
(vap->iv_ic->ic_flags & IEEE80211_F_BGSCAN) &&
(vap->iv_flags & IEEE80211_F_BGSCAN) &&
vap->iv_state >= IEEE80211_S_RUN)
/* XXX vap is implicit */
sta_roam_check(ss, vap);