diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00dev.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00dev.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index 014c307c270c..1bc8c14e6aec 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c | |||
@@ -628,22 +628,12 @@ void rt2x00lib_write_tx_desc(struct rt2x00_dev *rt2x00dev, | |||
628 | 628 | ||
629 | memset(&txdesc, 0, sizeof(txdesc)); | 629 | memset(&txdesc, 0, sizeof(txdesc)); |
630 | 630 | ||
631 | txdesc.queue = skbdesc->entry->queue->qid; | ||
631 | txdesc.cw_min = skbdesc->entry->queue->cw_min; | 632 | txdesc.cw_min = skbdesc->entry->queue->cw_min; |
632 | txdesc.cw_max = skbdesc->entry->queue->cw_max; | 633 | txdesc.cw_max = skbdesc->entry->queue->cw_max; |
633 | txdesc.aifs = skbdesc->entry->queue->aifs; | 634 | txdesc.aifs = skbdesc->entry->queue->aifs; |
634 | 635 | ||
635 | /* | 636 | /* |
636 | * Identify queue | ||
637 | */ | ||
638 | if (control->queue < rt2x00dev->hw->queues) | ||
639 | txdesc.queue = control->queue; | ||
640 | else if (control->queue == IEEE80211_TX_QUEUE_BEACON || | ||
641 | control->queue == IEEE80211_TX_QUEUE_AFTER_BEACON) | ||
642 | txdesc.queue = QID_MGMT; | ||
643 | else | ||
644 | txdesc.queue = QID_OTHER; | ||
645 | |||
646 | /* | ||
647 | * Read required fields from ieee80211 header. | 637 | * Read required fields from ieee80211 header. |
648 | */ | 638 | */ |
649 | frame_control = le16_to_cpu(ieee80211hdr->frame_control); | 639 | frame_control = le16_to_cpu(ieee80211hdr->frame_control); |