ar71xx: ag71xx: use dynamically allocated buffer for napi_stats
[openwrt.git] / package / mac80211 / patches / 550-ath9k_debugfs_show_xretry.patch
1 --- a/drivers/net/wireless/ath/ath9k/debug.c
2 +++ b/drivers/net/wireless/ath/ath9k/debug.c
3 @@ -543,6 +543,7 @@ static ssize_t read_file_xmit(struct fil
4
5 PR("MPDUs Queued: ", queued);
6 PR("MPDUs Completed: ", completed);
7 + PR("MPDUs XRetried: ", xretries);
8 PR("Aggregates: ", a_aggr);
9 PR("AMPDUs Queued HW:", a_queued_hw);
10 PR("AMPDUs Queued SW:", a_queued_sw);
11 @@ -798,7 +799,10 @@ void ath_debug_stat_tx(struct ath_softc
12 else
13 TX_STAT_INC(qnum, a_completed);
14 } else {
15 - TX_STAT_INC(qnum, completed);
16 + if (bf_isxretried(bf))
17 + TX_STAT_INC(qnum, xretries);
18 + else
19 + TX_STAT_INC(qnum, completed);
20 }
21
22 if (ts->ts_status & ATH9K_TXERR_FIFO)
23 --- a/drivers/net/wireless/ath/ath9k/debug.h
24 +++ b/drivers/net/wireless/ath/ath9k/debug.h
25 @@ -112,6 +112,7 @@ struct ath_tx_stats {
26 u32 tx_bytes_all;
27 u32 queued;
28 u32 completed;
29 + u32 xretries;
30 u32 a_aggr;
31 u32 a_queued_hw;
32 u32 a_queued_sw;
This page took 0.042087 seconds and 5 git commands to generate.