wpa_supplicant: nl80211: set_key failed; err=-22

Dan Williams dcbw at redhat.com
Tue Nov 18 10:53:07 EST 2014


On Tue, 2014-11-18 at 15:34 +0100, Richard Knoop wrote:
> Another update:
> 
> It fails in the mac80211 module, method ieee80211_add_key
> 
>      /* reject WEP and TKIP keys if WEP failed to initialize */
>      switch (params->cipher) {
>      case WLAN_CIPHER_SUITE_WEP40:
>      case WLAN_CIPHER_SUITE_TKIP:
>      case WLAN_CIPHER_SUITE_WEP104:
>          if (IS_ERR(sdata->local->wep_tx_tfm))
>      {

That gets set from:

local->wep_tx_tfm = crypto_alloc_cipher("arc4", 0, CRYPTO_ALG_ASYNC);

Are you sure your kernel has CONFIG_CRYPTO_ARC4=y?

Dan

>              return -EINVAL;
>      }
>          break;
>      default:
>          break;
>      }
> 
> So WEP is not initialized.
> 
> To be continued.
> 




More information about the HostAP mailing list