o reset aggressive mode flag; it was being left set after marking an

interface down
o only allow the first vap to initialize shared wme parameters
This commit is contained in:
Sam Leffler 2009-02-20 21:57:05 +00:00
parent 67ce310a5a
commit a4b3c7a506

View File

@ -853,7 +853,7 @@ ieee80211_wme_initparams_locked(struct ieee80211vap *vap)
IEEE80211_LOCK_ASSERT(ic); IEEE80211_LOCK_ASSERT(ic);
if ((ic->ic_caps & IEEE80211_C_WME) == 0) if ((ic->ic_caps & IEEE80211_C_WME) == 0 || ic->ic_nrunning > 1)
return; return;
/* /*
@ -905,6 +905,7 @@ ieee80211_wme_initparams_locked(struct ieee80211vap *vap)
*/ */
wme->wme_hipri_switch_thresh = wme->wme_hipri_switch_thresh =
(HIGH_PRI_SWITCH_THRESH * vap->iv_bss->ni_intval) / 100; (HIGH_PRI_SWITCH_THRESH * vap->iv_bss->ni_intval) / 100;
wme->wme_flags &= ~WME_F_AGGRMODE;
ieee80211_wme_updateparams(vap); ieee80211_wme_updateparams(vap);
} }
} }