svn commit: r317278 - head/sys/net80211

Adrian Chadd adrian at FreeBSD.org
Sat Apr 22 02:12:09 UTC 2017


Author: adrian
Date: Sat Apr 22 02:12:07 2017
New Revision: 317278
URL: https://svnweb.freebsd.org/changeset/base/317278

Log:
  [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.

Modified:
  head/sys/net80211/ieee80211_proto.c
  head/sys/net80211/ieee80211_proto.h

Modified: head/sys/net80211/ieee80211_proto.c
==============================================================================
--- head/sys/net80211/ieee80211_proto.c	Sat Apr 22 01:06:23 2017	(r317277)
+++ head/sys/net80211/ieee80211_proto.c	Sat Apr 22 02:12:07 2017	(r317278)
@@ -1306,6 +1306,20 @@ ieee80211_wme_updateparams(struct ieee80
 	}
 }
 
+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)
 {

Modified: head/sys/net80211/ieee80211_proto.h
==============================================================================
--- head/sys/net80211/ieee80211_proto.h	Sat Apr 22 01:06:23 2017	(r317277)
+++ head/sys/net80211/ieee80211_proto.h	Sat Apr 22 02:12:07 2017	(r317278)
@@ -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


More information about the svn-src-head mailing list