o make driver override of net80211 parameter state consistent
with methods: instead of honoring non-zero values expect drivers to write their own values on return from ieee80211_ifattach o add a define for the default h/w bmiss count MFC after: 2 weeks
This commit is contained in:
parent
e83a2cc673
commit
97bcffbd74
@ -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);
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user