From d6efa33001c290b06592d149403e6c780070123d Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Mon, 21 Feb 2011 19:19:05 +0000 Subject: [PATCH] Add a new counter which tracks frames TX'ed with HT protection. --- sys/dev/ath/if_ath.c | 2 ++ sys/dev/ath/if_athioctl.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index 63375bfb3898..cacef5c18ca8 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -6604,6 +6604,8 @@ ath_sysctl_stats_attach(struct ath_softc *sc) SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_post_crc_err", CTLFLAG_RD, &sc->sc_stats.ast_rx_post_crc_err, 0, ""); SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_decrypt_busy_err", CTLFLAG_RD, &sc->sc_stats.ast_rx_decrypt_busy_err, 0, ""); SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_hi_rx_chain", CTLFLAG_RD, &sc->sc_stats.ast_rx_hi_rx_chain, 0, ""); + SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_htprotect", CTLFLAG_RD, + &sc->sc_stats.ast_tx_htprotect, 0, "HT tx frames with protection"); /* Attach the RX phy error array */ ath_sysctl_stats_attach_rxphyerr(sc, child); diff --git a/sys/dev/ath/if_athioctl.h b/sys/dev/ath/if_athioctl.h index 8ef2b51814c2..433fd1ee8ff8 100644 --- a/sys/dev/ath/if_athioctl.h +++ b/sys/dev/ath/if_athioctl.h @@ -127,7 +127,8 @@ struct ath_stats { u_int32_t ast_rx_post_crc_err; u_int32_t ast_rx_decrypt_busy_err; u_int32_t ast_rx_hi_rx_chain; - u_int32_t ast_pad[4]; + u_int32_t ast_tx_htprotect; /* HT tx frames with protection */ + u_int32_t ast_pad[3]; }; #define SIOCGATHSTATS _IOWR('i', 137, struct ifreq)