summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_input.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2006-01-23 21:02:49 +0000
committersam <sam@FreeBSD.org>2006-01-23 21:02:49 +0000
commit90a825465e422e960551a43467f2051cf0326986 (patch)
tree9fe33178556b0f81bedc52eac64b0576ca6c432c /sys/net80211/ieee80211_input.c
parentfed7f4fefb0451c064e888bb8b0c31b36909436d (diff)
downloadFreeBSD-src-90a825465e422e960551a43467f2051cf0326986.zip
FreeBSD-src-90a825465e422e960551a43467f2051cf0326986.tar.gz
s/w beacon miss facility; need to add knobs to fiddle with the settings
MFC after: 2 weeks
Diffstat (limited to 'sys/net80211/ieee80211_input.c')
-rw-r--r--sys/net80211/ieee80211_input.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_input.c b/sys/net80211/ieee80211_input.c
index 69738ab..1c2fa86 100644
--- a/sys/net80211/ieee80211_input.c
+++ b/sys/net80211/ieee80211_input.c
@@ -1901,6 +1901,9 @@ ieee80211_recv_mgmt(struct ieee80211com *ic, struct mbuf *m0,
/* record tsf of last beacon */
memcpy(ni->ni_tstamp.data, scan.tstamp,
sizeof(ni->ni_tstamp));
+ /* count beacon frame for s/w bmiss handling */
+ ic->ic_swbmiss_count++;
+ ic->ic_bmiss_count = 0;
if (ni->ni_erp != scan.erp) {
IEEE80211_DPRINTF(ic, IEEE80211_MSG_ASSOC,
"[%s] erp change: was 0x%x, now 0x%x\n",
@@ -1944,7 +1947,6 @@ ieee80211_recv_mgmt(struct ieee80211com *ic, struct mbuf *m0,
if (ic->ic_flags & IEEE80211_F_SCAN)
ieee80211_add_scan(ic, &scan, wh,
subtype, rssi, rstamp);
- ic->ic_bmiss_count = 0;
return;
}
/*
OpenPOWER on IntegriCloud