[net80211] add methods to fetch the global and per-VAP WME parameters.
For now there isn't any per-VAP WME state. The eventual aim is to migrate the driver direct use of WME parameters over to use these methods as appropriate (global for most devices, per-VAP for firmware NICs that support it) in preparation for actual per-VAP WME (and other thing) state change support.
This commit is contained in:
parent
f03be66539
commit
d03baf3578
@ -1306,6 +1306,20 @@ ieee80211_wme_updateparams(struct ieee80211vap *vap)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
ieee80211_wme_vap_getparams(struct ieee80211vap *vap, struct chanAccParams *wp)
|
||||
{
|
||||
|
||||
memcpy(wp, &vap->iv_ic->ic_wme.wme_chanParams, sizeof(*wp));
|
||||
}
|
||||
|
||||
void
|
||||
ieee80211_wme_ic_getparams(struct ieee80211com *ic, struct chanAccParams *wp)
|
||||
{
|
||||
|
||||
memcpy(wp, &ic->ic_wme.wme_chanParams, sizeof(*wp));
|
||||
}
|
||||
|
||||
static void
|
||||
parent_updown(void *arg, int npending)
|
||||
{
|
||||
|
@ -292,6 +292,10 @@ struct ieee80211_wme_state {
|
||||
void ieee80211_wme_initparams(struct ieee80211vap *);
|
||||
void ieee80211_wme_updateparams(struct ieee80211vap *);
|
||||
void ieee80211_wme_updateparams_locked(struct ieee80211vap *);
|
||||
void ieee80211_wme_vap_getparams(struct ieee80211vap *vap,
|
||||
struct chanAccParams *);
|
||||
void ieee80211_wme_ic_getparams(struct ieee80211com *ic,
|
||||
struct chanAccParams *);
|
||||
|
||||
/*
|
||||
* Return the WME TID from a QoS frame. If no TID
|
||||
|
Loading…
x
Reference in New Issue
Block a user