2008-06-04 21:16:18 +08:00
|
|
|
--- a/net80211/ieee80211_crypto_ccmp.c
|
|
|
|
+++ b/net80211/ieee80211_crypto_ccmp.c
|
2008-11-02 21:04:36 +08:00
|
|
|
@@ -475,6 +475,9 @@ ccmp_encrypt(struct ieee80211_key *key,
|
2007-06-03 01:04:43 +08:00
|
|
|
uint8_t *mic, *pos;
|
|
|
|
u_int space;
|
|
|
|
|
|
|
|
+ if (ctx->cc_tfm == NULL)
|
|
|
|
+ return 0;
|
|
|
|
+
|
|
|
|
ctx->cc_vap->iv_stats.is_crypto_ccmp++;
|
|
|
|
|
|
|
|
skb = skb0;
|
2008-11-02 21:04:36 +08:00
|
|
|
@@ -589,6 +592,9 @@ ccmp_decrypt(struct ieee80211_key *key,
|
2007-06-03 01:04:43 +08:00
|
|
|
uint8_t *pos, *mic;
|
|
|
|
u_int space;
|
|
|
|
|
|
|
|
+ if (ctx->cc_tfm == NULL)
|
|
|
|
+ return 0;
|
|
|
|
+
|
|
|
|
ctx->cc_vap->iv_stats.is_crypto_ccmp++;
|
|
|
|
|
|
|
|
skb = skb0;
|