diff options
author | Gertjan van Wingerde <gwingerde@gmail.com> | 2010-05-11 17:51:41 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-05-12 16:50:43 -0400 |
commit | 185e5f77f891d5bc7a0d8c8eb2b1edf6c317edab (patch) | |
tree | 577b43c6d7067b7130268f3880376ea454c69361 /drivers/net/wireless/rt2x00/rt2x00queue.c | |
parent | 85b7a8b3871bde7885516fed2a1c8da699913318 (diff) |
rt2x00: Dump beacons under a different identifier than TX frames.
This allows for specific identification of beacons in the debugfs
frame stream.
Preparation for later differences between dumped TX frames and dumped
beacons.
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>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00queue.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00queue.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.c b/drivers/net/wireless/rt2x00/rt2x00queue.c index 891d5f72716e..c68bf3216166 100644 --- a/drivers/net/wireless/rt2x00/rt2x00queue.c +++ b/drivers/net/wireless/rt2x00/rt2x00queue.c | |||
@@ -420,6 +420,7 @@ static void rt2x00queue_write_tx_descriptor(struct queue_entry *entry, | |||
420 | { | 420 | { |
421 | struct data_queue *queue = entry->queue; | 421 | struct data_queue *queue = entry->queue; |
422 | struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; | 422 | struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; |
423 | enum rt2x00_dump_type dump_type; | ||
423 | 424 | ||
424 | rt2x00dev->ops->lib->write_tx_desc(rt2x00dev, entry->skb, txdesc); | 425 | rt2x00dev->ops->lib->write_tx_desc(rt2x00dev, entry->skb, txdesc); |
425 | 426 | ||
@@ -427,7 +428,9 @@ static void rt2x00queue_write_tx_descriptor(struct queue_entry *entry, | |||
427 | * All processing on the frame has been completed, this means | 428 | * All processing on the frame has been completed, this means |
428 | * it is now ready to be dumped to userspace through debugfs. | 429 | * it is now ready to be dumped to userspace through debugfs. |
429 | */ | 430 | */ |
430 | rt2x00debug_dump_frame(rt2x00dev, DUMP_FRAME_TX, entry->skb); | 431 | dump_type = (txdesc->queue == QID_BEACON) ? |
432 | DUMP_FRAME_BEACON : DUMP_FRAME_TX; | ||
433 | rt2x00debug_dump_frame(rt2x00dev, dump_type, entry->skb); | ||
431 | } | 434 | } |
432 | 435 | ||
433 | static void rt2x00queue_kick_tx_queue(struct queue_entry *entry, | 436 | static void rt2x00queue_kick_tx_queue(struct queue_entry *entry, |