summaryrefslogtreecommitdiff
path: root/drivers/staging/cw1200/debug.c
diff options
context:
space:
mode:
authorDmitry Tarnyagin <dmitry.tarnyagin@stericsson.com>2011-06-02 23:33:42 +0200
committerRobert Marklund <robert.marklund@stericsson.com>2011-10-05 12:16:07 +0200
commit2f59fa01494e8227e6ba8c4286221960c9c35b83 (patch)
tree1092268f065d47643464c90c0c2365d9aaf007bf /drivers/staging/cw1200/debug.c
parent2e8ff8f133893643fab00671afe13042a7f0b6dc (diff)
cw1200: AMSDU debug statistics
MSDU aggregation statistics are exposed to DebugFS. Change-Id: Ifb99ab3a206d50a3f86b791fbc505de0e9b64371 Signed-off-by: Dmitry Tarnyagin <dmitry.tarnyagin@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/24477 Reviewed-by: Robert MARKLUND <robert.marklund@stericsson.com> Tested-by: Robert MARKLUND <robert.marklund@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/25617 Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
Diffstat (limited to 'drivers/staging/cw1200/debug.c')
-rw-r--r--drivers/staging/cw1200/debug.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/drivers/staging/cw1200/debug.c b/drivers/staging/cw1200/debug.c
index c54e6391746..47e230f460d 100644
--- a/drivers/staging/cw1200/debug.c
+++ b/drivers/staging/cw1200/debug.c
@@ -15,11 +15,6 @@
#include "cw1200.h"
#include "debug.h"
-/* private */
-struct cw1200_debug_priv {
- struct dentry *debugfs_phy;
-};
-
/* join_status */
static const char * const cw1200_debug_join_status[] = {
"passive",
@@ -101,6 +96,7 @@ static int cw1200_status_show(struct seq_file *seq, void *v)
{
int i;
struct cw1200_common *priv = seq->private;
+ struct cw1200_debug_priv *d = priv->debug;
seq_puts(seq, "CW1200 Wireless LAN driver status\n");
seq_printf(seq, "Hardware: %d.%d\n",
priv->wsm_caps.hardwareId,
@@ -247,6 +243,17 @@ static int cw1200_status_show(struct seq_file *seq, void *v)
seq_printf(seq, "TXlock cnt: %d\n",
atomic_read(&priv->tx_lock));
+ seq_printf(seq, "TXed: %d\n",
+ d->tx);
+ seq_printf(seq, "AGG TXed: %d\n",
+ d->tx_agg);
+ seq_printf(seq, "MORE TXed: %d\n",
+ d->tx_more);
+ seq_printf(seq, "RXed: %d\n",
+ d->rx);
+ seq_printf(seq, "AGG RXed: %d\n",
+ d->rx_agg);
+
seq_printf(seq, "Scan: %s\n",
atomic_read(&priv->scan.in_progress) ? "active" : "idle");
seq_printf(seq, "Led state: 0x%.2X\n",