diff options
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/wext.c | 7 | ||||
-rw-r--r-- | net/mac80211/wme.c | 3 |
2 files changed, 8 insertions, 2 deletions
diff --git a/net/mac80211/wext.c b/net/mac80211/wext.c index df0531c28141..1babb979fe00 100644 --- a/net/mac80211/wext.c +++ b/net/mac80211/wext.c | |||
@@ -95,6 +95,13 @@ static int ieee80211_set_encryption(struct net_device *dev, u8 *sta_addr, | |||
95 | } | 95 | } |
96 | } | 96 | } |
97 | 97 | ||
98 | if (alg == ALG_WEP && | ||
99 | key_len != LEN_WEP40 && key_len != LEN_WEP104) { | ||
100 | ieee80211_key_free(key); | ||
101 | err = -EINVAL; | ||
102 | goto out_unlock; | ||
103 | } | ||
104 | |||
98 | ieee80211_key_link(key, sdata, sta); | 105 | ieee80211_key_link(key, sdata, sta); |
99 | 106 | ||
100 | if (set_tx_key || (!sta && !sdata->default_key && key)) | 107 | if (set_tx_key || (!sta && !sdata->default_key && key)) |
diff --git a/net/mac80211/wme.c b/net/mac80211/wme.c index f23b5a4d4ac9..ffe1af82fa4d 100644 --- a/net/mac80211/wme.c +++ b/net/mac80211/wme.c | |||
@@ -308,8 +308,7 @@ static void wme_qdiscop_destroy(struct Qdisc* qd) | |||
308 | struct ieee80211_hw *hw = &local->hw; | 308 | struct ieee80211_hw *hw = &local->hw; |
309 | int queue; | 309 | int queue; |
310 | 310 | ||
311 | tcf_destroy_chain(q->filter_list); | 311 | tcf_destroy_chain(&q->filter_list); |
312 | q->filter_list = NULL; | ||
313 | 312 | ||
314 | for (queue = 0; queue < QD_NUM(hw); queue++) { | 313 | for (queue = 0; queue < QD_NUM(hw); queue++) { |
315 | skb_queue_purge(&q->requeued[queue]); | 314 | skb_queue_purge(&q->requeued[queue]); |