|
@@ -116,13 +116,13 @@ void rt2x00mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb)
|
|
|
goto exit_fail;
|
|
|
|
|
|
/*
|
|
|
- * Determine which queue to put packet on.
|
|
|
+ * Use the ATIM queue if appropriate and present.
|
|
|
*/
|
|
|
if (tx_info->flags & IEEE80211_TX_CTL_SEND_AFTER_DTIM &&
|
|
|
test_bit(DRIVER_REQUIRE_ATIM_QUEUE, &rt2x00dev->flags))
|
|
|
- queue = rt2x00queue_get_queue(rt2x00dev, QID_ATIM);
|
|
|
- else
|
|
|
- queue = rt2x00queue_get_tx_queue(rt2x00dev, qid);
|
|
|
+ qid = QID_ATIM;
|
|
|
+
|
|
|
+ queue = rt2x00queue_get_tx_queue(rt2x00dev, qid);
|
|
|
if (unlikely(!queue)) {
|
|
|
ERROR(rt2x00dev,
|
|
|
"Attempt to send packet over invalid queue %d.\n"
|