MFC: make driver override of net80211 parameter state consistent with methods

Approved by:	re (scottl)
This commit is contained in:
sam 2006-03-11 19:25:23 +00:00
parent 221da214ac
commit 68f03e9a31
2 changed files with 4 additions and 5 deletions

View File

@ -188,14 +188,12 @@ ieee80211_ifattach(struct ieee80211com *ic)
ic->ic_flags |= IEEE80211_F_BURST;
(void) ieee80211_setmode(ic, ic->ic_curmode);
if (ic->ic_bintval == 0)
ic->ic_bintval = IEEE80211_BINTVAL_DEFAULT;
ic->ic_bmissthreshold = 7; /* default 7 beacons */
ic->ic_bintval = IEEE80211_BINTVAL_DEFAULT;
ic->ic_bmissthreshold = IEEE80211_HWBMISS_DEFAULT;
ic->ic_dtim_period = IEEE80211_DTIM_DEFAULT;
IEEE80211_BEACON_LOCK_INIT(ic, "beacon");
if (ic->ic_lintval == 0)
ic->ic_lintval = ic->ic_bintval;
ic->ic_lintval = ic->ic_bintval;
ic->ic_txpowlimit = IEEE80211_TXPOWER_MAX;
ieee80211_node_attach(ic);

View File

@ -72,6 +72,7 @@
#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 */
#define IEEE80211_PS_MAX_QUEUE 50 /* maximum saved packets */