Blank the aggregate stats whenever the zero ioctl is called.

This commit is contained in:
Adrian Chadd 2012-04-10 07:27:42 +00:00
parent 9467e3f3fc
commit 41b6b5074c

View File

@ -6487,6 +6487,8 @@ ath_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
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));
}