summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2008-02-03 15:52:21 +0100
committerJohn W. Linville <linville@tuxdriver.com>2008-02-29 15:19:28 -0500
commit091ed315ef77a4949a6ce22e43af15a504ada348 (patch)
treea81f94795a96c8d703450a8d16686feb7eafdf6f
parent871ff6ed64e17a785cb4d48f56beedff038cc42a (diff)
downloadop-kernel-dev-091ed315ef77a4949a6ce22e43af15a504ada348.zip
op-kernel-dev-091ed315ef77a4949a6ce22e43af15a504ada348.tar.gz
rt2x00: Initialize QID from queue->qid
The QID_MGMT is assigned to the beacon and atim queue during initialization. This means we don't need a seperate check in write_tx_desc().. Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00dev.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c
index 014c307..1bc8c14 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,
memset(&txdesc, 0, sizeof(txdesc));
+ txdesc.queue = skbdesc->entry->queue->qid;
txdesc.cw_min = skbdesc->entry->queue->cw_min;
txdesc.cw_max = skbdesc->entry->queue->cw_max;
txdesc.aifs = skbdesc->entry->queue->aifs;
/*
- * Identify queue
- */
- if (control->queue < rt2x00dev->hw->queues)
- txdesc.queue = control->queue;
- else if (control->queue == IEEE80211_TX_QUEUE_BEACON ||
- control->queue == IEEE80211_TX_QUEUE_AFTER_BEACON)
- txdesc.queue = QID_MGMT;
- else
- txdesc.queue = QID_OTHER;
-
- /*
* Read required fields from ieee80211 header.
*/
frame_control = le16_to_cpu(ieee80211hdr->frame_control);
OpenPOWER on IntegriCloud