Searched refs:new_crypt (Results 1 – 5 of 5) sorted by relevance
368 struct lib80211_crypt_data *new_crypt; in libipw_wx_set_encode() local371 new_crypt = kzalloc(sizeof(struct lib80211_crypt_data), in libipw_wx_set_encode()373 if (new_crypt == NULL) in libipw_wx_set_encode()375 new_crypt->ops = lib80211_get_crypto_ops("WEP"); in libipw_wx_set_encode()376 if (!new_crypt->ops) { in libipw_wx_set_encode()378 new_crypt->ops = lib80211_get_crypto_ops("WEP"); in libipw_wx_set_encode()381 if (new_crypt->ops && try_module_get(new_crypt->ops->owner)) in libipw_wx_set_encode()382 new_crypt->priv = new_crypt->ops->init(key); in libipw_wx_set_encode()384 if (!new_crypt->ops || !new_crypt->priv) { in libipw_wx_set_encode()385 kfree(new_crypt); in libipw_wx_set_encode()[all …]
344 struct lib80211_crypt_data *new_crypt; in rtllib_wx_set_encode() local347 new_crypt = kzalloc(sizeof(*new_crypt), GFP_KERNEL); in rtllib_wx_set_encode()348 if (!new_crypt) in rtllib_wx_set_encode()350 new_crypt->ops = lib80211_get_crypto_ops("R-WEP"); in rtllib_wx_set_encode()351 if (!new_crypt->ops) { in rtllib_wx_set_encode()353 new_crypt->ops = lib80211_get_crypto_ops("R-WEP"); in rtllib_wx_set_encode()356 if (new_crypt->ops) in rtllib_wx_set_encode()357 new_crypt->priv = new_crypt->ops->init(key); in rtllib_wx_set_encode()359 if (!new_crypt->ops || !new_crypt->priv) { in rtllib_wx_set_encode()360 kfree(new_crypt); in rtllib_wx_set_encode()[all …]
341 struct ieee80211_crypt_data *new_crypt; in ieee80211_wx_set_encode() local344 new_crypt = kzalloc(sizeof(struct ieee80211_crypt_data), in ieee80211_wx_set_encode()346 if (!new_crypt) in ieee80211_wx_set_encode()348 new_crypt->ops = try_then_request_module(ieee80211_get_crypto_ops("WEP"), in ieee80211_wx_set_encode()350 if (new_crypt->ops && try_module_get(new_crypt->ops->owner)) in ieee80211_wx_set_encode()351 new_crypt->priv = new_crypt->ops->init(key); in ieee80211_wx_set_encode()353 if (!new_crypt->ops || !new_crypt->priv) { in ieee80211_wx_set_encode()354 kfree(new_crypt); in ieee80211_wx_set_encode()355 new_crypt = NULL; in ieee80211_wx_set_encode()361 *crypt = new_crypt; in ieee80211_wx_set_encode()[all …]
2871 struct ieee80211_crypt_data *new_crypt; in ieee80211_wpa_set_encryption() local2875 new_crypt = kzalloc(sizeof(*new_crypt), GFP_KERNEL); in ieee80211_wpa_set_encryption()2876 if (!new_crypt) { in ieee80211_wpa_set_encryption()2880 new_crypt->ops = ops; in ieee80211_wpa_set_encryption()2881 if (new_crypt->ops && try_module_get(new_crypt->ops->owner)) in ieee80211_wpa_set_encryption()2882 new_crypt->priv = in ieee80211_wpa_set_encryption()2883 new_crypt->ops->init(param->u.crypt.idx); in ieee80211_wpa_set_encryption()2885 if (!new_crypt->priv) { in ieee80211_wpa_set_encryption()2886 kfree(new_crypt); in ieee80211_wpa_set_encryption()2892 *crypt = new_crypt; in ieee80211_wpa_set_encryption()
149 struct lib80211_crypt_data *new_crypt; in prism2_ioctl_siwencode() local152 new_crypt = kzalloc(sizeof(struct lib80211_crypt_data), in prism2_ioctl_siwencode()154 if (new_crypt == NULL) in prism2_ioctl_siwencode()156 new_crypt->ops = lib80211_get_crypto_ops("WEP"); in prism2_ioctl_siwencode()157 if (!new_crypt->ops) { in prism2_ioctl_siwencode()159 new_crypt->ops = lib80211_get_crypto_ops("WEP"); in prism2_ioctl_siwencode()161 if (new_crypt->ops && try_module_get(new_crypt->ops->owner)) in prism2_ioctl_siwencode()162 new_crypt->priv = new_crypt->ops->init(i); in prism2_ioctl_siwencode()163 if (!new_crypt->ops || !new_crypt->priv) { in prism2_ioctl_siwencode()164 kfree(new_crypt); in prism2_ioctl_siwencode()[all …]