Lines Matching refs:new_crypt
368 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()
386 new_crypt = NULL; in libipw_wx_set_encode()
392 *crypt = new_crypt; in libipw_wx_set_encode()
600 struct lib80211_crypt_data *new_crypt; in libipw_wx_set_encodeext() local
604 new_crypt = kzalloc(sizeof(*new_crypt), GFP_KERNEL); in libipw_wx_set_encodeext()
605 if (new_crypt == NULL) { in libipw_wx_set_encodeext()
609 new_crypt->ops = ops; in libipw_wx_set_encodeext()
610 if (new_crypt->ops && try_module_get(new_crypt->ops->owner)) in libipw_wx_set_encodeext()
611 new_crypt->priv = new_crypt->ops->init(idx); in libipw_wx_set_encodeext()
612 if (new_crypt->priv == NULL) { in libipw_wx_set_encodeext()
613 kfree(new_crypt); in libipw_wx_set_encodeext()
617 *crypt = new_crypt; in libipw_wx_set_encodeext()