Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Apr 2017 02:12:08 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r317278 - head/sys/net80211
Message-ID:  <201704220212.v3M2C8I4023606@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704220212.v3M2C8I4023606>