1 Index: madwifi-ng-r2420-20070602/net80211/ieee80211_crypto_ccmp.c
2 ===================================================================
3 --- madwifi-ng-r2420-20070602.orig/net80211/ieee80211_crypto_ccmp.c 2007-06-04 13:21:53.234883736 +0200
4 +++ madwifi-ng-r2420-20070602/net80211/ieee80211_crypto_ccmp.c 2007-06-04 13:21:57.936169032 +0200
6 ctx->cc_ic = vap->iv_ic;
7 ctx->cc_tfm = crypto_alloc_cipher("aes", 0,
10 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18)
11 + if (IS_ERR(ctx->cc_tfm))
15 if (ctx->cc_tfm == NULL) {
16 IEEE80211_DPRINTF(vap, IEEE80211_MSG_CRYPTO,
17 "%s: unable to load kernel AES crypto support\n",
22 + if (ctx->cc_tfm == NULL)
25 ctx->cc_vap->iv_stats.is_crypto_ccmp++;
32 + if (ctx->cc_tfm == NULL)
35 ctx->cc_vap->iv_stats.is_crypto_ccmp++;