aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00queue.c
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2010-12-13 06:36:00 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-12-13 15:23:36 -0500
commit64e7d72384c2ecef5a892b2243623af265dd83cc (patch)
treebb53909aa80bea1a42a25fe7899087419579f130 /drivers/net/wireless/rt2x00/rt2x00queue.c
parent5be65609fec2e331c7d804471be3d59089a30d98 (diff)
rt2x00: Cleanup RX index counting
Add the rt2x00_dmastart function to rt2x00lib which marks the queue_entry as "owned by device", and increased the Q_INDEX number. This cleanups up the index handling by rt2x00lib which at until so far used hackish approaches to keep the RX queue index numbering sane. The rt2x00pci.c changes are from Helmut Schaa Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.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.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.c b/drivers/net/wireless/rt2x00/rt2x00queue.c
index 313a8faa5fa4..52cc92d426f3 100644
--- a/drivers/net/wireless/rt2x00/rt2x00queue.c
+++ b/drivers/net/wireless/rt2x00/rt2x00queue.c
@@ -968,11 +968,8 @@ void rt2x00queue_init_queues(struct rt2x00_dev *rt2x00dev)
968 queue_for_each(rt2x00dev, queue) { 968 queue_for_each(rt2x00dev, queue) {
969 rt2x00queue_reset(queue); 969 rt2x00queue_reset(queue);
970 970
971 for (i = 0; i < queue->limit; i++) { 971 for (i = 0; i < queue->limit; i++)
972 rt2x00dev->ops->lib->clear_entry(&queue->entries[i]); 972 rt2x00dev->ops->lib->clear_entry(&queue->entries[i]);
973 if (queue->qid == QID_RX)
974 rt2x00queue_index_inc(queue, Q_INDEX);
975 }
976 } 973 }
977} 974}
978 975