summaryrefslogtreecommitdiffstats
path: root/sys/net80211
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2006-01-23 20:57:30 +0000
committersam <sam@FreeBSD.org>2006-01-23 20:57:30 +0000
commit311f7976bc51e2fa5c6ee9c32f553da839e09f70 (patch)
tree4dba62067315e1f9d3a0ab7a0f0a9c0481a92562 /sys/net80211
parent4bd286d8706198e8fdf78e2070723feec2e0f391 (diff)
downloadFreeBSD-src-311f7976bc51e2fa5c6ee9c32f553da839e09f70.zip
FreeBSD-src-311f7976bc51e2fa5c6ee9c32f553da839e09f70.tar.gz
switch beacon miss threshold from a time to the number of beacon
frames; the time value was implicitly based on the beacon interval but never being updated so wrong when the negotiated beacon interval was not 100 TU
Diffstat (limited to 'sys/net80211')
-rw-r--r--sys/net80211/ieee80211.c2
-rw-r--r--sys/net80211/ieee80211_var.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c
index 3660696..29c2759 100644
--- a/sys/net80211/ieee80211.c
+++ b/sys/net80211/ieee80211.c
@@ -190,7 +190,7 @@ ieee80211_ifattach(struct ieee80211com *ic)
if (ic->ic_bintval == 0)
ic->ic_bintval = IEEE80211_BINTVAL_DEFAULT;
- ic->ic_bmisstimeout = 7*ic->ic_bintval; /* default 7 beacons */
+ ic->ic_bmissthreshold = 7; /* default 7 beacons */
ic->ic_dtim_period = IEEE80211_DTIM_DEFAULT;
IEEE80211_BEACON_LOCK_INIT(ic, "beacon");
diff --git a/sys/net80211/ieee80211_var.h b/sys/net80211/ieee80211_var.h
index 11aaacf..b36beea 100644
--- a/sys/net80211/ieee80211_var.h
+++ b/sys/net80211/ieee80211_var.h
@@ -144,6 +144,7 @@ struct ieee80211com {
int ic_mcast_rate; /* rate for mcast frames */
u_int16_t ic_rtsthreshold;
u_int16_t ic_fragthreshold;
+ u_int8_t ic_bmissthreshold;
u_int8_t ic_bmiss_count; /* current beacon miss count */
int ic_bmiss_max; /* max bmiss before scan */
struct ieee80211_node *(*ic_node_alloc)(struct ieee80211_node_table*);
@@ -157,7 +158,6 @@ struct ieee80211com {
u_int16_t ic_txmax; /* max tx retry count */
u_int16_t ic_txlifetime; /* tx lifetime */
u_int16_t ic_txpowlimit; /* global tx power limit */
- u_int16_t ic_bmisstimeout;/* beacon miss threshold (ms) */
u_int16_t ic_nonerpsta; /* # non-ERP stations */
u_int16_t ic_longslotsta; /* # long slot time stations */
int ic_mgt_timer; /* mgmt timeout */
OpenPOWER on IntegriCloud