0ae9ece6716d8158d6360e9fa33e6237e6ed9c0c
[openwrt/openwrt.git] / package / madwifi / patches / 123-ccmp_checks.patch
1 Index: madwifi-ng-r2525-20070630/net80211/ieee80211_crypto_ccmp.c
2 ===================================================================
3 --- madwifi-ng-r2525-20070630.orig/net80211/ieee80211_crypto_ccmp.c 2007-07-03 23:02:25.245621500 +0200
4 +++ madwifi-ng-r2525-20070630/net80211/ieee80211_crypto_ccmp.c 2007-07-03 23:02:31.690024250 +0200
5 @@ -475,6 +475,9 @@
6 uint8_t *mic, *pos;
7 u_int space;
8
9 + if (ctx->cc_tfm == NULL)
10 + return 0;
11 +
12 ctx->cc_vap->iv_stats.is_crypto_ccmp++;
13
14 skb = skb0;
15 @@ -589,6 +592,9 @@
16 uint8_t *pos, *mic;
17 u_int space;
18
19 + if (ctx->cc_tfm == NULL)
20 + return 0;
21 +
22 ctx->cc_vap->iv_stats.is_crypto_ccmp++;
23
24 skb = skb0;