ath9k: Improve debugfs printout for stations.
Add interface address so it can be mapped to a local interface. Add max-ampdu and mpdu-density. Print out the tid->baw_size Signed-off-by: Ben Greear <greearb@candelatech.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
7b7eab6fc1
commit
7e1e386421
@@ -708,24 +708,29 @@ static ssize_t read_file_stations(struct file *file, char __user *user_buf,
|
||||
|
||||
len += snprintf(buf + len, size - len,
|
||||
"Stations:\n"
|
||||
" tid: addr sched paused buf_q-empty an ac\n"
|
||||
" tid: addr sched paused buf_q-empty an ac baw\n"
|
||||
" ac: addr sched tid_q-empty txq\n");
|
||||
|
||||
spin_lock(&sc->nodes_lock);
|
||||
list_for_each_entry(an, &sc->nodes, list) {
|
||||
unsigned short ma = an->maxampdu;
|
||||
if (ma == 0)
|
||||
ma = 65535; /* see ath_lookup_rate */
|
||||
len += snprintf(buf + len, size - len,
|
||||
"%pM\n", an->sta->addr);
|
||||
"iface: %pM sta: %pM max-ampdu: %hu mpdu-density: %uus\n",
|
||||
an->vif->addr, an->sta->addr, ma,
|
||||
(unsigned int)(an->mpdudensity));
|
||||
if (len >= size)
|
||||
goto done;
|
||||
|
||||
for (q = 0; q < WME_NUM_TID; q++) {
|
||||
struct ath_atx_tid *tid = &(an->tid[q]);
|
||||
len += snprintf(buf + len, size - len,
|
||||
" tid: %p %s %s %i %p %p\n",
|
||||
" tid: %p %s %s %i %p %p %hu\n",
|
||||
tid, tid->sched ? "sched" : "idle",
|
||||
tid->paused ? "paused" : "running",
|
||||
skb_queue_empty(&tid->buf_q),
|
||||
tid->an, tid->ac);
|
||||
tid->an, tid->ac, tid->baw_size);
|
||||
if (len >= size)
|
||||
goto done;
|
||||
}
|
||||
|
Reference in New Issue
Block a user