diff options
author | Gertjan van Wingerde <gwingerde@gmail.com> | 2010-05-13 07:16:36 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-02 16:12:52 -0400 |
commit | b4df47081b67bce9dcb7b84b551588c7402a330a (patch) | |
tree | aac22d2bf3009a5b03e27c862dc9b94c891dbace | |
parent | 19b87173bef84079e0974833b4adacfb353f5c4a (diff) |
rt2x00: Move rt2x00debug_dump_frame declaration to rt2x00.h.
This allows rt2x00debug_dump_frame to be used from everywhere.
This is preparation for beacon writing clean ups.
Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00.h | 21 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00debug.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00dump.h | 7 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00lib.h | 10 |
4 files changed, 28 insertions, 11 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index 6c1ff4c15c84..c8e5fed4dc07 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h | |||
@@ -39,6 +39,7 @@ | |||
39 | #include <net/mac80211.h> | 39 | #include <net/mac80211.h> |
40 | 40 | ||
41 | #include "rt2x00debug.h" | 41 | #include "rt2x00debug.h" |
42 | #include "rt2x00dump.h" | ||
42 | #include "rt2x00leds.h" | 43 | #include "rt2x00leds.h" |
43 | #include "rt2x00reg.h" | 44 | #include "rt2x00reg.h" |
44 | #include "rt2x00queue.h" | 45 | #include "rt2x00queue.h" |
@@ -1015,6 +1016,26 @@ struct queue_entry *rt2x00queue_get_entry(struct data_queue *queue, | |||
1015 | enum queue_index index); | 1016 | enum queue_index index); |
1016 | 1017 | ||
1017 | /* | 1018 | /* |
1019 | * Debugfs handlers. | ||
1020 | */ | ||
1021 | /** | ||
1022 | * rt2x00debug_dump_frame - Dump a frame to userspace through debugfs. | ||
1023 | * @rt2x00dev: Pointer to &struct rt2x00_dev. | ||
1024 | * @type: The type of frame that is being dumped. | ||
1025 | * @skb: The skb containing the frame to be dumped. | ||
1026 | */ | ||
1027 | #ifdef CONFIG_RT2X00_LIB_DEBUGFS | ||
1028 | void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev, | ||
1029 | enum rt2x00_dump_type type, struct sk_buff *skb); | ||
1030 | #else | ||
1031 | static inline void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev, | ||
1032 | enum rt2x00_dump_type type, | ||
1033 | struct sk_buff *skb) | ||
1034 | { | ||
1035 | } | ||
1036 | #endif /* CONFIG_RT2X00_LIB_DEBUGFS */ | ||
1037 | |||
1038 | /* | ||
1018 | * Interrupt context handlers. | 1039 | * Interrupt context handlers. |
1019 | */ | 1040 | */ |
1020 | void rt2x00lib_beacondone(struct rt2x00_dev *rt2x00dev); | 1041 | void rt2x00lib_beacondone(struct rt2x00_dev *rt2x00dev); |
diff --git a/drivers/net/wireless/rt2x00/rt2x00debug.c b/drivers/net/wireless/rt2x00/rt2x00debug.c index e9fe93fd8042..b0498e7e7aae 100644 --- a/drivers/net/wireless/rt2x00/rt2x00debug.c +++ b/drivers/net/wireless/rt2x00/rt2x00debug.c | |||
@@ -211,6 +211,7 @@ void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev, | |||
211 | if (!test_bit(FRAME_DUMP_FILE_OPEN, &intf->frame_dump_flags)) | 211 | if (!test_bit(FRAME_DUMP_FILE_OPEN, &intf->frame_dump_flags)) |
212 | skb_queue_purge(&intf->frame_dump_skbqueue); | 212 | skb_queue_purge(&intf->frame_dump_skbqueue); |
213 | } | 213 | } |
214 | EXPORT_SYMBOL_GPL(rt2x00debug_dump_frame); | ||
214 | 215 | ||
215 | static int rt2x00debug_file_open(struct inode *inode, struct file *file) | 216 | static int rt2x00debug_file_open(struct inode *inode, struct file *file) |
216 | { | 217 | { |
diff --git a/drivers/net/wireless/rt2x00/rt2x00dump.h b/drivers/net/wireless/rt2x00/rt2x00dump.h index ed303b423e41..6df2e0b746b8 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dump.h +++ b/drivers/net/wireless/rt2x00/rt2x00dump.h | |||
@@ -20,7 +20,12 @@ | |||
20 | 20 | ||
21 | /* | 21 | /* |
22 | Module: rt2x00dump | 22 | Module: rt2x00dump |
23 | Abstract: Data structures for the rt2x00debug & userspace. | 23 | Abstract: |
24 | Data structures for the rt2x00debug & userspace. | ||
25 | |||
26 | The declarations in this file can be used by both rt2x00 | ||
27 | and userspace and therefore should be kept together in | ||
28 | this file. | ||
24 | */ | 29 | */ |
25 | 30 | ||
26 | #ifndef RT2X00DUMP_H | 31 | #ifndef RT2X00DUMP_H |
diff --git a/drivers/net/wireless/rt2x00/rt2x00lib.h b/drivers/net/wireless/rt2x00/rt2x00lib.h index be2e37fb4071..0ca40e1fe699 100644 --- a/drivers/net/wireless/rt2x00/rt2x00lib.h +++ b/drivers/net/wireless/rt2x00/rt2x00lib.h | |||
@@ -27,8 +27,6 @@ | |||
27 | #ifndef RT2X00LIB_H | 27 | #ifndef RT2X00LIB_H |
28 | #define RT2X00LIB_H | 28 | #define RT2X00LIB_H |
29 | 29 | ||
30 | #include "rt2x00dump.h" | ||
31 | |||
32 | /* | 30 | /* |
33 | * Interval defines | 31 | * Interval defines |
34 | */ | 32 | */ |
@@ -296,8 +294,6 @@ static inline void rt2x00lib_free_firmware(struct rt2x00_dev *rt2x00dev) | |||
296 | #ifdef CONFIG_RT2X00_LIB_DEBUGFS | 294 | #ifdef CONFIG_RT2X00_LIB_DEBUGFS |
297 | void rt2x00debug_register(struct rt2x00_dev *rt2x00dev); | 295 | void rt2x00debug_register(struct rt2x00_dev *rt2x00dev); |
298 | void rt2x00debug_deregister(struct rt2x00_dev *rt2x00dev); | 296 | void rt2x00debug_deregister(struct rt2x00_dev *rt2x00dev); |
299 | void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev, | ||
300 | enum rt2x00_dump_type type, struct sk_buff *skb); | ||
301 | void rt2x00debug_update_crypto(struct rt2x00_dev *rt2x00dev, | 297 | void rt2x00debug_update_crypto(struct rt2x00_dev *rt2x00dev, |
302 | struct rxdone_entry_desc *rxdesc); | 298 | struct rxdone_entry_desc *rxdesc); |
303 | #else | 299 | #else |
@@ -309,12 +305,6 @@ static inline void rt2x00debug_deregister(struct rt2x00_dev *rt2x00dev) | |||
309 | { | 305 | { |
310 | } | 306 | } |
311 | 307 | ||
312 | static inline void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev, | ||
313 | enum rt2x00_dump_type type, | ||
314 | struct sk_buff *skb) | ||
315 | { | ||
316 | } | ||
317 | |||
318 | static inline void rt2x00debug_update_crypto(struct rt2x00_dev *rt2x00dev, | 308 | static inline void rt2x00debug_update_crypto(struct rt2x00_dev *rt2x00dev, |
319 | struct rxdone_entry_desc *rxdesc) | 309 | struct rxdone_entry_desc *rxdesc) |
320 | { | 310 | { |