Home
last modified time | relevance | path

Searched refs:ssid_len (Results 1 – 25 of 213) sorted by relevance

123456789

/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/
Dwps_attr_process.c99 size_t ssid_len) in wps_process_cred_ssid() argument
108 while (ssid_len > 0 && ssid[ssid_len - 1] == 0) in wps_process_cred_ssid()
109 ssid_len--; in wps_process_cred_ssid()
111 wpa_hexdump_ascii(MSG_DEBUG, "WPS: SSID", ssid, ssid_len); in wps_process_cred_ssid()
112 if (ssid_len <= sizeof(cred->ssid)) { in wps_process_cred_ssid()
113 os_memcpy(cred->ssid, ssid, ssid_len); in wps_process_cred_ssid()
114 cred->ssid_len = ssid_len; in wps_process_cred_ssid()
253 wps_process_cred_ssid(cred, attr->ssid, attr->ssid_len) || in wps_process_cred()
272 if (wps_process_cred_ssid(cred, attr->ssid, attr->ssid_len) || in wps_process_ap_settings()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/
Dwps_attr_process.c100 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()
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Dscan.c350 if (ssid->ssid && ssid->ssid_len) in wpa_supplicant_build_filter_ssids()
360 if (!ssid->ssid || !ssid->ssid_len) in wpa_supplicant_build_filter_ssids()
362 os_memcpy(ssids[*num_ssids].ssid, ssid->ssid, ssid->ssid_len); in wpa_supplicant_build_filter_ssids()
363 ssids[*num_ssids].ssid_len = ssid->ssid_len; in wpa_supplicant_build_filter_ssids()
693 size_t max_ssids, const u8 *ssid, size_t ssid_len) in wpa_add_scan_ssid() argument
698 if (params->ssids[j].ssid_len == ssid_len && in wpa_add_scan_ssid()
700 os_memcmp(params->ssids[j].ssid, ssid, ssid_len) == 0) in wpa_add_scan_ssid()
710 wpa_ssid_txt(ssid, ssid_len)); in wpa_add_scan_ssid()
713 params->ssids[params->num_ssids].ssid_len = ssid_len; in wpa_add_scan_ssid()
729 wpa_ssid_txt(ssid->ssid, ssid->ssid_len)); in wpa_add_owe_scan_ssid()
[all …]
Dbss.c245 wpa_ssid_txt(bss->ssid, bss->ssid_len), reason); in wpa_bss_remove()
261 const u8 *ssid, size_t ssid_len) in wpa_bss_get() argument
268 bss->ssid_len == ssid_len && in wpa_bss_get()
269 os_memcmp(bss->ssid, ssid, ssid_len) == 0) in wpa_bss_get()
335 if (ssid->ssid_len && in wpa_bss_is_wps_candidate()
336 (ssid->ssid_len != bss->ssid_len || in wpa_bss_is_wps_candidate()
337 os_memcmp(ssid->ssid, bss->ssid, ssid->ssid_len) != 0)) in wpa_bss_is_wps_candidate()
359 if (ssid->ssid == NULL || ssid->ssid_len == 0) in wpa_bss_known()
361 if (ssid->ssid_len == bss->ssid_len && in wpa_bss_known()
362 os_memcmp(ssid->ssid, bss->ssid, ssid->ssid_len) == 0) in wpa_bss_known()
[all …]
Dwps_supplicant.c205 bss = wpa_bss_get(wpa_s, cred->mac_addr, ssid->ssid, ssid->ssid_len); in wpas_wps_security_workaround()
208 ssid->ssid, ssid->ssid_len); in wpas_wps_security_workaround()
289 if (ssid->ssid_len == 0 || ssid->ssid_len != new_ssid->ssid_len) in wpas_wps_remove_dup_network()
294 ssid->ssid_len) != 0) in wpas_wps_remove_dup_network()
394 wpa_hexdump_ascii(MSG_DEBUG, "WPS: SSID", cred->ssid, cred->ssid_len); in wpa_supplicant_wps_cred()
477 ssid->ssid = os_malloc(cred->ssid_len); in wpa_supplicant_wps_cred()
479 os_memcpy(ssid->ssid, cred->ssid, cred->ssid_len); in wpa_supplicant_wps_cred()
480 ssid->ssid_len = cred->ssid_len; in wpa_supplicant_wps_cred()
825 uuid_str, wpa_ssid_txt(cred->ssid, cred->ssid_len), in wpa_supplicant_wps_event_er_ap_settings()
1050 ssid->ssid = os_memdup(bss->ssid, bss->ssid_len); in wpas_wps_add_network()
[all …]
Dp2p_supplicant.c129 const u8 *ssid, size_t ssid_len);
135 const u8 *ssid, size_t ssid_len);
140 const u8 *ssid, size_t ssid_len);
386 params->ssids[0].ssid_len = P2P_WILDCARD_SSID_LEN; in wpas_p2p_scan()
487 size_t ssid_len, int *go) in wpas_get_p2p_group() argument
494 s->ssid_len != ssid_len || in wpas_get_p2p_group()
495 os_memcmp(ssid, s->ssid, ssid_len) != 0) in wpas_get_p2p_group()
1029 const u8 *ssid, size_t ssid_len) in wpas_p2p_persistent_group() argument
1042 bss = wpa_bss_get(wpa_s, bssid, ssid, ssid_len); in wpas_p2p_persistent_group()
1051 bss = wpa_bss_get(wpa_s, iface_addr, ssid, ssid_len); in wpas_p2p_persistent_group()
[all …]
Dwpas_glue.c387 ((bss->ssid_len == ssid->ssid_len && in wpa_get_beacon_ie()
388 os_memcmp(bss->ssid, ssid->ssid, ssid->ssid_len) == 0) || in wpa_get_beacon_ie()
389 ssid->ssid_len == 0)) { in wpa_get_beacon_ie()
563 params.ssid_len = ssid->ssid_len; in wpa_supplicant_add_pmkid()
592 params.ssid_len = ssid->ssid_len; in wpa_supplicant_remove_pmkid()
675 params.ssid_len = bss->ssid_len; in wpa_supplicant_mark_authenticated()
886 buflen = 100 + os_strlen(txt) + ssid->ssid_len; in wpas_send_ctrl_req()
896 if (ssid->ssid && buflen > len + ssid->ssid_len) { in wpas_send_ctrl_req()
897 os_memcpy(buf + len, ssid->ssid, ssid->ssid_len); in wpas_send_ctrl_req()
898 len += ssid->ssid_len; in wpas_send_ctrl_req()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Dbss.c233 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 …]
Dscan.c385 if (ssid->ssid && ssid->ssid_len) in wpa_supplicant_build_filter_ssids()
395 if (!ssid->ssid || !ssid->ssid_len) in wpa_supplicant_build_filter_ssids()
397 os_memcpy(ssids[*num_ssids].ssid, ssid->ssid, ssid->ssid_len); in wpa_supplicant_build_filter_ssids()
398 ssids[*num_ssids].ssid_len = ssid->ssid_len; in wpa_supplicant_build_filter_ssids()
778 size_t max_ssids, const u8 *ssid, size_t ssid_len) in wpa_add_scan_ssid() argument
783 if (params->ssids[j].ssid_len == ssid_len && in wpa_add_scan_ssid()
785 os_memcmp(params->ssids[j].ssid, ssid, ssid_len) == 0) in wpa_add_scan_ssid()
795 wpa_ssid_txt(ssid, ssid_len)); in wpa_add_scan_ssid()
798 params->ssids[params->num_ssids].ssid_len = ssid_len; in wpa_add_scan_ssid()
814 wpa_ssid_txt(ssid->ssid, ssid->ssid_len)); in wpa_add_owe_scan_ssid()
[all …]
Dwps_supplicant.c206 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()
399 wpa_hexdump_ascii(MSG_DEBUG, "WPS: SSID", cred->ssid, cred->ssid_len); in wpa_supplicant_wps_cred()
482 ssid->ssid = os_malloc(cred->ssid_len); in wpa_supplicant_wps_cred()
484 os_memcpy(ssid->ssid, cred->ssid, cred->ssid_len); in wpa_supplicant_wps_cred()
485 ssid->ssid_len = cred->ssid_len; in wpa_supplicant_wps_cred()
833 uuid_str, wpa_ssid_txt(cred->ssid, cred->ssid_len), in wpa_supplicant_wps_event_er_ap_settings()
1058 ssid->ssid = os_memdup(bss->ssid, bss->ssid_len); in wpas_wps_add_network()
[all …]
Dp2p_supplicant.c129 const u8 *ssid, size_t ssid_len);
135 const u8 *ssid, size_t ssid_len);
140 const u8 *ssid, size_t ssid_len);
442 params->ssids[0].ssid_len = P2P_WILDCARD_SSID_LEN; in wpas_p2p_scan()
544 size_t ssid_len, int *go) in wpas_get_p2p_group() argument
551 s->ssid_len != ssid_len || in wpas_get_p2p_group()
552 os_memcmp(ssid, s->ssid, ssid_len) != 0) in wpas_get_p2p_group()
1087 const u8 *ssid, size_t ssid_len) in wpas_p2p_persistent_group() argument
1100 bss = wpa_bss_get(wpa_s, bssid, ssid, ssid_len); in wpas_p2p_persistent_group()
1109 bss = wpa_bss_get(wpa_s, iface_addr, ssid, ssid_len); in wpas_p2p_persistent_group()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dneighbor_db.c29 (ssid->ssid_len == nr->ssid.ssid_len && in hostapd_neighbor_get()
31 ssid->ssid_len) == 0))) in hostapd_neighbor_get()
56 nr->ssid.ssid_len); in hostapd_neighbor_show()
139 entry->short_ssid = crc32(ssid->ssid, ssid->ssid_len); in hostapd_neighbor_set()
289 ssid.ssid_len = hapd->conf->ssid.ssid_len; in hostapd_neighbor_set_own_report()
290 os_memcpy(ssid.ssid, hapd->conf->ssid.ssid, ssid.ssid_len); in hostapd_neighbor_set_own_report()
Dbeacon.c499 *pos++ = hapd->conf->ssid.ssid_len; in hostapd_gen_probe_resp()
500 os_memcpy(pos, hapd->conf->ssid.ssid, hapd->conf->ssid.ssid_len); in hostapd_gen_probe_resp()
501 pos += hapd->conf->ssid.ssid_len; in hostapd_gen_probe_resp()
650 const u8 *ssid, size_t ssid_len, in ssid_match() argument
661 if (ssid_len == 0) in ssid_match()
663 if (ssid_len == hapd->conf->ssid.ssid_len && in ssid_match()
664 os_memcmp(ssid, hapd->conf->ssid.ssid, ssid_len) == 0) in ssid_match()
675 if (pos[1] == hapd->conf->ssid.ssid_len && in ssid_match()
713 if (ssid_len == conf->ssid.ssid_len && in ssid_match()
714 os_memcmp(ssid, conf->ssid.ssid, ssid_len) == 0) in ssid_match()
[all …]
Dap_rrm.c226 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()
Drrm.c226 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()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
Dsha1-pbkdf2.c15 size_t ssid_len, int iterations, unsigned int count, in pbkdf2_sha1_f() argument
26 len[0] = ssid_len; in pbkdf2_sha1_f()
72 …((visibility ("default"))) 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()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
Dsha1-pbkdf2.c15 size_t ssid_len, int iterations, unsigned int count, in pbkdf2_sha1_f() argument
26 len[0] = ssid_len; in pbkdf2_sha1_f()
72 …((visibility ("default"))) 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()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dneighbor_db.c28 (ssid->ssid_len == nr->ssid.ssid_len && in hostapd_neighbor_get()
30 ssid->ssid_len) == 0))) in hostapd_neighbor_get()
229 ssid.ssid_len = hapd->conf->ssid.ssid_len; in hostapd_neighbor_set_own_report()
230 os_memcpy(ssid.ssid, hapd->conf->ssid.ssid, ssid.ssid_len); in hostapd_neighbor_set_own_report()
Dbeacon.c431 *pos++ = hapd->conf->ssid.ssid_len; in hostapd_gen_probe_resp()
432 os_memcpy(pos, hapd->conf->ssid.ssid, hapd->conf->ssid.ssid_len); in hostapd_gen_probe_resp()
433 pos += hapd->conf->ssid.ssid_len; in hostapd_gen_probe_resp()
580 const u8 *ssid, size_t ssid_len, in ssid_match() argument
587 if (ssid_len == 0) in ssid_match()
589 if (ssid_len == hapd->conf->ssid.ssid_len && in ssid_match()
590 os_memcmp(ssid, hapd->conf->ssid.ssid, ssid_len) == 0) in ssid_match()
603 if (pos[1] == hapd->conf->ssid.ssid_len && in ssid_match()
838 if (hapd->conf->ignore_broadcast_ssid && elems.ssid_len == 0 && in handle_probe_req()
847 elems.ssid_len == P2P_WILDCARD_SSID_LEN && in handle_probe_req()
[all …]
Dap_rrm.c226 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()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/
Ddriver_privsep.c114 scan.ssid_lens[i] = params->ssids[i].ssid_len; in wpa_driver_privsep_scan()
263 os_memcpy(data->ssid, params->ssid, params->ssid_len); in wpa_driver_privsep_authenticate()
264 data->ssid_len = params->ssid_len; in wpa_driver_privsep_authenticate()
313 os_memcpy(data->ssid, params->ssid, params->ssid_len); in wpa_driver_privsep_associate()
314 data->ssid_len = params->ssid_len; in wpa_driver_privsep_associate()
352 int res, ssid_len; in wpa_driver_privsep_get_ssid() local
359 os_memcpy(&ssid_len, reply, sizeof(int)); in wpa_driver_privsep_get_ssid()
360 if (ssid_len < 0 || ssid_len > SSID_MAX_LEN || in wpa_driver_privsep_get_ssid()
361 sizeof(int) + ssid_len > len) { in wpa_driver_privsep_get_ssid()
365 os_memcpy(ssid, &reply[sizeof(int)], ssid_len); in wpa_driver_privsep_get_ssid()
[all …]
Ddriver_nl80211_android.c99 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()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/
Ddriver_privsep.c114 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 …]
Ddriver_nl80211_android.c99 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()
Ddriver_wext.c165 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 …]

123456789