Changeset View
Changeset View
Standalone View
Standalone View
sys/net80211/ieee80211_hostap.c
Show First 20 Lines • Show All 1,717 Lines • ▼ Show 20 Lines | case IEEE80211_FC0_SUBTYPE_BEACON: { | ||||
* Check beacon for overlapping bss w/ non ERP stations. | * Check beacon for overlapping bss w/ non ERP stations. | ||||
* If we detect one and protection is configured but not | * If we detect one and protection is configured but not | ||||
* enabled, enable it and start a timer that'll bring us | * enabled, enable it and start a timer that'll bring us | ||||
* out if we stop seeing the bss. | * out if we stop seeing the bss. | ||||
*/ | */ | ||||
if (IEEE80211_IS_CHAN_ANYG(ic->ic_curchan) && | if (IEEE80211_IS_CHAN_ANYG(ic->ic_curchan) && | ||||
scan.status == 0 && /* NB: on-channel */ | scan.status == 0 && /* NB: on-channel */ | ||||
((scan.erp & 0x100) == 0 || /* NB: no ERP, 11b sta*/ | ((scan.erp & 0x100) == 0 || /* NB: no ERP, 11b sta*/ | ||||
(scan.erp & IEEE80211_ERP_NON_ERP_PRESENT))) { | (scan.erp & IEEE80211_ERP_NON_ERP_PRESENT)) && | ||||
is11bclient(scan.rates, scan.xrates)) { | |||||
ic->ic_lastnonerp = ticks; | ic->ic_lastnonerp = ticks; | ||||
ic->ic_flags_ext |= IEEE80211_FEXT_NONERP_PR; | ic->ic_flags_ext |= IEEE80211_FEXT_NONERP_PR; | ||||
if (ic->ic_protmode != IEEE80211_PROT_NONE && | if (ic->ic_protmode != IEEE80211_PROT_NONE && | ||||
(ic->ic_flags & IEEE80211_F_USEPROT) == 0) { | (ic->ic_flags & IEEE80211_F_USEPROT) == 0) { | ||||
IEEE80211_NOTE_FRAME(vap, | IEEE80211_NOTE_FRAME(vap, | ||||
IEEE80211_MSG_ASSOC, wh, | IEEE80211_MSG_ASSOC, wh, | ||||
"non-ERP present on channel %d " | "non-ERP present on channel %d " | ||||
"(saw erp 0x%x from channel %d), " | "(saw erp 0x%x from channel %d), " | ||||
▲ Show 20 Lines • Show All 584 Lines • Show Last 20 Lines |