madwifi: reduce the packet loss impact of forced background scans triggered by the...
[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 @@
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 @@
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;