diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00mac.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00mac.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00mac.c b/drivers/net/wireless/rt2x00/rt2x00mac.c index b5379b027b18..c05e05b58887 100644 --- a/drivers/net/wireless/rt2x00/rt2x00mac.c +++ b/drivers/net/wireless/rt2x00/rt2x00mac.c | |||
@@ -102,7 +102,7 @@ int rt2x00mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb) | |||
102 | struct rt2x00_dev *rt2x00dev = hw->priv; | 102 | struct rt2x00_dev *rt2x00dev = hw->priv; |
103 | struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); | 103 | struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); |
104 | struct ieee80211_hdr *ieee80211hdr = (struct ieee80211_hdr *)skb->data; | 104 | struct ieee80211_hdr *ieee80211hdr = (struct ieee80211_hdr *)skb->data; |
105 | enum data_queue_qid qid = mac80211_queue_to_qid(tx_info->queue); | 105 | enum data_queue_qid qid = skb_get_queue_mapping(skb); |
106 | struct data_queue *queue; | 106 | struct data_queue *queue; |
107 | u16 frame_control; | 107 | u16 frame_control; |
108 | 108 | ||
@@ -149,23 +149,23 @@ int rt2x00mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb) | |||
149 | IEEE80211_TX_CTL_USE_CTS_PROTECT)) && | 149 | IEEE80211_TX_CTL_USE_CTS_PROTECT)) && |
150 | !rt2x00dev->ops->hw->set_rts_threshold) { | 150 | !rt2x00dev->ops->hw->set_rts_threshold) { |
151 | if (rt2x00queue_available(queue) <= 1) { | 151 | if (rt2x00queue_available(queue) <= 1) { |
152 | ieee80211_stop_queue(rt2x00dev->hw, tx_info->queue); | 152 | ieee80211_stop_queue(rt2x00dev->hw, qid); |
153 | return NETDEV_TX_BUSY; | 153 | return NETDEV_TX_BUSY; |
154 | } | 154 | } |
155 | 155 | ||
156 | if (rt2x00mac_tx_rts_cts(rt2x00dev, queue, skb)) { | 156 | if (rt2x00mac_tx_rts_cts(rt2x00dev, queue, skb)) { |
157 | ieee80211_stop_queue(rt2x00dev->hw, tx_info->queue); | 157 | ieee80211_stop_queue(rt2x00dev->hw, qid); |
158 | return NETDEV_TX_BUSY; | 158 | return NETDEV_TX_BUSY; |
159 | } | 159 | } |
160 | } | 160 | } |
161 | 161 | ||
162 | if (rt2x00dev->ops->lib->write_tx_data(rt2x00dev, queue, skb)) { | 162 | if (rt2x00dev->ops->lib->write_tx_data(rt2x00dev, queue, skb)) { |
163 | ieee80211_stop_queue(rt2x00dev->hw, tx_info->queue); | 163 | ieee80211_stop_queue(rt2x00dev->hw, qid); |
164 | return NETDEV_TX_BUSY; | 164 | return NETDEV_TX_BUSY; |
165 | } | 165 | } |
166 | 166 | ||
167 | if (rt2x00queue_full(queue)) | 167 | if (rt2x00queue_full(queue)) |
168 | ieee80211_stop_queue(rt2x00dev->hw, tx_info->queue); | 168 | ieee80211_stop_queue(rt2x00dev->hw, qid); |
169 | 169 | ||
170 | if (rt2x00dev->ops->lib->kick_tx_queue) | 170 | if (rt2x00dev->ops->lib->kick_tx_queue) |
171 | rt2x00dev->ops->lib->kick_tx_queue(rt2x00dev, qid); | 171 | rt2x00dev->ops->lib->kick_tx_queue(rt2x00dev, qid); |