diff options
Diffstat (limited to 'drivers/net/wireless/iwmc3200wifi/netdev.c')
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/netdev.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwmc3200wifi/netdev.c b/drivers/net/wireless/iwmc3200wifi/netdev.c index 4f8dbdd7b917..e4f0f8705f65 100644 --- a/drivers/net/wireless/iwmc3200wifi/netdev.c +++ b/drivers/net/wireless/iwmc3200wifi/netdev.c | |||
@@ -76,6 +76,14 @@ static int iwm_stop(struct net_device *ndev) | |||
76 | */ | 76 | */ |
77 | static const u16 iwm_1d_to_queue[8] = { 1, 0, 0, 1, 2, 2, 3, 3 }; | 77 | static const u16 iwm_1d_to_queue[8] = { 1, 0, 0, 1, 2, 2, 3, 3 }; |
78 | 78 | ||
79 | u16 iwm_tid_to_queue(u16 tid) | ||
80 | { | ||
81 | if (tid > IWM_UMAC_TID_NR - 2) | ||
82 | return -EINVAL; | ||
83 | |||
84 | return iwm_1d_to_queue[tid]; | ||
85 | } | ||
86 | |||
79 | static u16 iwm_select_queue(struct net_device *dev, struct sk_buff *skb) | 87 | static u16 iwm_select_queue(struct net_device *dev, struct sk_buff *skb) |
80 | { | 88 | { |
81 | skb->priority = cfg80211_classify8021d(skb); | 89 | skb->priority = cfg80211_classify8021d(skb); |