Date: Tue, 26 May 2015 12:51:15 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r283567 - head/sys/net80211 Message-ID: <201505261251.t4QCpFDF030942@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: glebius Date: Tue May 26 12:51:14 2015 New Revision: 283567 URL: https://svnweb.freebsd.org/changeset/base/283567 Log: Add two counters to ieee80211com, that will be used to count transmission or receive errors that can't be associated with any vap. Sponsored by: Netflix Sponsored by: Nginx, Inc. Modified: head/sys/net80211/ieee80211_crypto.c head/sys/net80211/ieee80211_crypto_ccmp.c head/sys/net80211/ieee80211_crypto_none.c head/sys/net80211/ieee80211_crypto_tkip.c head/sys/net80211/ieee80211_crypto_wep.c head/sys/net80211/ieee80211_hwmp.c head/sys/net80211/ieee80211_ratectl_none.c head/sys/net80211/ieee80211_var.h Modified: head/sys/net80211/ieee80211_crypto.c ============================================================================== --- head/sys/net80211/ieee80211_crypto.c Tue May 26 12:40:27 2015 (r283566) +++ head/sys/net80211/ieee80211_crypto.c Tue May 26 12:51:14 2015 (r283567) @@ -33,6 +33,8 @@ __FBSDID("$FreeBSD$"); #include "opt_wlan.h" #include <sys/param.h> +#include <sys/systm.h> +#include <sys/counter.h> #include <sys/kernel.h> #include <sys/malloc.h> #include <sys/mbuf.h> Modified: head/sys/net80211/ieee80211_crypto_ccmp.c ============================================================================== --- head/sys/net80211/ieee80211_crypto_ccmp.c Tue May 26 12:40:27 2015 (r283566) +++ head/sys/net80211/ieee80211_crypto_ccmp.c Tue May 26 12:51:14 2015 (r283567) @@ -37,6 +37,7 @@ __FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/systm.h> +#include <sys/counter.h> #include <sys/mbuf.h> #include <sys/malloc.h> #include <sys/kernel.h> Modified: head/sys/net80211/ieee80211_crypto_none.c ============================================================================== --- head/sys/net80211/ieee80211_crypto_none.c Tue May 26 12:40:27 2015 (r283566) +++ head/sys/net80211/ieee80211_crypto_none.c Tue May 26 12:51:14 2015 (r283567) @@ -32,8 +32,9 @@ __FBSDID("$FreeBSD$"); #include "opt_wlan.h" #include <sys/param.h> -#include <sys/kernel.h> #include <sys/systm.h> +#include <sys/counter.h> +#include <sys/kernel.h> #include <sys/mbuf.h> #include <sys/module.h> Modified: head/sys/net80211/ieee80211_crypto_tkip.c ============================================================================== --- head/sys/net80211/ieee80211_crypto_tkip.c Tue May 26 12:40:27 2015 (r283566) +++ head/sys/net80211/ieee80211_crypto_tkip.c Tue May 26 12:51:14 2015 (r283567) @@ -37,6 +37,7 @@ __FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/systm.h> +#include <sys/counter.h> #include <sys/mbuf.h> #include <sys/malloc.h> #include <sys/kernel.h> Modified: head/sys/net80211/ieee80211_crypto_wep.c ============================================================================== --- head/sys/net80211/ieee80211_crypto_wep.c Tue May 26 12:40:27 2015 (r283566) +++ head/sys/net80211/ieee80211_crypto_wep.c Tue May 26 12:51:14 2015 (r283567) @@ -33,6 +33,7 @@ __FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/systm.h> +#include <sys/counter.h> #include <sys/mbuf.h> #include <sys/malloc.h> #include <sys/kernel.h> Modified: head/sys/net80211/ieee80211_hwmp.c ============================================================================== --- head/sys/net80211/ieee80211_hwmp.c Tue May 26 12:40:27 2015 (r283566) +++ head/sys/net80211/ieee80211_hwmp.c Tue May 26 12:51:14 2015 (r283567) @@ -41,6 +41,7 @@ __FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/systm.h> +#include <sys/counter.h> #include <sys/mbuf.h> #include <sys/malloc.h> #include <sys/kernel.h> Modified: head/sys/net80211/ieee80211_ratectl_none.c ============================================================================== --- head/sys/net80211/ieee80211_ratectl_none.c Tue May 26 12:40:27 2015 (r283566) +++ head/sys/net80211/ieee80211_ratectl_none.c Tue May 26 12:51:14 2015 (r283567) @@ -30,6 +30,7 @@ __FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/systm.h> +#include <sys/counter.h> #include <sys/kernel.h> #include <sys/malloc.h> #include <sys/module.h> Modified: head/sys/net80211/ieee80211_var.h ============================================================================== --- head/sys/net80211/ieee80211_var.h Tue May 26 12:40:27 2015 (r283566) +++ head/sys/net80211/ieee80211_var.h Tue May 26 12:51:14 2015 (r283567) @@ -135,6 +135,9 @@ struct ieee80211com { struct task ic_bmiss_task; /* deferred beacon miss hndlr */ struct task ic_chw_task; /* deferred HT CHW update */ + counter_u64_t ic_ierrors; /* input errors */ + counter_u64_t ic_oerrors; /* output errors */ + uint32_t ic_flags; /* state flags */ uint32_t ic_flags_ext; /* extended state flags */ uint32_t ic_flags_ht; /* HT state flags */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505261251.t4QCpFDF030942>