aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00lib.h
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2007-11-27 15:49:29 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:05:08 -0500
commit4d8dd66c1659ba0d1b110ed0488f4f6ffbc90e71 (patch)
tree03ae5e8fc993ec504f099ddb5d1f40f3a371289d /drivers/net/wireless/rt2x00/rt2x00lib.h
parent08992f7fb139c7dbaf593402312ee5a055352f05 (diff)
rt2x00: Add TX/RX frame dumping facility
This adds TX/RX frame dumping capabilities through debugfs. The intention is that with this approach debugging of rt2x00 is simplified since _all_ frames going in and out of the device are send to debugfs as well along with additional information like the hardware descriptor. Based on the patch by Mattias Nissler. Mattias also has some tools that will make the dumped frames available to wireshark: http://www-user.rhrk.uni-kl.de/~nissler/rt2x00/ Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00lib.h')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00lib.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00lib.h b/drivers/net/wireless/rt2x00/rt2x00lib.h
index 73194112f45c..0bf10ffec70a 100644
--- a/drivers/net/wireless/rt2x00/rt2x00lib.h
+++ b/drivers/net/wireless/rt2x00/rt2x00lib.h
@@ -80,6 +80,7 @@ static inline void rt2x00lib_free_firmware(struct rt2x00_dev *rt2x00dev)
80#ifdef CONFIG_RT2X00_LIB_DEBUGFS 80#ifdef CONFIG_RT2X00_LIB_DEBUGFS
81void rt2x00debug_register(struct rt2x00_dev *rt2x00dev); 81void rt2x00debug_register(struct rt2x00_dev *rt2x00dev);
82void rt2x00debug_deregister(struct rt2x00_dev *rt2x00dev); 82void rt2x00debug_deregister(struct rt2x00_dev *rt2x00dev);
83void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev, struct sk_buff *skb);
83#else 84#else
84static inline void rt2x00debug_register(struct rt2x00_dev *rt2x00dev) 85static inline void rt2x00debug_register(struct rt2x00_dev *rt2x00dev)
85{ 86{
@@ -88,6 +89,11 @@ static inline void rt2x00debug_register(struct rt2x00_dev *rt2x00dev)
88static inline void rt2x00debug_deregister(struct rt2x00_dev *rt2x00dev) 89static inline void rt2x00debug_deregister(struct rt2x00_dev *rt2x00dev)
89{ 90{
90} 91}
92
93static inline void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev,
94 struct skb_buff *skb)
95{
96}
91#endif /* CONFIG_RT2X00_LIB_DEBUGFS */ 97#endif /* CONFIG_RT2X00_LIB_DEBUGFS */
92 98
93/* 99/*