diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /drivers/net/wireless/iwmc3200wifi/netdev.c | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/net/wireless/iwmc3200wifi/netdev.c')
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/netdev.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwmc3200wifi/netdev.c b/drivers/net/wireless/iwmc3200wifi/netdev.c index 35ec006c2d2c..13a69ebf2a94 100644 --- a/drivers/net/wireless/iwmc3200wifi/netdev.c +++ b/drivers/net/wireless/iwmc3200wifi/netdev.c | |||
@@ -46,6 +46,7 @@ | |||
46 | * -> sdio_disable_func() | 46 | * -> sdio_disable_func() |
47 | */ | 47 | */ |
48 | #include <linux/netdevice.h> | 48 | #include <linux/netdevice.h> |
49 | #include <linux/slab.h> | ||
49 | 50 | ||
50 | #include "iwm.h" | 51 | #include "iwm.h" |
51 | #include "commands.h" | 52 | #include "commands.h" |
@@ -76,6 +77,14 @@ static int iwm_stop(struct net_device *ndev) | |||
76 | */ | 77 | */ |
77 | static const u16 iwm_1d_to_queue[8] = { 1, 0, 0, 1, 2, 2, 3, 3 }; | 78 | static const u16 iwm_1d_to_queue[8] = { 1, 0, 0, 1, 2, 2, 3, 3 }; |
78 | 79 | ||
80 | int iwm_tid_to_queue(u16 tid) | ||
81 | { | ||
82 | if (tid > IWM_UMAC_TID_NR - 2) | ||
83 | return -EINVAL; | ||
84 | |||
85 | return iwm_1d_to_queue[tid]; | ||
86 | } | ||
87 | |||
79 | static u16 iwm_select_queue(struct net_device *dev, struct sk_buff *skb) | 88 | static u16 iwm_select_queue(struct net_device *dev, struct sk_buff *skb) |
80 | { | 89 | { |
81 | skb->priority = cfg80211_classify8021d(skb); | 90 | skb->priority = cfg80211_classify8021d(skb); |
@@ -152,6 +161,7 @@ void iwm_if_free(struct iwm_priv *iwm) | |||
152 | if (!iwm_to_ndev(iwm)) | 161 | if (!iwm_to_ndev(iwm)) |
153 | return; | 162 | return; |
154 | 163 | ||
164 | cancel_delayed_work_sync(&iwm->ct_kill_delay); | ||
155 | free_netdev(iwm_to_ndev(iwm)); | 165 | free_netdev(iwm_to_ndev(iwm)); |
156 | iwm_priv_deinit(iwm); | 166 | iwm_priv_deinit(iwm); |
157 | kfree(iwm->umac_profile); | 167 | kfree(iwm->umac_profile); |