Changeset View
Changeset View
Standalone View
Standalone View
head/sys/net80211/ieee80211_scan_sta.c
Show First 20 Lines • Show All 1,330 Lines • ▼ Show 20 Lines | if (ieee80211_time_after(ticks, ic->ic_lastscan + vap->iv_scanvalid)) { | ||||
* Scan cache contents are too old; force a scan now | * Scan cache contents are too old; force a scan now | ||||
* if possible so we have current state to make a | * if possible so we have current state to make a | ||||
* decision with. We don't kick off a bg scan if | * decision with. We don't kick off a bg scan if | ||||
* we're using dynamic turbo and boosted or if the | * we're using dynamic turbo and boosted or if the | ||||
* channel is busy. | * channel is busy. | ||||
* XXX force immediate switch on scan complete | * XXX force immediate switch on scan complete | ||||
*/ | */ | ||||
if (!IEEE80211_IS_CHAN_DTURBO(ic->ic_curchan) && | if (!IEEE80211_IS_CHAN_DTURBO(ic->ic_curchan) && | ||||
ieee80211_time_after(ticks, ic->ic_lastdata + vap->iv_bgscanidle)) | ((vap->iv_flags_ext & IEEE80211_FEXT_SCAN_OFFLOAD) || | ||||
ieee80211_time_after(ticks, ic->ic_lastdata + vap->iv_bgscanidle))) | |||||
ieee80211_bg_scan(vap, 0); | ieee80211_bg_scan(vap, 0); | ||||
return; | return; | ||||
} | } | ||||
se->base.se_rssi = curRssi; | se->base.se_rssi = curRssi; | ||||
selbs = select_bss(ss, vap, IEEE80211_MSG_ROAM); | selbs = select_bss(ss, vap, IEEE80211_MSG_ROAM); | ||||
if (selbs != NULL && selbs != se) { | if (selbs != NULL && selbs != se) { | ||||
struct ieee80211_channel *chan; | struct ieee80211_channel *chan; | ||||
▲ Show 20 Lines • Show All 588 Lines • Show Last 20 Lines |