diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2010-12-13 06:36:38 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-12-13 15:23:36 -0500 |
commit | f615e9a38a8e6239d35891a05f2ac1159088780a (patch) | |
tree | 7aa1d79a6b02b222f321d5a747eff0cf6e8d1e4f /drivers/net/wireless/rt2x00/rt2x00usb.c | |
parent | dba5dc1ae9764902f46d5225c9ff40e4f7b614c7 (diff) |
rt2x00: Fix WMM Queue naming
The Queue names were incorrectly copied from the legacy drivers,
as a result the queue names were inversed to what was expected.
This renames the queues using this mapping:
QID_AC_BK -> QID_AC_VO (priority 0)
QID_AC_BE -> QID_AC_VI (priority 1)
QID_AC_VI -> QID_AC_BE (priority 2)
QID_AC_VO -> QID_AC_BK (priority 3)
Note that this was a naming problem only, which didn't affect
the assignment of frames to their respective queues.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00usb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00usb.c b/drivers/net/wireless/rt2x00/rt2x00usb.c index 8a16b5106a33..1a9937d5aff6 100644 --- a/drivers/net/wireless/rt2x00/rt2x00usb.c +++ b/drivers/net/wireless/rt2x00/rt2x00usb.c | |||
@@ -353,10 +353,10 @@ static void rt2x00usb_kick_rx_entry(struct queue_entry *entry) | |||
353 | void rt2x00usb_kick_queue(struct data_queue *queue) | 353 | void rt2x00usb_kick_queue(struct data_queue *queue) |
354 | { | 354 | { |
355 | switch (queue->qid) { | 355 | switch (queue->qid) { |
356 | case QID_AC_VO: | ||
357 | case QID_AC_VI: | ||
356 | case QID_AC_BE: | 358 | case QID_AC_BE: |
357 | case QID_AC_BK: | 359 | case QID_AC_BK: |
358 | case QID_AC_VI: | ||
359 | case QID_AC_VO: | ||
360 | if (!rt2x00queue_empty(queue)) | 360 | if (!rt2x00queue_empty(queue)) |
361 | rt2x00queue_for_each_entry(queue, Q_INDEX_DONE, Q_INDEX, | 361 | rt2x00queue_for_each_entry(queue, Q_INDEX_DONE, Q_INDEX, |
362 | rt2x00usb_kick_tx_entry); | 362 | rt2x00usb_kick_tx_entry); |
@@ -403,10 +403,10 @@ void rt2x00usb_flush_queue(struct data_queue *queue) | |||
403 | * Obtain the queue completion handler | 403 | * Obtain the queue completion handler |
404 | */ | 404 | */ |
405 | switch (queue->qid) { | 405 | switch (queue->qid) { |
406 | case QID_AC_VO: | ||
407 | case QID_AC_VI: | ||
406 | case QID_AC_BE: | 408 | case QID_AC_BE: |
407 | case QID_AC_BK: | 409 | case QID_AC_BK: |
408 | case QID_AC_VI: | ||
409 | case QID_AC_VO: | ||
410 | completion = &queue->rt2x00dev->txdone_work; | 410 | completion = &queue->rt2x00dev->txdone_work; |
411 | break; | 411 | break; |
412 | case QID_RX: | 412 | case QID_RX: |