Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 78175fc4 authored by Sujith Manoharan's avatar Sujith Manoharan Committed by John W. Linville
Browse files

ath9k: Show only active TIDs in node_aggr

parent 1cdbaf0d
Loading
Loading
Loading
Loading
+13 −5
Original line number Diff line number Diff line
@@ -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);
		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);
					 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: