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
This commit is contained in:
Sam Leffler 2006-01-23 20:57:30 +00:00
parent 1c0b0f523d
commit 233e00212e
2 changed files with 2 additions and 2 deletions

View File

@ -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");

View File

@ -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 */