Lines Matching refs:crypt
306 struct lib80211_crypt_data **crypt; in libipw_wx_set_encode() local
325 crypt = &ieee->crypt_info.crypt[key]; in libipw_wx_set_encode()
328 if (key_provided && *crypt) { in libipw_wx_set_encode()
331 lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); in libipw_wx_set_encode()
338 if (ieee->crypt_info.crypt[i] != NULL) { in libipw_wx_set_encode()
342 &ieee->crypt_info.crypt[i]); in libipw_wx_set_encode()
360 if (*crypt != NULL && (*crypt)->ops != NULL && in libipw_wx_set_encode()
361 strcmp((*crypt)->ops->name, "WEP") != 0) { in libipw_wx_set_encode()
364 lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); in libipw_wx_set_encode()
367 if (*crypt == NULL && host_crypto) { in libipw_wx_set_encode()
392 *crypt = new_crypt; in libipw_wx_set_encode()
406 if (*crypt) in libipw_wx_set_encode()
407 (*crypt)->ops->set_key(sec.keys[key], len, NULL, in libipw_wx_set_encode()
408 (*crypt)->priv); in libipw_wx_set_encode()
417 len = (*crypt)->ops->get_key(sec.keys[key], WEP_KEY_LEN, in libipw_wx_set_encode()
418 NULL, (*crypt)->priv); in libipw_wx_set_encode()
424 (*crypt)->ops->set_key(sec.keys[key], 13, NULL, in libipw_wx_set_encode()
425 (*crypt)->priv); in libipw_wx_set_encode()
513 struct lib80211_crypt_data **crypt; in libipw_wx_set_encodeext() local
528 crypt = &ieee->crypt_info.crypt[idx]; in libipw_wx_set_encodeext()
535 crypt = &ieee->crypt_info.crypt[idx]; in libipw_wx_set_encodeext()
543 if (*crypt) in libipw_wx_set_encodeext()
544 lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); in libipw_wx_set_encodeext()
547 if (ieee->crypt_info.crypt[i] != NULL) in libipw_wx_set_encodeext()
599 if (*crypt == NULL || (*crypt)->ops != ops) { in libipw_wx_set_encodeext()
602 lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); in libipw_wx_set_encodeext()
617 *crypt = new_crypt; in libipw_wx_set_encodeext()
620 if (ext->key_len > 0 && (*crypt)->ops->set_key && in libipw_wx_set_encodeext()
621 (*crypt)->ops->set_key(ext->key, ext->key_len, ext->rx_seq, in libipw_wx_set_encodeext()
622 (*crypt)->priv) < 0) { in libipw_wx_set_encodeext()