Lines Matching refs:crypto
48 if (req->crypto.wep_keys->seq_len) { in osif_cm_update_wep_seq_info()
49 connect_req->crypto.wep_keys.seq_len = in osif_cm_update_wep_seq_info()
50 req->crypto.wep_keys->seq_len; in osif_cm_update_wep_seq_info()
51 connect_req->crypto.wep_keys.seq = in osif_cm_update_wep_seq_info()
52 qdf_mem_malloc(connect_req->crypto.wep_keys.seq_len); in osif_cm_update_wep_seq_info()
53 if (!connect_req->crypto.wep_keys.seq) { in osif_cm_update_wep_seq_info()
57 qdf_mem_copy(connect_req->crypto.wep_keys.seq, in osif_cm_update_wep_seq_info()
58 req->crypto.wep_keys->seq, in osif_cm_update_wep_seq_info()
59 connect_req->crypto.wep_keys.seq_len); in osif_cm_update_wep_seq_info()
80 connect_req->crypto.wep_keys.key_len = req->key_len; in osif_cm_set_wep_key_params()
81 connect_req->crypto.wep_keys.key_idx = req->key_idx; in osif_cm_set_wep_key_params()
83 connect_req->crypto.wep_keys.key = in osif_cm_set_wep_key_params()
84 qdf_mem_malloc(connect_req->crypto.wep_keys.key_len); in osif_cm_set_wep_key_params()
85 if (!connect_req->crypto.wep_keys.key) in osif_cm_set_wep_key_params()
88 qdf_mem_copy(connect_req->crypto.wep_keys.key, req->key, in osif_cm_set_wep_key_params()
89 connect_req->crypto.wep_keys.key_len); in osif_cm_set_wep_key_params()
110 req->crypto.wpa_versions) { in osif_cm_set_auth_type()
111 if (req->crypto.wpa_versions & NL80211_WPA_VERSION_1) in osif_cm_set_auth_type()
115 } else if (!req->crypto.n_ciphers_pairwise) { in osif_cm_set_auth_type()
119 QDF_SET_PARAM(connect_req->crypto.auth_type, crypto_auth_type); in osif_cm_set_auth_type()
125 return req->crypto.n_akm_suites; in osif_cm_get_num_akm_suites()
131 return (uint32_t *)req->crypto.akm_suites; in osif_cm_get_akm_suites()
147 if (req->crypto.n_akm_suites) { in osif_cm_set_akm_params()
148 for (i = 0; i < req->crypto.n_akm_suites && in osif_cm_set_akm_params()
151 req->crypto.akm_suites[i]); in osif_cm_set_akm_params()
152 QDF_SET_PARAM(connect_req->crypto.akm_suites, akm); in osif_cm_set_akm_params()
155 QDF_SET_PARAM(connect_req->crypto.akm_suites, in osif_cm_set_akm_params()
186 connect_req->crypto.user_cipher_pairwise = in osif_cm_populate_user_crypto_param()
187 req->crypto.ciphers_pairwise[0]; in osif_cm_populate_user_crypto_param()
188 connect_req->crypto.user_akm_suite = req->crypto.akm_suites[0]; in osif_cm_populate_user_crypto_param()
189 connect_req->crypto.user_auth_type = req->auth_type; in osif_cm_populate_user_crypto_param()
190 connect_req->crypto.user_grp_cipher = req->crypto.cipher_group; in osif_cm_populate_user_crypto_param()
208 connect_req->crypto.wpa_versions = req->crypto.wpa_versions; in osif_cm_set_crypto_params()
212 if (req->crypto.cipher_group) in osif_cm_set_crypto_params()
214 osif_nl_to_crypto_cipher_type(req->crypto.cipher_group); in osif_cm_set_crypto_params()
216 QDF_SET_PARAM(connect_req->crypto.group_cipher, cipher); in osif_cm_set_crypto_params()
219 if (req->crypto.n_ciphers_pairwise) { in osif_cm_set_crypto_params()
220 for (i = 0; i < req->crypto.n_ciphers_pairwise && in osif_cm_set_crypto_params()
223 req->crypto.ciphers_pairwise[i]); in osif_cm_set_crypto_params()
224 QDF_SET_PARAM(connect_req->crypto.ciphers_pairwise, in osif_cm_set_crypto_params()
228 QDF_SET_PARAM(connect_req->crypto.ciphers_pairwise, in osif_cm_set_crypto_params()
241 connect_req->crypto.user_mfp = osif_cm_get_rsn_cap_mfp(req->mfp); in osif_cm_set_crypto_params()
459 req->auth_type, req->crypto.wpa_versions, in osif_cm_dump_connect_req()
461 req->crypto.n_ciphers_pairwise, in osif_cm_dump_connect_req()
462 req->crypto.cipher_group, req->mfp, in osif_cm_dump_connect_req()
475 for (i = 0; i < req->crypto.n_ciphers_pairwise; i++) in osif_cm_dump_connect_req()
477 req->crypto.ciphers_pairwise[i]); in osif_cm_dump_connect_req()