summaryrefslogtreecommitdiff
path: root/drivers/staging/cw1200/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/cw1200/debug.h')
-rw-r--r--drivers/staging/cw1200/debug.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/staging/cw1200/debug.h b/drivers/staging/cw1200/debug.h
index 02943e699b8..c901a6a64e9 100644
--- a/drivers/staging/cw1200/debug.h
+++ b/drivers/staging/cw1200/debug.h
@@ -29,6 +29,8 @@ struct cw1200_debug_priv {
int tx_ttl;
int tx_burst;
int rx_burst;
+ int ba_cnt;
+ int ba_acc;
};
int cw1200_debug_init(struct cw1200_common *priv);
@@ -86,6 +88,13 @@ static inline void cw1200_debug_rx_burst(struct cw1200_common *priv)
++priv->debug->rx_burst;
}
+static inline void cw1200_debug_ba(struct cw1200_common *priv,
+ int ba_cnt, int ba_acc)
+{
+ priv->debug->ba_cnt = ba_cnt;
+ priv->debug->ba_acc = ba_acc;
+}
+
#else /* CONFIG_CW1200_DEBUGFS */
static inline int cw1200_debug_init(struct cw1200_common *priv)
@@ -138,6 +147,11 @@ static inline void cw1200_debug_rx_burst(struct cw1200_common *priv)
{
}
+static inline void cw1200_debug_ba(struct cw1200_common *priv,
+ int ba_cnt, int ba_acc)
+{
+}
+
#endif /* CONFIG_CW1200_DEBUGFS */
#endif /* CW1200_DEBUG_H_INCLUDED */