Changeset 4121

Show
Ignore:
Timestamp:
03/12/10 07:40:34 (2 years ago)
Author:
proski
Message:

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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • madwifi/trunk/net80211/ieee80211_crypto_ccmp.c

    r4120 r4121  
    124124         
    125125                if (ctx->cc_tfm == NULL) { 
    126                         IEEE80211_DPRINTF(vap, IEEE80211_MSG_CRYPTO, 
    127                                         "%s: kernel support for AES " 
    128                                         "cryptography is not available; the " 
    129                                         "module may not be loaded.\n",  
    130                                         __func__); 
     126                        printk(KERN_ERR "%s: kernel AES support is missing; " 
     127                               "some modules may need to be loaded\n", 
     128                               vap->iv_dev->name); 
    131129                        FREE(ctx, M_DEVBUF); 
    132130                        ctx = NULL;