svn commit: r236833 - head/sys/dev/ath
Adrian Chadd
adrian at FreeBSD.org
Sun Jun 10 06:42:18 UTC 2012
Author: adrian
Date: Sun Jun 10 06:42:18 2012
New Revision: 236833
URL: http://svn.freebsd.org/changeset/base/236833
Log:
Add a new ioctl for ath(4) which returns the aggregate statistics.
Modified:
head/sys/dev/ath/if_ath.c
head/sys/dev/ath/if_athioctl.h
Modified: head/sys/dev/ath/if_ath.c
==============================================================================
--- head/sys/dev/ath/if_ath.c Sun Jun 10 06:31:54 2012 (r236832)
+++ head/sys/dev/ath/if_ath.c Sun Jun 10 06:42:18 2012 (r236833)
@@ -4848,6 +4848,9 @@ ath_ioctl(struct ifnet *ifp, u_long cmd,
sc->sc_stats.ast_tx_rate |= IEEE80211_RATE_MCS;
return copyout(&sc->sc_stats,
ifr->ifr_data, sizeof (sc->sc_stats));
+ case SIOCGATHAGSTATS:
+ return copyout(&sc->sc_aggr_stats,
+ ifr->ifr_data, sizeof (sc->sc_aggr_stats));
case SIOCZATHSTATS:
error = priv_check(curthread, PRIV_DRIVER);
if (error == 0) {
Modified: head/sys/dev/ath/if_athioctl.h
==============================================================================
--- head/sys/dev/ath/if_athioctl.h Sun Jun 10 06:31:54 2012 (r236832)
+++ head/sys/dev/ath/if_athioctl.h Sun Jun 10 06:42:18 2012 (r236833)
@@ -166,6 +166,7 @@ struct ath_stats {
#define SIOCGATHSTATS _IOWR('i', 137, struct ifreq)
#define SIOCZATHSTATS _IOWR('i', 139, struct ifreq)
+#define SIOCGATHAGSTATS _IOWR('i', 141, struct ifreq)
struct ath_diag {
char ad_name[IFNAMSIZ]; /* if name, e.g. "ath0" */
More information about the svn-src-head
mailing list