From 3c6b488b017ae7fbfa6c27c2195c7ee99cccbaa7 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Fri, 29 Apr 2016 01:51:27 +0000 Subject: [PATCH] [ath] Add counters for STBC TX and LDPC TX. This is a big no-op until the TX path changes to enable LDPC TX are added. --- sys/dev/ath/if_ath_sysctl.c | 6 ++++++ sys/dev/ath/if_athioctl.h | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/sys/dev/ath/if_ath_sysctl.c b/sys/dev/ath/if_ath_sysctl.c index 9dff210df7f..ab829dfa6ef 100644 --- a/sys/dev/ath/if_ath_sysctl.c +++ b/sys/dev/ath/if_ath_sysctl.c @@ -1285,6 +1285,12 @@ ath_sysctl_stats_attach(struct ath_softc *sc) SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_rx_stbc", CTLFLAG_RD, &sc->sc_stats.ast_rx_stbc, 0, "Number of STBC frames received"); + SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_stbc", + CTLFLAG_RD, &sc->sc_stats.ast_tx_stbc, 0, + "Number of STBC frames transmitted"); + SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_ldpc", + CTLFLAG_RD, &sc->sc_stats.ast_tx_ldpc, 0, + "Number of LDPC frames transmitted"); /* 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 e9ce887fd96..7b69ab5fe6c 100644 --- a/sys/dev/ath/if_athioctl.h +++ b/sys/dev/ath/if_athioctl.h @@ -166,7 +166,9 @@ struct ath_stats { u_int32_t ast_tx_node_psq_overflow; u_int32_t ast_rx_stbc; /* RX STBC frame */ u_int32_t ast_tx_nodeq_overflow; /* node sw queue overflow */ - u_int32_t ast_pad[12]; + u_int32_t ast_tx_ldpc; /* TX LDPC frame */ + u_int32_t ast_tx_stbc; /* TX STBC frame */ + u_int32_t ast_pad[10]; }; #define SIOCGATHSTATS _IOWR('i', 137, struct ifreq)