socsvn commit: r256554 - soc2013/ccqin/head/sys/net80211

ccqin at FreeBSD.org ccqin at FreeBSD.org
Mon Aug 26 02:45:47 UTC 2013


Author: ccqin
Date: Mon Aug 26 02:45:46 2013
New Revision: 256554
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=256554

Log:
  update protype of rssadapt_init

Modified:
  soc2013/ccqin/head/sys/net80211/ieee80211_rssadapt.c
  soc2013/ccqin/head/sys/net80211/ieee80211_rssadapt.h

Modified: soc2013/ccqin/head/sys/net80211/ieee80211_rssadapt.c
==============================================================================
--- soc2013/ccqin/head/sys/net80211/ieee80211_rssadapt.c	Mon Aug 26 00:28:57 2013	(r256553)
+++ soc2013/ccqin/head/sys/net80211/ieee80211_rssadapt.c	Mon Aug 26 02:45:46 2013	(r256554)
@@ -74,7 +74,7 @@
 				    parm##_denom)
 
 static void	rssadapt_setinterval(const struct ieee80211vap *, int);
-static void	rssadapt_init(struct ieee80211vap *);
+static void	rssadapt_init(struct ieee80211vap *, uint32_t);
 static void	rssadapt_deinit(struct ieee80211vap *);
 static void	rssadapt_updatestats(struct ieee80211_rssadapt_node *);
 static void	rssadapt_node_init(struct ieee80211_node *);
@@ -121,7 +121,7 @@
 }
 
 static void
-rssadapt_init(struct ieee80211vap *vap)
+rssadapt_init(struct ieee80211vap *vap, uint32_t capabilities)
 {
 	struct ieee80211_rssadapt *rs;
 
@@ -134,6 +134,10 @@
 		if_printf(vap->iv_ifp, "couldn't alloc ratectl structure\n");
 		return;
 	}
+
+	struct ieee80211_rc_stat * irs = IEEE80211_RATECTL_STAT(vap);
+	irs->irs_capabilities = capabilities;
+
 	rs->vap = vap;
 	rssadapt_setinterval(vap, 500 /* msecs */);
 	rssadapt_sysctlattach(vap, vap->iv_sysctl, vap->iv_oid);

Modified: soc2013/ccqin/head/sys/net80211/ieee80211_rssadapt.h
==============================================================================
--- soc2013/ccqin/head/sys/net80211/ieee80211_rssadapt.h	Mon Aug 26 00:28:57 2013	(r256553)
+++ soc2013/ccqin/head/sys/net80211/ieee80211_rssadapt.h	Mon Aug 26 02:45:46 2013	(r256554)
@@ -43,6 +43,7 @@
 #define	IEEE80211_RSSADAPT_BKTPOWER	3	/* 2**_BKTPOWER */
 
 struct ieee80211_rssadapt {
+	struct ieee80211_rc_stat rssadapt_stat;
 	const struct ieee80211vap *vap;
 	int	interval;			/* update interval (ticks) */
 };


More information about the svn-soc-all mailing list