/external/wpa_supplicant_8/src/wps/ |
D | wps_attr_process.c | 100 size_t ssid_len) in wps_process_cred_ssid() argument 109 while (ssid_len > 0 && ssid[ssid_len - 1] == 0) in wps_process_cred_ssid() 110 ssid_len--; in wps_process_cred_ssid() 112 wpa_hexdump_ascii(MSG_DEBUG, "WPS: SSID", ssid, ssid_len); in wps_process_cred_ssid() 113 if (ssid_len <= sizeof(cred->ssid)) { in wps_process_cred_ssid() 114 os_memcpy(cred->ssid, ssid, ssid_len); in wps_process_cred_ssid() 115 cred->ssid_len = ssid_len; in wps_process_cred_ssid() 254 wps_process_cred_ssid(cred, attr->ssid, attr->ssid_len) || in wps_process_cred() 273 if (wps_process_cred_ssid(cred, attr->ssid, attr->ssid_len) || in wps_process_ap_settings()
|
D | wps_common.c | 391 os_memcpy(cred.ssid, wps->ssid, wps->ssid_len); in wps_get_oob_cred() 392 cred.ssid_len = wps->ssid_len; in wps_get_oob_cred() 744 wps->ssid, wps->ssid_len); in wps_build_ssid() 746 wpabuf_put_be16(msg, wps->ssid_len); in wps_build_ssid() 747 wpabuf_put_data(msg, wps->ssid, wps->ssid_len); in wps_build_ssid()
|
/external/wpa_supplicant_8/src/crypto/ |
D | sha1-pbkdf2.c | 15 size_t ssid_len, int iterations, unsigned int count, in pbkdf2_sha1_f() argument 26 len[0] = ssid_len; in pbkdf2_sha1_f() 72 int pbkdf2_sha1(const char *passphrase, const u8 *ssid, size_t ssid_len, in pbkdf2_sha1() argument 82 if (pbkdf2_sha1_f(passphrase, ssid, ssid_len, iterations, in pbkdf2_sha1()
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | scan.c | 374 if (ssid->ssid && ssid->ssid_len) in wpa_supplicant_build_filter_ssids() 384 if (!ssid->ssid || !ssid->ssid_len) in wpa_supplicant_build_filter_ssids() 386 os_memcpy(ssids[*num_ssids].ssid, ssid->ssid, ssid->ssid_len); in wpa_supplicant_build_filter_ssids() 387 ssids[*num_ssids].ssid_len = ssid->ssid_len; in wpa_supplicant_build_filter_ssids() 744 size_t max_ssids, const u8 *ssid, size_t ssid_len) in wpa_add_scan_ssid() argument 749 if (params->ssids[j].ssid_len == ssid_len && in wpa_add_scan_ssid() 751 os_memcmp(params->ssids[j].ssid, ssid, ssid_len) == 0) in wpa_add_scan_ssid() 761 wpa_ssid_txt(ssid, ssid_len)); in wpa_add_scan_ssid() 764 params->ssids[params->num_ssids].ssid_len = ssid_len; in wpa_add_scan_ssid() 780 wpa_ssid_txt(ssid->ssid, ssid->ssid_len)); in wpa_add_owe_scan_ssid() [all …]
|
D | bss.c | 233 wpa_ssid_txt(bss->ssid, bss->ssid_len), reason); in wpa_bss_remove() 249 const u8 *ssid, size_t ssid_len) in wpa_bss_get() argument 256 bss->ssid_len == ssid_len && in wpa_bss_get() 257 os_memcmp(bss->ssid, ssid, ssid_len) == 0) in wpa_bss_get() 323 if (ssid->ssid_len && in wpa_bss_is_wps_candidate() 324 (ssid->ssid_len != bss->ssid_len || in wpa_bss_is_wps_candidate() 325 os_memcmp(ssid->ssid, bss->ssid, ssid->ssid_len) != 0)) in wpa_bss_is_wps_candidate() 368 if (ssid->ssid == NULL || ssid->ssid_len == 0) in wpa_bss_known() 370 if (ssid->ssid_len == bss->ssid_len && in wpa_bss_known() 371 os_memcmp(ssid->ssid, bss->ssid, ssid->ssid_len) == 0) in wpa_bss_known() [all …]
|
D | wps_supplicant.c | 206 bss = wpa_bss_get(wpa_s, cred->mac_addr, ssid->ssid, ssid->ssid_len); in wpas_wps_security_workaround() 209 ssid->ssid, ssid->ssid_len); in wpas_wps_security_workaround() 293 if (ssid->ssid_len == 0 || ssid->ssid_len != new_ssid->ssid_len) in wpas_wps_remove_dup_network() 298 ssid->ssid_len) != 0) in wpas_wps_remove_dup_network() 398 wpa_hexdump_ascii(MSG_DEBUG, "WPS: SSID", cred->ssid, cred->ssid_len); in wpa_supplicant_wps_cred() 481 ssid->ssid = os_malloc(cred->ssid_len); in wpa_supplicant_wps_cred() 483 os_memcpy(ssid->ssid, cred->ssid, cred->ssid_len); in wpa_supplicant_wps_cred() 484 ssid->ssid_len = cred->ssid_len; in wpa_supplicant_wps_cred() 828 uuid_str, wpa_ssid_txt(cred->ssid, cred->ssid_len), in wpa_supplicant_wps_event_er_ap_settings() 1053 ssid->ssid = os_memdup(bss->ssid, bss->ssid_len); in wpas_wps_add_network() [all …]
|
D | p2p_supplicant.c | 126 const u8 *ssid, size_t ssid_len); 132 const u8 *ssid, size_t ssid_len); 137 const u8 *ssid, size_t ssid_len); 427 params->ssids[0].ssid_len = P2P_WILDCARD_SSID_LEN; in wpas_p2p_scan() 528 size_t ssid_len, int *go) in wpas_get_p2p_group() argument 535 s->ssid_len != ssid_len || in wpas_get_p2p_group() 536 os_memcmp(ssid, s->ssid, ssid_len) != 0) in wpas_get_p2p_group() 1070 const u8 *ssid, size_t ssid_len) in wpas_p2p_persistent_group() argument 1083 bss = wpa_bss_get(wpa_s, bssid, ssid, ssid_len); in wpas_p2p_persistent_group() 1092 bss = wpa_bss_get(wpa_s, iface_addr, ssid, ssid_len); in wpas_p2p_persistent_group() [all …]
|
D | wpas_glue.c | 406 ((bss->ssid_len == ssid->ssid_len && in wpa_get_beacon_ie() 407 os_memcmp(bss->ssid, ssid->ssid, ssid->ssid_len) == 0) || in wpa_get_beacon_ie() 408 ssid->ssid_len == 0)) { in wpa_get_beacon_ie() 616 params.ssid_len = ssid->ssid_len; in wpa_supplicant_add_pmkid() 647 params.ssid_len = ssid->ssid_len; in wpa_supplicant_remove_pmkid() 730 params.ssid_len = bss->ssid_len; in wpa_supplicant_mark_authenticated() 941 buflen = 100 + os_strlen(txt) + ssid->ssid_len; in wpas_send_ctrl_req() 951 if (ssid->ssid && buflen > len + ssid->ssid_len) { in wpas_send_ctrl_req() 952 os_memcpy(buf + len, ssid->ssid, ssid->ssid_len); in wpas_send_ctrl_req() 953 len += ssid->ssid_len; in wpas_send_ctrl_req() [all …]
|
D | interworking.c | 893 if (ssid->ssid_len != bss->ssid_len || in already_connected() 894 os_memcmp(ssid->ssid, bss->ssid, bss->ssid_len) != 0) in already_connected() 915 if (ssid->ssid_len != bss->ssid_len || in remove_duplicate_network() 916 os_memcmp(ssid->ssid, bss->ssid, bss->ssid_len) != 0) in remove_duplicate_network() 1004 ssid->ssid = os_zalloc(bss->ssid_len + 1); in interworking_connect_3gpp() 1007 os_memcpy(ssid->ssid, bss->ssid, bss->ssid_len); in interworking_connect_3gpp() 1008 ssid->ssid_len = bss->ssid_len; in interworking_connect_3gpp() 1203 if (bss->ssid_len == e->ssid_len && in cred_excluded_ssid() 1204 os_memcmp(bss->ssid, e->ssid, e->ssid_len) == 0) in cred_excluded_ssid() 1594 ssid->ssid = os_zalloc(bss->ssid_len + 1); in interworking_connect_roaming_consortium() [all …]
|
D | rrm.c | 177 buf = wpabuf_alloc(3 + (ssid ? 2 + ssid->ssid_len : 0) + in wpas_rrm_send_neighbor_rep_request() 188 (ssid ? wpa_ssid_txt(ssid->ssid, ssid->ssid_len) : ""), in wpas_rrm_send_neighbor_rep_request() 196 wpabuf_put_u8(buf, ssid->ssid_len); in wpas_rrm_send_neighbor_rep_request() 197 wpabuf_put_data(buf, ssid->ssid, ssid->ssid_len); in wpas_rrm_send_neighbor_rep_request() 940 if (data->ssid_len && in wpas_add_beacon_rep() 941 (data->ssid_len != bss->ssid_len || in wpas_add_beacon_rep() 942 os_memcmp(data->ssid, bss->ssid, bss->ssid_len) != 0)) in wpas_add_beacon_rep() 1063 data->ssid_len = slen; in wpas_rm_handle_beacon_req_subelem() 1064 os_memcpy(data->ssid, subelem, data->ssid_len); in wpas_rm_handle_beacon_req_subelem() 1245 params->ssids[params->num_ssids++].ssid_len = data->ssid_len; in wpas_rm_handle_beacon_req()
|
D | events.c | 143 if (ssid->ssid_len > 0) in wpa_supplicant_get_new_bss() 144 bss = wpa_bss_get(wpa_s, bssid, ssid->ssid, ssid->ssid_len); in wpa_supplicant_get_new_bss() 178 if (wpa_s->current_ssid->ssid_len == 0) in wpa_supplicant_select_config() 188 if (drv_ssid_len == wpa_s->current_ssid->ssid_len && in wpa_supplicant_select_config() 197 drv_ssid_len == wpa_s->current_bss->ssid_len && in wpa_supplicant_select_config() 224 disallowed_ssid(wpa_s, ssid->ssid, ssid->ssid_len)) { in wpa_supplicant_select_config() 978 u8 ssid_len; in owe_trans_ssid() local 992 ssid_len = *pos++; in owe_trans_ssid() 993 if (end - pos < ssid_len || ssid_len > SSID_MAX_LEN) in owe_trans_ssid() 999 " SSID: %s", MAC2STR(bssid), wpa_ssid_txt(pos, ssid_len)); in owe_trans_ssid() [all …]
|
D | bss.h | 96 size_t ssid_len; member 148 const u8 *ssid, size_t ssid_len);
|
D | mesh.c | 92 os_memcpy(conf->meshid, ssid->ssid, ssid->ssid_len); in mesh_config_create() 93 conf->meshid_len = ssid->ssid_len; in mesh_config_create() 287 wpa_ssid_txt(ssid->ssid, ssid->ssid_len)); in wpas_mesh_complete() 299 wpa_ssid_txt(ssid->ssid, ssid->ssid_len), in wpas_mesh_complete() 584 if (!ssid || !ssid->ssid || !ssid->ssid_len || !ssid->frequency || in wpa_supplicant_join_mesh() 598 params->meshid_len = ssid->ssid_len; in wpa_supplicant_join_mesh()
|
/external/wpa_supplicant_8/src/ap/ |
D | neighbor_db.c | 28 (ssid->ssid_len == nr->ssid.ssid_len && in hostapd_neighbor_get() 30 ssid->ssid_len) == 0))) in hostapd_neighbor_get() 55 nr->ssid.ssid_len); in hostapd_neighbor_show() 285 ssid.ssid_len = hapd->conf->ssid.ssid_len; in hostapd_neighbor_set_own_report() 286 os_memcpy(ssid.ssid, hapd->conf->ssid.ssid, ssid.ssid_len); in hostapd_neighbor_set_own_report()
|
D | rrm.c | 226 if (ssid->ssid_len != nr->ssid.ssid_len || in hostapd_send_nei_report_resp() 227 os_memcmp(ssid->ssid, nr->ssid.ssid, ssid->ssid_len) != 0) in hostapd_send_nei_report_resp() 284 .ssid_len = 0 in hostapd_handle_nei_report_req() 302 ssid.ssid_len = ie[1]; in hostapd_handle_nei_report_req() 303 os_memcpy(ssid.ssid, ie + 2, ssid.ssid_len); in hostapd_handle_nei_report_req() 305 ssid.ssid_len = hapd->conf->ssid.ssid_len; in hostapd_handle_nei_report_req() 306 os_memcpy(ssid.ssid, hapd->conf->ssid.ssid, ssid.ssid_len); in hostapd_handle_nei_report_req()
|
D | wps_hostapd.c | 361 if (cred->ssid_len <= SSID_MAX_LEN) { in hapd_wps_reconfig_in_memory() 362 os_memcpy(bss->ssid.ssid, cred->ssid, cred->ssid_len); in hapd_wps_reconfig_in_memory() 363 bss->ssid.ssid_len = cred->ssid_len; in hapd_wps_reconfig_in_memory() 473 wpa_hexdump_ascii(MSG_DEBUG, "WPS: SSID", cred->ssid, cred->ssid_len); in hapd_wps_cred_cb() 500 os_memcpy(hapd->wps->ssid, cred->ssid, cred->ssid_len); in hapd_wps_cred_cb() 501 hapd->wps->ssid_len = cred->ssid_len; in hapd_wps_cred_cb() 560 if (is_hex(cred->ssid, cred->ssid_len)) { in hapd_wps_cred_cb() 562 for (i = 0; i < cred->ssid_len; i++) in hapd_wps_cred_cb() 567 for (i = 0; i < cred->ssid_len; i++) in hapd_wps_cred_cb() 1121 wps->ssid_len = hapd->conf->ssid.ssid_len; in hostapd_init_wps() [all …]
|
D | beacon.c | 498 *pos++ = hapd->conf->ssid.ssid_len; in hostapd_gen_probe_resp() 499 os_memcpy(pos, hapd->conf->ssid.ssid, hapd->conf->ssid.ssid_len); in hostapd_gen_probe_resp() 500 pos += hapd->conf->ssid.ssid_len; in hostapd_gen_probe_resp() 649 const u8 *ssid, size_t ssid_len, in ssid_match() argument 658 if (ssid_len == 0) in ssid_match() 660 if (ssid_len == hapd->conf->ssid.ssid_len && in ssid_match() 661 os_memcmp(ssid, hapd->conf->ssid.ssid, ssid_len) == 0) in ssid_match() 672 if (pos[1] == hapd->conf->ssid.ssid_len && in ssid_match() 917 if (hapd->conf->ignore_broadcast_ssid && elems.ssid_len == 0 && in handle_probe_req() 926 elems.ssid_len == P2P_WILDCARD_SSID_LEN && in handle_probe_req() [all …]
|
/external/wpa_supplicant_8/src/drivers/ |
D | driver_nl80211_android.c | 99 params->ssids[i].ssid_len); in android_pno_start() 101 buf[bp++] = params->ssids[i].ssid_len; in android_pno_start() 103 params->ssids[i].ssid_len); in android_pno_start() 104 bp += params->ssids[i].ssid_len; in android_pno_start()
|
D | driver_privsep.c | 114 scan.ssid_lens[i] = params->ssids[i].ssid_len; in wpa_driver_privsep_scan() 269 os_memcpy(data->ssid, params->ssid, params->ssid_len); in wpa_driver_privsep_authenticate() 270 data->ssid_len = params->ssid_len; in wpa_driver_privsep_authenticate() 319 os_memcpy(data->ssid, params->ssid, params->ssid_len); in wpa_driver_privsep_associate() 320 data->ssid_len = params->ssid_len; in wpa_driver_privsep_associate() 358 int res, ssid_len; in wpa_driver_privsep_get_ssid() local 365 os_memcpy(&ssid_len, reply, sizeof(int)); in wpa_driver_privsep_get_ssid() 366 if (ssid_len < 0 || ssid_len > SSID_MAX_LEN || in wpa_driver_privsep_get_ssid() 367 sizeof(int) + ssid_len > len) { in wpa_driver_privsep_get_ssid() 371 os_memcpy(ssid, &reply[sizeof(int)], ssid_len); in wpa_driver_privsep_get_ssid() [all …]
|
D | driver_wext.c | 165 int wpa_driver_wext_set_ssid(void *priv, const u8 *ssid, size_t ssid_len) in wpa_driver_wext_set_ssid() argument 172 if (ssid_len > SSID_MAX_LEN) in wpa_driver_wext_set_ssid() 178 iwr.u.essid.flags = (ssid_len != 0); in wpa_driver_wext_set_ssid() 180 os_memcpy(buf, ssid, ssid_len); in wpa_driver_wext_set_ssid() 191 if (ssid_len) in wpa_driver_wext_set_ssid() 192 ssid_len++; in wpa_driver_wext_set_ssid() 194 iwr.u.essid.length = ssid_len; in wpa_driver_wext_set_ssid() 1095 size_t ssid_len = params->ssids[0].ssid_len; in wpa_driver_wext_scan() local 1097 if (ssid_len > IW_ESSID_MAX_SIZE) { in wpa_driver_wext_scan() 1099 __FUNCTION__, (unsigned long) ssid_len); in wpa_driver_wext_scan() [all …]
|
/external/wpa_supplicant_8/src/p2p/ |
D | p2p.h | 121 size_t ssid_len; member 944 size_t ssid_len, int *go, u8 *group_bssid, 967 const u8 *ssid, size_t ssid_len, 1043 size_t ssid_len, u8 *go_dev_addr, 1064 u8 *ssid, size_t *ssid_len, int *group_iface, 1075 const u8 *ssid, size_t ssid_len); 1459 const u8 *bssid, const u8 *ssid, size_t ssid_len, 1727 size_t ssid_len; member 2331 const u8 *ssid, size_t ssid_len); 2335 const u8 *ssid, size_t ssid_len);
|
D | p2p_build.c | 291 const u8 *ssid, size_t ssid_len) in p2p_buf_add_group_id() argument 295 wpabuf_put_le16(buf, ETH_ALEN + ssid_len); in p2p_buf_add_group_id() 297 wpabuf_put_data(buf, ssid, ssid_len); in p2p_buf_add_group_id() 300 wpa_hexdump_ascii(MSG_DEBUG, "P2P: P2P Group ID SSID", ssid, ssid_len); in p2p_buf_add_group_id() 694 const u8 *ssid, size_t ssid_len) in p2p_buf_add_persistent_group_info() argument 698 wpabuf_put_le16(buf, ETH_ALEN + ssid_len); in p2p_buf_add_persistent_group_info() 700 wpabuf_put_data(buf, ssid, ssid_len); in p2p_buf_add_persistent_group_info()
|
/external/wpa_supplicant_8/src/common/ |
D | privsep_commands.h | 47 size_t ssid_len; member 63 size_t ssid_len; member
|
D | sae.h | 79 size_t ssid_len; member 96 size_t ssid_len; member 141 struct sae_pt * sae_derive_pt(int *groups, const u8 *ssid, size_t ssid_len,
|
D | sae.c | 832 static int sae_pwd_seed(size_t hash_len, const u8 *ssid, size_t ssid_len, in sae_pwd_seed() argument 844 wpa_hexdump_ascii(MSG_DEBUG, "SAE: SSID", ssid, ssid_len); in sae_pwd_seed() 854 if (hkdf_extract(hash_len, ssid, ssid_len, num_elem, addr, len, in sae_pwd_seed() 874 const u8 *ssid, size_t ssid_len, in sae_derive_pt_ecc() argument 894 if (sae_pwd_seed(hash_len, ssid, ssid_len, password, password_len, in sae_derive_pt_ecc() 974 const u8 *ssid, size_t ssid_len, in sae_derive_pt_ffc() argument 999 if (sae_pwd_seed(hash_len, ssid, ssid_len, password, password_len, in sae_derive_pt_ffc() 1051 sae_derive_pt_group(int group, const u8 *ssid, size_t ssid_len, in sae_derive_pt_group() argument 1059 if (ssid_len > 32) in sae_derive_pt_group() 1067 os_memcpy(pt->ssid, ssid, ssid_len); in sae_derive_pt_group() [all …]
|