summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2016-04-29 01:51:27 +0000
committeradrian <adrian@FreeBSD.org>2016-04-29 01:51:27 +0000
commit6e38d23dd7160098211cee6994339710a1fb4289 (patch)
tree78b0a58de962ebff55f2c6df18f805d048a88844 /sys/dev
parentad764091c376dcb20b3feee70d7c54a5065863b1 (diff)
downloadFreeBSD-src-6e38d23dd7160098211cee6994339710a1fb4289.zip
FreeBSD-src-6e38d23dd7160098211cee6994339710a1fb4289.tar.gz
[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.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ath/if_ath_sysctl.c6
-rw-r--r--sys/dev/ath/if_athioctl.h4
2 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/ath/if_ath_sysctl.c b/sys/dev/ath/if_ath_sysctl.c
index 9dff210..ab829df 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 e9ce887..7b69ab5 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)
OpenPOWER on IntegriCloud