Print a prominent message if kernel AES is not available

The kernel AES will only be requested if hardware encryption is not
available and if AES is really needed.  At that point, a failure to
allocate the AES cipher would be a real problem, not a minor debug
condition.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4121 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
proski 2010-03-12 06:40:34 +00:00
parent 41c0303d16
commit 6f08b9347d

View File

@ -123,11 +123,9 @@ ccmp_attach(struct ieee80211vap *vap, struct ieee80211_key *k)
#endif
if (ctx->cc_tfm == NULL) {
IEEE80211_DPRINTF(vap, IEEE80211_MSG_CRYPTO,
"%s: kernel support for AES "
"cryptography is not available; the "
"module may not be loaded.\n",
__func__);
printk(KERN_ERR "%s: kernel AES support is missing; "
"some modules may need to be loaded\n",
vap->iv_dev->name);
FREE(ctx, M_DEVBUF);
ctx = NULL;
vap->iv_stats.is_crypto_nocipher++;