summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_var.h
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_var.h
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_var.h')
-rw-r--r--sys/net80211/ieee80211_var.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_var.h b/sys/net80211/ieee80211_var.h
index b36beea..f920f59 100644
--- a/sys/net80211/ieee80211_var.h
+++ b/sys/net80211/ieee80211_var.h
@@ -71,6 +71,7 @@
#define IEEE80211_BINTVAL_DEFAULT 100 /* default beacon interval (TU's) */
#define IEEE80211_BMISS_MAX 2 /* maximum consecutive bmiss allowed */
+#define IEEE80211_SWBMISS_THRESHOLD 50 /* s/w bmiss threshold (TU's) */
#define IEEE80211_PS_SLEEP 0x1 /* STA is in power saving mode */
#define IEEE80211_PS_MAX_QUEUE 50 /* maximum saved packets */
@@ -83,6 +84,7 @@
#define IEEE80211_MS_TO_TU(x) (((x) * 1024) / 1000)
#define IEEE80211_TU_TO_MS(x) (((x) * 1000) / 1024)
+#define IEEE80211_TU_TO_TICKS(x)(((x) * hz) / 1024)
struct ieee80211_aclator;
struct sysctl_ctx_list;
@@ -147,6 +149,9 @@ struct ieee80211com {
u_int8_t ic_bmissthreshold;
u_int8_t ic_bmiss_count; /* current beacon miss count */
int ic_bmiss_max; /* max bmiss before scan */
+ u_int16_t ic_swbmiss_count;/* beacons in last period */
+ u_int16_t ic_swbmiss_period;/* s/w bmiss period */
+ struct callout ic_swbmiss; /* s/w beacon miss timer */
struct ieee80211_node *(*ic_node_alloc)(struct ieee80211_node_table*);
void (*ic_node_free)(struct ieee80211_node *);
void (*ic_node_cleanup)(struct ieee80211_node *);
@@ -247,6 +252,7 @@ struct ieee80211com {
/* 0x00000006 reserved */
#define IEEE80211_FEXT_BGSCAN 0x00000008 /* STATUS: enable full bgscan completion */
#define IEEE80211_FEXT_ERPUPDATE 0x00000200 /* STATUS: update ERP element */
+#define IEEE80211_FEXT_SWBMISS 0x00000400 /* CONF: do bmiss in s/w */
/* ic_caps */
#define IEEE80211_C_WEP 0x00000001 /* CAPABILITY: WEP available */
OpenPOWER on IntegriCloud