diff options
Diffstat (limited to 'drivers/staging/cw1200/debug.c')
-rw-r--r-- | drivers/staging/cw1200/debug.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/staging/cw1200/debug.c b/drivers/staging/cw1200/debug.c index db927620f26..91c690ad4e6 100644 --- a/drivers/staging/cw1200/debug.c +++ b/drivers/staging/cw1200/debug.c @@ -101,6 +101,7 @@ static void cw1200_debug_print_map(struct seq_file *seq, static int cw1200_status_show(struct seq_file *seq, void *v) { int i; + struct list_head *item; struct cw1200_common *priv = seq->private; struct cw1200_debug_priv *d = priv->debug; seq_puts(seq, "CW1200 Wireless LAN driver status\n"); @@ -208,6 +209,12 @@ static int cw1200_status_show(struct seq_file *seq, void *v) priv->long_frame_max_tx_count); seq_printf(seq, "Short retr: %d\n", priv->short_frame_max_tx_count); + spin_lock_bh(&priv->tx_policy_cache.lock); + i = 0; + list_for_each(item, &priv->tx_policy_cache.used) + ++i; + spin_unlock_bh(&priv->tx_policy_cache.lock); + seq_printf(seq, "RC in use: %d\n", i); seq_puts(seq, "\n"); for (i = 0; i < 4; ++i) { @@ -283,6 +290,8 @@ static int cw1200_status_show(struct seq_file *seq, void *v) d->tx_cache_miss); seq_printf(seq, "TX copy: %d\n", d->tx_copy); + seq_printf(seq, "TX TTL: %d\n", + d->tx_ttl); seq_printf(seq, "Scan: %s\n", atomic_read(&priv->scan.in_progress) ? "active" : "idle"); seq_printf(seq, "Led state: 0x%.2X\n", |