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
This commit is contained in:
sam 2006-07-26 03:05:34 +00:00
parent 405961b2ae
commit 0e7f6a5c5f
2 changed files with 24 additions and 7 deletions

View File

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

View File

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