summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_var.h
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2005-12-12 18:04:44 +0000
committersam <sam@FreeBSD.org>2005-12-12 18:04:44 +0000
commit2911d079c2167e81ddbbf13a22438cb4afd104c9 (patch)
tree50d32d0fd45915775843eb2f2fa292bef499e8a2 /sys/net80211/ieee80211_var.h
parent8c5ce57de47aee09b1f0055747544c25e39f41e5 (diff)
downloadFreeBSD-src-2911d079c2167e81ddbbf13a22438cb4afd104c9.zip
FreeBSD-src-2911d079c2167e81ddbbf13a22438cb4afd104c9.tar.gz
Add ieee80211_beacon_miss for processing sta mode beacon miss events
in the 802.11 layer: we send a directed probe request frame to the current ap bmiss_max times (w/o answer) before scanning for a new ap. MFC after: 2 weeks
Diffstat (limited to 'sys/net80211/ieee80211_var.h')
-rw-r--r--sys/net80211/ieee80211_var.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_var.h b/sys/net80211/ieee80211_var.h
index b4be276..3c918f5 100644
--- a/sys/net80211/ieee80211_var.h
+++ b/sys/net80211/ieee80211_var.h
@@ -70,6 +70,8 @@
#define IEEE80211_BINTVAL_MIN 25 /* min beacon interval (TU's) */
#define IEEE80211_BINTVAL_DEFAULT 100 /* default beacon interval (TU's) */
+#define IEEE80211_BMISS_MAX 2 /* maximum consecutive bmiss allowed */
+
#define IEEE80211_PS_SLEEP 0x1 /* STA is in power saving mode */
#define IEEE80211_PS_MAX_QUEUE 50 /* maximum saved packets */
@@ -142,6 +144,8 @@ struct ieee80211com {
int ic_mcast_rate; /* rate for mcast frames */
u_int16_t ic_rtsthreshold;
u_int16_t ic_fragthreshold;
+ 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*);
void (*ic_node_free)(struct ieee80211_node *);
void (*ic_node_cleanup)(struct ieee80211_node *);
OpenPOWER on IntegriCloud