summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/debug_sta.c
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2014-01-13 07:29:28 +0530
committerJohn W. Linville <linville@tuxdriver.com>2014-01-13 14:50:04 -0500
commit78175fc45da3066337fcacbff562097bfda2ce7e (patch)
treeca56fde36f76dd56928b70453f4aff6b22a16aa4 /drivers/net/wireless/ath/ath9k/debug_sta.c
parent1cdbaf0d3410b334255f638a2d69286ce2d775ec (diff)
downloadblackbird-obmc-linux-78175fc45da3066337fcacbff562097bfda2ce7e.tar.gz
blackbird-obmc-linux-78175fc45da3066337fcacbff562097bfda2ce7e.zip
ath9k: Show only active TIDs in node_aggr
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/debug_sta.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/debug_sta.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath9k/debug_sta.c b/drivers/net/wireless/ath/ath9k/debug_sta.c
index 3fe2bab2c4f5..3d119689d08a 100644
--- a/drivers/net/wireless/ath/ath9k/debug_sta.c
+++ b/drivers/net/wireless/ath/ath9k/debug_sta.c
@@ -66,11 +66,19 @@ static ssize_t read_file_node_aggr(struct file *file, char __user *user_buf,
tidno < IEEE80211_NUM_TIDS; tidno++, tid++) {
txq = tid->ac->txq;
ath_txq_lock(sc, txq);
- len += scnprintf(buf + len, size - len,
- "%3d%11d%10d%10d%10d%10d%9d%6d%8d\n",
- tid->tidno, tid->seq_start, tid->seq_next,
- tid->baw_size, tid->baw_head, tid->baw_tail,
- tid->bar_index, tid->sched, tid->paused);
+ if (tid->active) {
+ len += scnprintf(buf + len, size - len,
+ "%3d%11d%10d%10d%10d%10d%9d%6d%8d\n",
+ tid->tidno,
+ tid->seq_start,
+ tid->seq_next,
+ tid->baw_size,
+ tid->baw_head,
+ tid->baw_tail,
+ tid->bar_index,
+ tid->sched,
+ tid->paused);
+ }
ath_txq_unlock(sc, txq);
}
exit:
OpenPOWER on IntegriCloud