Lines Matching refs:new_crypt
160 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()
176 new_crypt = NULL; in prism2_ioctl_siwencode()
183 *crypt = new_crypt; in prism2_ioctl_siwencode()
3292 struct lib80211_crypt_data *new_crypt; in prism2_ioctl_siwencodeext() local
3296 new_crypt = kzalloc(sizeof(struct lib80211_crypt_data), in prism2_ioctl_siwencodeext()
3298 if (new_crypt == NULL) { in prism2_ioctl_siwencodeext()
3302 new_crypt->ops = ops; in prism2_ioctl_siwencodeext()
3303 if (new_crypt->ops && try_module_get(new_crypt->ops->owner)) in prism2_ioctl_siwencodeext()
3304 new_crypt->priv = new_crypt->ops->init(i); in prism2_ioctl_siwencodeext()
3305 if (new_crypt->priv == NULL) { in prism2_ioctl_siwencodeext()
3306 kfree(new_crypt); in prism2_ioctl_siwencodeext()
3311 *crypt = new_crypt; in prism2_ioctl_siwencodeext()
3506 struct lib80211_crypt_data *new_crypt; in prism2_ioctl_set_encryption() local
3510 new_crypt = kzalloc(sizeof(struct lib80211_crypt_data), in prism2_ioctl_set_encryption()
3512 if (new_crypt == NULL) { in prism2_ioctl_set_encryption()
3516 new_crypt->ops = ops; in prism2_ioctl_set_encryption()
3517 new_crypt->priv = new_crypt->ops->init(param->u.crypt.idx); in prism2_ioctl_set_encryption()
3518 if (new_crypt->priv == NULL) { in prism2_ioctl_set_encryption()
3519 kfree(new_crypt); in prism2_ioctl_set_encryption()
3526 *crypt = new_crypt; in prism2_ioctl_set_encryption()