diff options
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00mac.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00mac.c b/drivers/net/wireless/rt2x00/rt2x00mac.c index a54f6873e9ea..76a2a7c118b2 100644 --- a/drivers/net/wireless/rt2x00/rt2x00mac.c +++ b/drivers/net/wireless/rt2x00/rt2x00mac.c | |||
@@ -99,7 +99,11 @@ int rt2x00mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb, | |||
99 | /* | 99 | /* |
100 | * Determine which queue to put packet on. | 100 | * Determine which queue to put packet on. |
101 | */ | 101 | */ |
102 | queue = rt2x00queue_get_queue(rt2x00dev, control->queue); | 102 | if (control->flags & IEEE80211_TXCTL_SEND_AFTER_DTIM && |
103 | test_bit(DRIVER_REQUIRE_ATIM_QUEUE, &rt2x00dev->flags)) | ||
104 | queue = rt2x00queue_get_queue(rt2x00dev, RT2X00_BCN_QUEUE_ATIM); | ||
105 | else | ||
106 | queue = rt2x00queue_get_queue(rt2x00dev, control->queue); | ||
103 | if (unlikely(!queue)) { | 107 | if (unlikely(!queue)) { |
104 | ERROR(rt2x00dev, | 108 | ERROR(rt2x00dev, |
105 | "Attempt to send packet over invalid queue %d.\n" | 109 | "Attempt to send packet over invalid queue %d.\n" |