6db9c2d781c7352958014a70c55c2d7d518a5761
[openwrt/svn-archive/archive.git] / package / madwifi / patches-testing / 123-ccmp_checks.patch
1 --- a/net80211/ieee80211_crypto_ccmp.c
2 +++ b/net80211/ieee80211_crypto_ccmp.c
3 @@ -478,6 +478,9 @@
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 @@ -592,6 +595,9 @@
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;