svn commit: r234091 - head/sys/dev/ath
Adrian Chadd
adrian at FreeBSD.org
Tue Apr 10 07:27:43 UTC 2012
Author: adrian
Date: Tue Apr 10 07:27:42 2012
New Revision: 234091
URL: http://svn.freebsd.org/changeset/base/234091
Log:
Blank the aggregate stats whenever the zero ioctl is called.
Modified:
head/sys/dev/ath/if_ath.c
Modified: head/sys/dev/ath/if_ath.c
==============================================================================
--- head/sys/dev/ath/if_ath.c Tue Apr 10 07:23:37 2012 (r234090)
+++ head/sys/dev/ath/if_ath.c Tue Apr 10 07:27:42 2012 (r234091)
@@ -6487,6 +6487,8 @@ ath_ioctl(struct ifnet *ifp, u_long cmd,
error = priv_check(curthread, PRIV_DRIVER);
if (error == 0) {
memset(&sc->sc_stats, 0, sizeof(sc->sc_stats));
+ memset(&sc->sc_aggr_stats, 0,
+ sizeof(sc->sc_aggr_stats));
memset(&sc->sc_intr_stats, 0,
sizeof(sc->sc_intr_stats));
}
More information about the svn-src-head
mailing list