diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-10-07 00:28:13 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-10-11 20:41:13 (GMT) |
commit | 030d6294351bfb0e29e2814bb8f6e6c2e25ffb54 (patch) | |
tree | 0806ba8083596a73a0c274dc251bcddadfc08814 /drivers/net/wireless/ath/ath9k/xmit.c | |
parent | 34d25810c7e73e49eed39a5d66170f3516a3c734 (diff) | |
download | linux-fsl-qoriq-030d6294351bfb0e29e2814bb8f6e6c2e25ffb54.tar.xz |
ath9k: keep track of what's triggering hardware resets
Export how many times each of the reset triggers has fired through debugfs.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/xmit.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/xmit.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index 49f1543..7c4dae2 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c @@ -564,8 +564,10 @@ static void ath_tx_complete_aggr(struct ath_softc *sc, struct ath_txq *txq, rcu_read_unlock(); - if (needreset) + if (needreset) { + RESET_STAT_INC(sc, RESET_TYPE_TX_ERROR); ieee80211_queue_work(sc->hw, &sc->hw_reset_work); + } } static bool ath_lookup_legacy(struct ath_buf *bf) @@ -2206,6 +2208,7 @@ static void ath_tx_complete_poll_work(struct work_struct *work) if (needreset) { ath_dbg(ath9k_hw_common(sc->sc_ah), ATH_DBG_RESET, "tx hung, resetting the chip\n"); + RESET_STAT_INC(sc, RESET_TYPE_TX_HANG); ieee80211_queue_work(sc->hw, &sc->hw_reset_work); } |