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 …]
358 struct lib80211_crypt_data *new_crypt; in rtllib_wx_set_encode() local361 new_crypt = kzalloc(sizeof(*new_crypt), GFP_KERNEL); in rtllib_wx_set_encode()362 if (new_crypt == NULL) in rtllib_wx_set_encode()364 new_crypt->ops = lib80211_get_crypto_ops("R-WEP"); in rtllib_wx_set_encode()365 if (!new_crypt->ops) { in rtllib_wx_set_encode()367 new_crypt->ops = lib80211_get_crypto_ops("R-WEP"); in rtllib_wx_set_encode()370 if (new_crypt->ops) in rtllib_wx_set_encode()371 new_crypt->priv = new_crypt->ops->init(key); in rtllib_wx_set_encode()373 if (!new_crypt->ops || !new_crypt->priv) { in rtllib_wx_set_encode()374 kfree(new_crypt); in rtllib_wx_set_encode()[all …]
343 struct ieee80211_crypt_data *new_crypt; in ieee80211_wx_set_encode() local346 new_crypt = kzalloc(sizeof(struct ieee80211_crypt_data), in ieee80211_wx_set_encode()348 if (!new_crypt) in ieee80211_wx_set_encode()350 new_crypt->ops = try_then_request_module(ieee80211_get_crypto_ops("WEP"), in ieee80211_wx_set_encode()352 if (new_crypt->ops && try_module_get(new_crypt->ops->owner)) in ieee80211_wx_set_encode()353 new_crypt->priv = new_crypt->ops->init(key); in ieee80211_wx_set_encode()355 if (!new_crypt->ops || !new_crypt->priv) { in ieee80211_wx_set_encode()356 kfree(new_crypt); in ieee80211_wx_set_encode()357 new_crypt = NULL; in ieee80211_wx_set_encode()363 *crypt = new_crypt; in ieee80211_wx_set_encode()[all …]
2861 struct ieee80211_crypt_data *new_crypt; in ieee80211_wpa_set_encryption() local2865 new_crypt = kzalloc(sizeof(*new_crypt), GFP_KERNEL); in ieee80211_wpa_set_encryption()2866 if (!new_crypt) { in ieee80211_wpa_set_encryption()2870 new_crypt->ops = ops; in ieee80211_wpa_set_encryption()2871 if (new_crypt->ops && try_module_get(new_crypt->ops->owner)) in ieee80211_wpa_set_encryption()2872 new_crypt->priv = in ieee80211_wpa_set_encryption()2873 new_crypt->ops->init(param->u.crypt.idx); in ieee80211_wpa_set_encryption()2875 if (!new_crypt->priv) { in ieee80211_wpa_set_encryption()2876 kfree(new_crypt); in ieee80211_wpa_set_encryption()2882 *crypt = new_crypt; in ieee80211_wpa_set_encryption()
160 struct lib80211_crypt_data *new_crypt; in prism2_ioctl_siwencode() local163 new_crypt = kzalloc(sizeof(struct lib80211_crypt_data), in prism2_ioctl_siwencode()165 if (new_crypt == NULL) in prism2_ioctl_siwencode()167 new_crypt->ops = lib80211_get_crypto_ops("WEP"); in prism2_ioctl_siwencode()168 if (!new_crypt->ops) { in prism2_ioctl_siwencode()170 new_crypt->ops = lib80211_get_crypto_ops("WEP"); in prism2_ioctl_siwencode()172 if (new_crypt->ops && try_module_get(new_crypt->ops->owner)) in prism2_ioctl_siwencode()173 new_crypt->priv = new_crypt->ops->init(i); in prism2_ioctl_siwencode()174 if (!new_crypt->ops || !new_crypt->priv) { in prism2_ioctl_siwencode()175 kfree(new_crypt); in prism2_ioctl_siwencode()[all …]