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));
                }
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to