Add TX carrier sense timeout statistics.
This commit is contained in:
parent
7af8d8ce83
commit
0cf0858c21
@ -1357,6 +1357,8 @@ ath_intr(void *arg)
|
||||
}
|
||||
if (status & HAL_INT_GTT)
|
||||
sc->sc_stats.ast_tx_timeout++;
|
||||
if (status & HAL_INT_CST)
|
||||
sc->sc_stats.ast_tx_cst++;
|
||||
if (status & HAL_INT_MIB) {
|
||||
sc->sc_stats.ast_mib++;
|
||||
/*
|
||||
@ -1561,9 +1563,9 @@ ath_init(void *arg)
|
||||
if (sc->sc_needmib && ic->ic_opmode == IEEE80211_M_STA)
|
||||
sc->sc_imask |= HAL_INT_MIB;
|
||||
|
||||
/* Enable global TX timeout statistics if available */
|
||||
/* Enable global TX timeout and carrier sense timeout if available */
|
||||
if (ath_hal_gtxto_supported(ah))
|
||||
sc->sc_imask |= HAL_INT_GTT;
|
||||
sc->sc_imask |= (HAL_INT_GTT | HAL_INT_CST);
|
||||
|
||||
DPRINTF(sc, ATH_DEBUG_RESET, "%s: imask=0x%x\n",
|
||||
__func__, sc->sc_imask);
|
||||
|
@ -707,6 +707,8 @@ ath_sysctl_stats_attach(struct ath_softc *sc)
|
||||
&sc->sc_stats.ast_rx_hitqueueend, 0, "RX hit queue end");
|
||||
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_timeout", CTLFLAG_RD,
|
||||
&sc->sc_stats.ast_tx_timeout, 0, "TX Global Timeout");
|
||||
SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_tx_cst", CTLFLAG_RD,
|
||||
&sc->sc_stats.ast_tx_cst, 0, "TX Carrier Sense Timeout");
|
||||
|
||||
/* Attach the RX phy error array */
|
||||
ath_sysctl_stats_attach_rxphyerr(sc, child);
|
||||
|
@ -130,6 +130,7 @@ struct ath_stats {
|
||||
u_int32_t ast_tx_htprotect; /* HT tx frames with protection */
|
||||
u_int32_t ast_rx_hitqueueend;
|
||||
u_int32_t ast_tx_timeout; /* Global TX timeout */
|
||||
u_int32_t ast_tx_cst; /* Carrier sense timeout */
|
||||
u_int32_t ast_pad[16];
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user