diff options
author | sam <sam@FreeBSD.org> | 2006-07-26 03:05:34 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2006-07-26 03:05:34 +0000 |
commit | 0e7f6a5c5f52968ad4826a6c8225a044c0803fbc (patch) | |
tree | 53c976ba17733b353b34888e3c893e511aeffba9 | |
parent | 405961b2ae3a804a6f0474fcbe022dc57af7110b (diff) | |
download | FreeBSD-src-0e7f6a5c5f52968ad4826a6c8225a044c0803fbc.zip FreeBSD-src-0e7f6a5c5f52968ad4826a6c8225a044c0803fbc.tar.gz |
o move min/max beacon interval and dtim period to public location
o add min/max beacon miss threshold settings
o delete IEEE80211_SWBMISS_THRESHOLD, it was never used
MFC after: 2 weeks
-rw-r--r-- | sys/net80211/ieee80211.h | 24 | ||||
-rw-r--r-- | sys/net80211/ieee80211_var.h | 7 |
2 files changed, 24 insertions, 7 deletions
diff --git a/sys/net80211/ieee80211.h b/sys/net80211/ieee80211.h index 61b5bd6..5e96559 100644 --- a/sys/net80211/ieee80211.h +++ b/sys/net80211/ieee80211.h @@ -636,4 +636,28 @@ enum { #define IEEE80211_FRAG_MIN 256 #define IEEE80211_FRAG_MAX 2346 +/* + * Beacon interval (TU's). Min+max come from WiFi requirements. + * As above, we treat default as implementation-dependent so + * define it elsewhere. + */ +#define IEEE80211_BINTVAL_MAX 1000 /* max beacon interval (TU's) */ +#define IEEE80211_BINTVAL_MIN 25 /* min beacon interval (TU's) */ + +/* + * DTIM period (beacons). Min+max are not really defined + * by the protocol but we want them publicly visible so + * define them here. + */ +#define IEEE80211_DTIM_MAX 15 /* max DTIM period */ +#define IEEE80211_DTIM_MIN 1 /* min DTIM period */ + +/* + * Beacon miss threshold (beacons). As for DTIM, we define + * them here to be publicly visible. Note the max may be + * clamped depending on device capabilities. + */ +#define IEEE80211_HWBMISS_MIN 1 +#define IEEE80211_HWBMISS_MAX 255 + #endif /* _NET80211_IEEE80211_H_ */ diff --git a/sys/net80211/ieee80211_var.h b/sys/net80211/ieee80211_var.h index 7402801..927d143 100644 --- a/sys/net80211/ieee80211_var.h +++ b/sys/net80211/ieee80211_var.h @@ -61,17 +61,10 @@ #define IEEE80211_TXPOWER_MAX 100 /* .5 dbM (XXX units?) */ #define IEEE80211_TXPOWER_MIN 0 /* kill radio */ -#define IEEE80211_DTIM_MAX 15 /* max DTIM period */ -#define IEEE80211_DTIM_MIN 1 /* min DTIM period */ #define IEEE80211_DTIM_DEFAULT 1 /* default DTIM period */ - -/* NB: min+max come from WiFi requirements */ -#define IEEE80211_BINTVAL_MAX 1000 /* max beacon interval (TU's) */ -#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_SWBMISS_THRESHOLD 50 /* s/w bmiss threshold (TU's) */ #define IEEE80211_HWBMISS_DEFAULT 7 /* h/w bmiss threshold (beacons) */ #define IEEE80211_PS_SLEEP 0x1 /* STA is in power saving mode */ |