Searched refs:new_crypt (Results 1 – 2 of 2) sorted by relevance
334 struct lib80211_crypt_data *new_crypt; in rtllib_wx_set_encode() local337 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 …]
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 …]