aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00dump.h3
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00queue.c5
2 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dump.h b/drivers/net/wireless/rt2x00/rt2x00dump.h
index 727019a748e7..ed303b423e41 100644
--- a/drivers/net/wireless/rt2x00/rt2x00dump.h
+++ b/drivers/net/wireless/rt2x00/rt2x00dump.h
@@ -62,11 +62,14 @@
62 * the tx event which has either succeeded or failed. A frame 62 * the tx event which has either succeeded or failed. A frame
63 * with this type should also have been reported with as a 63 * with this type should also have been reported with as a
64 * %DUMP_FRAME_TX frame. 64 * %DUMP_FRAME_TX frame.
65 * @DUMP_FRAME_BEACON: This beacon frame is queued for transmission to the
66 * hardware.
65 */ 67 */
66enum rt2x00_dump_type { 68enum rt2x00_dump_type {
67 DUMP_FRAME_RXDONE = 1, 69 DUMP_FRAME_RXDONE = 1,
68 DUMP_FRAME_TX = 2, 70 DUMP_FRAME_TX = 2,
69 DUMP_FRAME_TXDONE = 3, 71 DUMP_FRAME_TXDONE = 3,
72 DUMP_FRAME_BEACON = 4,
70}; 73};
71 74
72/** 75/**
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
433static void rt2x00queue_kick_tx_queue(struct queue_entry *entry, 436static void rt2x00queue_kick_tx_queue(struct queue_entry *entry,