diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00queue.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00queue.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.c b/drivers/net/wireless/rt2x00/rt2x00queue.c index 5097fe0f9f51..a3401d301058 100644 --- a/drivers/net/wireless/rt2x00/rt2x00queue.c +++ b/drivers/net/wireless/rt2x00/rt2x00queue.c | |||
@@ -688,9 +688,11 @@ void rt2x00queue_index_inc(struct data_queue *queue, enum queue_index index) | |||
688 | 688 | ||
689 | if (index == Q_INDEX) { | 689 | if (index == Q_INDEX) { |
690 | queue->length++; | 690 | queue->length++; |
691 | queue->last_index = jiffies; | ||
691 | } else if (index == Q_INDEX_DONE) { | 692 | } else if (index == Q_INDEX_DONE) { |
692 | queue->length--; | 693 | queue->length--; |
693 | queue->count++; | 694 | queue->count++; |
695 | queue->last_index_done = jiffies; | ||
694 | } | 696 | } |
695 | 697 | ||
696 | spin_unlock_irqrestore(&queue->lock, irqflags); | 698 | spin_unlock_irqrestore(&queue->lock, irqflags); |
@@ -704,6 +706,8 @@ static void rt2x00queue_reset(struct data_queue *queue) | |||
704 | 706 | ||
705 | queue->count = 0; | 707 | queue->count = 0; |
706 | queue->length = 0; | 708 | queue->length = 0; |
709 | queue->last_index = jiffies; | ||
710 | queue->last_index_done = jiffies; | ||
707 | memset(queue->index, 0, sizeof(queue->index)); | 711 | memset(queue->index, 0, sizeof(queue->index)); |
708 | 712 | ||
709 | spin_unlock_irqrestore(&queue->lock, irqflags); | 713 | spin_unlock_irqrestore(&queue->lock, irqflags); |