summaryrefslogtreecommitdiffstats
path: root/sys/net80211
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2010-10-01 09:18:30 +0000
committeradrian <adrian@FreeBSD.org>2010-10-01 09:18:30 +0000
commit0b4711038c57998cf37f08940978bb7fba4e0ee7 (patch)
tree074de8d60538e4d0709309a1f9474d61cf128df1 /sys/net80211
parent57b68bbf1163b956fb3b92b5fc2be5efc3975ae5 (diff)
downloadFreeBSD-src-0b4711038c57998cf37f08940978bb7fba4e0ee7.zip
FreeBSD-src-0b4711038c57998cf37f08940978bb7fba4e0ee7.tar.gz
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.
Diffstat (limited to 'sys/net80211')
-rw-r--r--sys/net80211/ieee80211_scan_sta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_scan_sta.c b/sys/net80211/ieee80211_scan_sta.c
index 294a63e..a1d0c42 100644
--- a/sys/net80211/ieee80211_scan_sta.c
+++ b/sys/net80211/ieee80211_scan_sta.c
@@ -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);
OpenPOWER on IntegriCloud