ath9k: Report txerr-filtered errors in debugfs.
PATCH 1/2 ath9k: Report txerr-filtered errors in debugfs.
From: Ben Greear <[email protected]>
Signed-off-by Ben Greear <[email protected]>
--- drivers/net/wireless/ath/ath9k/debug.c | 3 +++ drivers/net/wireless/ath/ath9k/debug.h | 2 ++ 2 files changed, 5 insertions(+), 0 deletions(-)
drivers/net/wireless/ath/ath9k/debug.c +3 -0
@@ -537,6 +537,7 @@ static ssize_t read_file_xmit(struct file *file, char __user *user_buf,PR ("AMPDUs Completed:" , a_completed);PR ("AMPDUs Retried: " , a_retries);PR ("AMPDUs XRetried: " , a_xretries); +PR ("TXERR Filtered: " , txerr_filtered);PR ("FIFO Underrun: " , fifo_underrun);PR ("TXOP Exceeded: " , xtxop);PR ("TXTIMER Expiry: " , timer_exp);
@@ -756,6 +757,8 @@ void ath_debug_stat_tx(struct ath_softc *sc, struct ath_buf *bf,TX_STAT_INC (qnum, completed); } +if (ts->ts_status &ATH9K_TXERR_FILT ) +TX_STAT_INC (qnum, txerr_filtered);if (ts->ts_status &ATH9K_TXERR_FIFO )TX_STAT_INC (qnum, fifo_underrun);if (ts->ts_status &ATH9K_TXERR_XTXOP )
drivers/net/wireless/ath/ath9k/debug.h +2 -0
@@ -142,6 +142,7 @@ struct ath_interrupt_stats {* @a_completed: Total AMPDUs completed * @a_retries: No. of AMPDUs retried (SW) * @a_xretries: No. of AMPDUs dropped due to xretries +* @txerr_filtered: No. of frames with TXERR_FILT flag set. * @fifo_underrun: FIFO underrun occurrences Valid only for: - non-aggregate condition.
@@ -168,6 +169,7 @@ struct ath_tx_stats {u32 a_completed;u32 a_retries;u32 a_xretries; +u32 txerr_filtered;u32 fifo_underrun;u32 xtxop;u32 timer_exp;
Signature · 1 line
1.7.3.4
PATCH 2/2 ath9k: Report rx-crc-errors in ethtool stats.
From: Ben Greear <[email protected]>
Signed-off-by Ben Greear <[email protected]>
--- drivers/net/wireless/ath/ath9k/debug.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/net/wireless/ath/ath9k/debug.c +2 -0
@@ -1912,6 +1912,7 @@ static const char ath9k_gstrings_stats[][ETH_GSTRING_LEN] = {AMKSTR (d_tx_desc_cfg_err),AMKSTR (d_tx_data_underrun),AMKSTR (d_tx_delim_underrun), +"d_rx_crc_err" ,"d_rx_decrypt_crc_err" ,"d_rx_phy_err" , "d_rx_mic_err",
@@ -1992,6 +1993,7 @@ void ath9k_get_et_stats(struct ieee80211_hw *hw,AWDATA (data_underrun);AWDATA (delim_underrun); +AWDATA_RX (crc_err);AWDATA_RX (decrypt_crc_err);AWDATA_RX (phy_err);AWDATA_RX (mic_err);
Signature · 1 line
1.7.3.4