diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00queue.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00queue.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.h b/drivers/net/wireless/rt2x00/rt2x00queue.h index 29fe26525550..d1707a7ca41f 100644 --- a/drivers/net/wireless/rt2x00/rt2x00queue.h +++ b/drivers/net/wireless/rt2x00/rt2x00queue.h | |||
@@ -86,12 +86,9 @@ enum data_queue_qid { | |||
86 | static inline enum data_queue_qid mac80211_queue_to_qid(unsigned int queue) | 86 | static inline enum data_queue_qid mac80211_queue_to_qid(unsigned int queue) |
87 | { | 87 | { |
88 | /* Regular TX queues are mapped directly */ | 88 | /* Regular TX queues are mapped directly */ |
89 | if (queue < NUM_TX_DATA_QUEUES) | 89 | if (queue < 4) |
90 | return queue; | 90 | return queue; |
91 | else if (queue == IEEE80211_TX_QUEUE_BEACON) | 91 | WARN_ON(1); |
92 | return QID_BEACON; | ||
93 | else if (queue == IEEE80211_TX_QUEUE_AFTER_BEACON) | ||
94 | return QID_ATIM; | ||
95 | return QID_OTHER; | 92 | return QID_OTHER; |
96 | } | 93 | } |
97 | 94 | ||