Skip to content

Commit

Permalink
Print a prominent message if kernel AES is not available
Browse files Browse the repository at this point in the history
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
  • Loading branch information
proski committed Mar 12, 2010
1 parent 41c0303 commit 6f08b93
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions net80211/ieee80211_crypto_ccmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 6f08b93

Please sign in to comment.