[au1000] update to 2.6.28
[openwrt/svn-archive/archive.git] / package / madwifi / patches / 123-ccmp_checks.patch
1 --- a/net80211/ieee80211_crypto_ccmp.c
2 +++ b/net80211/ieee80211_crypto_ccmp.c
3 @@ -475,6 +475,9 @@ ccmp_encrypt(struct ieee80211_key *key,
4 uint8_t *mic, *pos;
5 u_int space;
6
7 + if (ctx->cc_tfm == NULL)
8 + return 0;
9 +
10 ctx->cc_vap->iv_stats.is_crypto_ccmp++;
11
12 skb = skb0;
13 @@ -589,6 +592,9 @@ ccmp_decrypt(struct ieee80211_key *key,
14 uint8_t *pos, *mic;
15 u_int space;
16
17 + if (ctx->cc_tfm == NULL)
18 + return 0;
19 +
20 ctx->cc_vap->iv_stats.is_crypto_ccmp++;
21
22 skb = skb0;