Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/staging/rtl8192e/
Drtllib_wx.c334 struct lib80211_crypt_data *new_crypt; in rtllib_wx_set_encode() local
337 new_crypt = kzalloc(sizeof(*new_crypt), GFP_KERNEL); in rtllib_wx_set_encode()
338 if (!new_crypt) in rtllib_wx_set_encode()
340 new_crypt->ops = lib80211_get_crypto_ops("R-WEP"); in rtllib_wx_set_encode()
341 if (!new_crypt->ops) { in rtllib_wx_set_encode()
343 new_crypt->ops = lib80211_get_crypto_ops("R-WEP"); in rtllib_wx_set_encode()
346 if (new_crypt->ops) in rtllib_wx_set_encode()
347 new_crypt->priv = new_crypt->ops->init(key); in rtllib_wx_set_encode()
349 if (!new_crypt->ops || !new_crypt->priv) { in rtllib_wx_set_encode()
350 kfree(new_crypt); in rtllib_wx_set_encode()
[all …]
/linux-6.12.1/drivers/net/wireless/intel/ipw2x00/
Dlibipw_wx.c368 struct lib80211_crypt_data *new_crypt; in libipw_wx_set_encode() local
371 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 …]