Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 172212
b: refs/heads/master
c: b136b3a
h: refs/heads/master
v: v3
  • Loading branch information
Samuel Ortiz authored and John W. Linville committed Nov 28, 2009
1 parent 9b20b8e commit 2dac1e5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a7af530d45969a63e20708417b70c547596ce3a9
refs/heads/master: b136b3a2c1867172cd3de6e7286c600b04543b30
23 changes: 23 additions & 0 deletions trunk/drivers/net/wireless/iwmc3200wifi/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,29 @@ static ssize_t iwm_debugfs_txq_read(struct file *filp, char __user *buffer,
}

spin_unlock_irqrestore(&txq->queue.lock, flags);

spin_lock_irqsave(&txq->stopped_queue.lock, flags);

len += snprintf(buf + len, buf_len - len,
"\tStopped Queue len: %d\n",
skb_queue_len(&txq->stopped_queue));
for (j = 0; j < skb_queue_len(&txq->stopped_queue); j++) {
struct iwm_tx_info *tx_info;

skb = skb->next;
tx_info = skb_to_tx_info(skb);

len += snprintf(buf + len, buf_len - len,
"\tSKB #%d\n", j);
len += snprintf(buf + len, buf_len - len,
"\t\tsta: %d\n", tx_info->sta);
len += snprintf(buf + len, buf_len - len,
"\t\tcolor: %d\n", tx_info->color);
len += snprintf(buf + len, buf_len - len,
"\t\ttid: %d\n", tx_info->tid);
}

spin_unlock_irqrestore(&txq->stopped_queue.lock, flags);
}

ret = simple_read_from_buffer(buffer, len, ppos, buf, buf_len);
Expand Down

0 comments on commit 2dac1e5

Please sign in to comment.