Home
last modified time | relevance | path

Searched refs:new_crypt (Results 1 – 5 of 5) sorted by relevance

/Linux-v4.19/drivers/net/wireless/intel/ipw2x00/
Dlibipw_wx.c382 struct lib80211_crypt_data *new_crypt; in libipw_wx_set_encode() local
385 new_crypt = kzalloc(sizeof(struct lib80211_crypt_data), in libipw_wx_set_encode()
387 if (new_crypt == NULL) in libipw_wx_set_encode()
389 new_crypt->ops = lib80211_get_crypto_ops("WEP"); in libipw_wx_set_encode()
390 if (!new_crypt->ops) { in libipw_wx_set_encode()
392 new_crypt->ops = lib80211_get_crypto_ops("WEP"); in libipw_wx_set_encode()
395 if (new_crypt->ops && try_module_get(new_crypt->ops->owner)) in libipw_wx_set_encode()
396 new_crypt->priv = new_crypt->ops->init(key); in libipw_wx_set_encode()
398 if (!new_crypt->ops || !new_crypt->priv) { in libipw_wx_set_encode()
399 kfree(new_crypt); in libipw_wx_set_encode()
[all …]
/Linux-v4.19/drivers/staging/rtl8192e/
Drtllib_wx.c371 struct lib80211_crypt_data *new_crypt; in rtllib_wx_set_encode() local
374 new_crypt = kzalloc(sizeof(*new_crypt), GFP_KERNEL); in rtllib_wx_set_encode()
375 if (new_crypt == NULL) in rtllib_wx_set_encode()
377 new_crypt->ops = lib80211_get_crypto_ops("R-WEP"); in rtllib_wx_set_encode()
378 if (!new_crypt->ops) { in rtllib_wx_set_encode()
380 new_crypt->ops = lib80211_get_crypto_ops("R-WEP"); in rtllib_wx_set_encode()
383 if (new_crypt->ops) in rtllib_wx_set_encode()
384 new_crypt->priv = new_crypt->ops->init(key); in rtllib_wx_set_encode()
386 if (!new_crypt->ops || !new_crypt->priv) { in rtllib_wx_set_encode()
387 kfree(new_crypt); in rtllib_wx_set_encode()
[all …]
/Linux-v4.19/drivers/staging/rtl8192u/ieee80211/
Dieee80211_wx.c360 struct ieee80211_crypt_data *new_crypt; in ieee80211_wx_set_encode() local
363 new_crypt = kzalloc(sizeof(struct ieee80211_crypt_data), in ieee80211_wx_set_encode()
365 if (!new_crypt) in ieee80211_wx_set_encode()
367 new_crypt->ops = try_then_request_module(ieee80211_get_crypto_ops("WEP"), in ieee80211_wx_set_encode()
369 if (new_crypt->ops && try_module_get(new_crypt->ops->owner)) in ieee80211_wx_set_encode()
370 new_crypt->priv = new_crypt->ops->init(key); in ieee80211_wx_set_encode()
372 if (!new_crypt->ops || !new_crypt->priv) { in ieee80211_wx_set_encode()
373 kfree(new_crypt); in ieee80211_wx_set_encode()
374 new_crypt = NULL; in ieee80211_wx_set_encode()
381 *crypt = new_crypt; in ieee80211_wx_set_encode()
[all …]
Dieee80211_softmac.c2861 struct ieee80211_crypt_data *new_crypt; in ieee80211_wpa_set_encryption() local
2865 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 == NULL) { in ieee80211_wpa_set_encryption()
2876 kfree(new_crypt); in ieee80211_wpa_set_encryption()
2882 *crypt = new_crypt; in ieee80211_wpa_set_encryption()
/Linux-v4.19/drivers/net/wireless/intersil/hostap/
Dhostap_ioctl.c160 struct lib80211_crypt_data *new_crypt; in prism2_ioctl_siwencode() local
163 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 …]