ieee80211_crypto_newkey() will fail if the crypto module for the cipher
is not loaded. ieee80211_crypto_available() will try to load the module
first.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2987
0192ed92-7a03-0410-a25b-
9323aeb14dbd
printk("%s: ", t->name);
+ if (!ieee80211_crypto_available(vap, t->cipher)) {
+ printk("FAIL: ieee80211_crypto_available failed\n");
+ return 0;
+ }
+
/*
* Setup key.
*/
int hdrlen;
const int keyix = 0;
+ if (!ieee80211_crypto_available(vap, IEEE80211_CIPHER_TKIP)) {
+ printk("FAIL: ieee80211_crypto_available failed\n");
+ return 0;
+ }
+
/*
* Setup key.
*/
printk("%s: ", t->name);
+ if (!ieee80211_crypto_available(vap, t->cipher)) {
+ printk("FAIL: ieee80211_crypto_available failed\n");
+ return 0;
+ }
+
/*
* Setup key.
*/