Home
last modified time | relevance | path

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

123456

/freebsd/contrib/wpa/src/wps/
H A 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()
/freebsd/contrib/wpa/wpa_supplicant/
H A Dscan.c413 if (ssid->ssid && ssid->ssid_len) in wpa_supplicant_build_filter_ssids()
423 if (!ssid->ssid || !ssid->ssid_len) in wpa_supplicant_build_filter_ssids()
425 os_memcpy(ssids[*num_ssids].ssid, ssid->ssid, ssid->ssid_len); in wpa_supplicant_build_filter_ssids()
426 ssids[*num_ssids].ssid_len = ssid->ssid_len; in wpa_supplicant_build_filter_ssids()
479 ssid->ssid_len); in wpa_supplicant_optimize_freqs()
918 size_t max_ssids, const u8 *ssid, size_t ssid_len) in wpa_add_scan_ssid() argument
923 if (params->ssids[j].ssid_len == ssid_len && in wpa_add_scan_ssid()
925 os_memcmp(params->ssids[j].ssid, ssid, ssid_len) == 0) in wpa_add_scan_ssid()
935 wpa_ssid_txt(ssid, ssid_len)); in wpa_add_scan_ssid()
938 params->ssids[params->num_ssids].ssid_len = ssid_len; in wpa_add_scan_ssid()
[all …]
H A 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
269 bss->ssid_len == ssid_len && in wpa_bss_get()
270 os_memcmp(bss->ssid, ssid, ssid_len) == 0) in wpa_bss_get()
338 if (ssid->ssid_len && in wpa_bss_is_wps_candidate()
339 (ssid->ssid_len != bss->ssid_len || in wpa_bss_is_wps_candidate()
340 os_memcmp(ssid->ssid, bss->ssid, ssid->ssid_len) != 0)) in wpa_bss_is_wps_candidate()
382 if (ssid->ssid == NULL || ssid->ssid_len == 0) in wpa_bss_known()
384 if (ssid->ssid_len == bss->ssid_len && in wpa_bss_known()
385 os_memcmp(ssid->ssid, bss->ssid, ssid->ssid_len) == 0) in wpa_bss_known()
[all …]
H A Dwps_supplicant.c217 bss = wpa_bss_get(wpa_s, cred->mac_addr, ssid->ssid, ssid->ssid_len); in wpas_wps_security_workaround()
220 ssid->ssid, ssid->ssid_len); in wpas_wps_security_workaround()
303 if (ssid->ssid_len == 0 || ssid->ssid_len != new_ssid->ssid_len) in wpas_wps_remove_dup_network()
308 ssid->ssid_len) != 0) in wpas_wps_remove_dup_network()
407 wpa_hexdump_ascii(MSG_DEBUG, "WPS: SSID", cred->ssid, cred->ssid_len); in wpa_supplicant_wps_cred()
490 ssid->ssid = os_malloc(cred->ssid_len); in wpa_supplicant_wps_cred()
492 os_memcpy(ssid->ssid, cred->ssid, cred->ssid_len); in wpa_supplicant_wps_cred()
493 ssid->ssid_len = cred->ssid_len; in wpa_supplicant_wps_cred()
841 uuid_str, wpa_ssid_txt(cred->ssid, cred->ssid_len), in wpa_supplicant_wps_event_er_ap_settings()
1068 ssid->ssid = os_memdup(bss->ssid, bss->ssid_len); in wpas_wps_add_network()
[all …]
H A Dp2p_supplicant.c126 const u8 *ssid, size_t ssid_len);
132 const u8 *ssid, size_t ssid_len);
137 const u8 *ssid, size_t ssid_len);
454 params->ssids[0].ssid_len = P2P_WILDCARD_SSID_LEN; in wpas_p2p_scan()
563 size_t ssid_len, int *go) in wpas_get_p2p_group() argument
570 s->ssid_len != ssid_len || in wpas_get_p2p_group()
571 os_memcmp(ssid, s->ssid, ssid_len) != 0) in wpas_get_p2p_group()
1111 const u8 *ssid, size_t ssid_len) in wpas_p2p_persistent_group() argument
1124 bss = wpa_bss_get(wpa_s, bssid, ssid, ssid_len); in wpas_p2p_persistent_group()
1133 bss = wpa_bss_get(wpa_s, iface_addr, ssid, ssid_len); in wpas_p2p_persistent_group()
[all …]
H A Dinterworking.c901 if (ssid->ssid_len != bss->ssid_len || in already_connected()
902 os_memcmp(ssid->ssid, bss->ssid, bss->ssid_len) != 0) in already_connected()
923 if (ssid->ssid_len != bss->ssid_len || in remove_duplicate_network()
924 os_memcmp(ssid->ssid, bss->ssid, bss->ssid_len) != 0) in remove_duplicate_network()
1012 ssid->ssid = os_zalloc(bss->ssid_len + 1); in interworking_connect_3gpp()
1015 os_memcpy(ssid->ssid, bss->ssid, bss->ssid_len); in interworking_connect_3gpp()
1016 ssid->ssid_len = bss->ssid_len; in interworking_connect_3gpp()
1242 if (bss->ssid_len == e->ssid_len && in cred_excluded_ssid()
1243 os_memcmp(bss->ssid, e->ssid, e->ssid_len) == 0) in cred_excluded_ssid()
1649 ssid->ssid = os_zalloc(bss->ssid_len + 1); in interworking_connect_roaming_consortium()
[all …]
H A Drrm.c177 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()
949 if (data->ssid_len && in wpas_add_beacon_rep()
950 (data->ssid_len != bss->ssid_len || in wpas_add_beacon_rep()
951 os_memcmp(data->ssid, bss->ssid, bss->ssid_len) != 0)) in wpas_add_beacon_rep()
1073 data->ssid_len = slen; in wpas_rm_handle_beacon_req_subelem()
1074 os_memcpy(data->ssid, subelem, data->ssid_len); in wpas_rm_handle_beacon_req_subelem()
1281 params->ssids[params->num_ssids++].ssid_len = data->ssid_len; in wpas_rm_handle_beacon_req()
H A Dwpas_glue.c408 ((bss->ssid_len == ssid->ssid_len && in wpa_get_beacon_ie()
409 os_memcmp(bss->ssid, ssid->ssid, ssid->ssid_len) == 0) || in wpa_get_beacon_ie()
410 ssid->ssid_len == 0)) { in wpa_get_beacon_ie()
626 params.ssid_len = ssid->ssid_len; in wpa_supplicant_add_pmkid()
657 params.ssid_len = ssid->ssid_len; in wpa_supplicant_remove_pmkid()
740 params.ssid_len = bss->ssid_len; in wpa_supplicant_mark_authenticated()
960 wpa_ssid_txt(ssid->ssid, ssid->ssid_len)); in wpas_send_ctrl_req()
1527 conf.ssid_len = ssid->ssid_len; in wpa_supplicant_rsn_supp_set_config()
/freebsd/contrib/wpa/src/crypto/
H A 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()
74 int pbkdf2_sha1(const char *passphrase, const u8 *ssid, size_t ssid_len, in pbkdf2_sha1() argument
84 if (pbkdf2_sha1_f(passphrase, ssid, ssid_len, iterations, in pbkdf2_sha1()
/freebsd/contrib/wpa/src/ap/
H A 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()
142 entry->short_ssid = ieee80211_crc32(ssid->ssid, ssid->ssid_len); in hostapd_neighbor_set()
301 ssid.ssid_len = hapd->conf->ssid.ssid_len; in hostapd_neighbor_set_own_report()
302 os_memcpy(ssid.ssid, hapd->conf->ssid.ssid, ssid.ssid_len); in hostapd_neighbor_set_own_report()
H A Dwps_hostapd.c361 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()
1122 wps->ssid_len = hapd->conf->ssid.ssid_len; in hostapd_init_wps()
[all …]
H A 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()
H A Dbeacon.c705 *pos++ = hapd->conf->ssid.ssid_len; in hostapd_probe_resp_fill_elems()
707 hapd->conf->ssid.ssid_len); in hostapd_probe_resp_fill_elems()
708 pos += hapd->conf->ssid.ssid_len; in hostapd_probe_resp_fill_elems()
1067 const u8 *ssid, size_t ssid_len, in ssid_match() argument
1078 if (ssid_len == 0) in ssid_match()
1080 if (ssid_len == hapd->conf->ssid.ssid_len && in ssid_match()
1081 os_memcmp(ssid, hapd->conf->ssid.ssid, ssid_len) == 0) in ssid_match()
1092 if (pos[1] == hapd->conf->ssid.ssid_len && in ssid_match()
1130 if (ssid_len == conf->ssid.ssid_len && in ssid_match()
1131 os_memcmp(ssid, conf->ssid.ssid, ssid_len) == 0) in ssid_match()
[all …]
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dwow.c176 u8 ssid_len; in ath10k_wmi_pno_check() local
191 ssid_len = nd_config->match_sets[i].ssid.ssid_len; in ath10k_wmi_pno_check()
193 if (ssid_len == 0 || ssid_len > 32) in ath10k_wmi_pno_check()
196 pno->a_networks[i].ssid.ssid_len = __cpu_to_le32(ssid_len); in ath10k_wmi_pno_check()
200 nd_config->match_sets[i].ssid.ssid_len); in ath10k_wmi_pno_check()
224 if (__le32_to_cpu(pno->a_networks[j].ssid.ssid_len) == in ath10k_wmi_pno_check()
225 nd_config->ssids[i].ssid_len && in ath10k_wmi_pno_check()
228 __le32_to_cpu(pno->a_networks[j].ssid.ssid_len)) == 0)) { in ath10k_wmi_pno_check()
/freebsd/contrib/wpa/src/drivers/
H A 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()
H A 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 …]
H A 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()
1096 size_t ssid_len = params->ssids[0].ssid_len; in wpa_driver_wext_scan() local
1098 if (ssid_len > IW_ESSID_MAX_SIZE) { in wpa_driver_wext_scan()
1100 __FUNCTION__, (unsigned long) ssid_len); in wpa_driver_wext_scan()
[all …]
/freebsd/sys/contrib/dev/athk/ath11k/
H A Dwow.c247 u8 ssid_len; in ath11k_wmi_pno_check_and_convert() local
262 ssid_len = nd_config->match_sets[i].ssid.ssid_len; in ath11k_wmi_pno_check_and_convert()
264 if (ssid_len == 0 || ssid_len > 32) in ath11k_wmi_pno_check_and_convert()
267 pno->a_networks[i].ssid.ssid_len = ssid_len; in ath11k_wmi_pno_check_and_convert()
271 nd_config->match_sets[i].ssid.ssid_len); in ath11k_wmi_pno_check_and_convert()
295 if (pno->a_networks[j].ssid.ssid_len == in ath11k_wmi_pno_check_and_convert()
296 nd_config->ssids[i].ssid_len && in ath11k_wmi_pno_check_and_convert()
299 pno->a_networks[j].ssid.ssid_len) == 0)) { in ath11k_wmi_pno_check_and_convert()
/freebsd/tools/tools/net80211/mlme_assoc/
H A Dmlme_assoc.c85 try_mlme_assoc(int sd, const char *ifnam, uint8_t *ssid, uint8_t ssid_len, uint8_t *bssid) in try_mlme_assoc() argument
94 memcpy(mlme.im_ssid, ssid, ssid_len); in try_mlme_assoc()
95 mlme.im_ssid_len = ssid_len; in try_mlme_assoc()
/freebsd/contrib/wpa/src/p2p/
H A Dp2p.h123 size_t ssid_len; member
948 size_t ssid_len, int *go, u8 *group_bssid,
971 const u8 *ssid, size_t ssid_len,
1047 size_t ssid_len, u8 *go_dev_addr,
1068 u8 *ssid, size_t *ssid_len, int *group_iface,
1079 const u8 *ssid, size_t ssid_len);
1466 const u8 *bssid, const u8 *ssid, size_t ssid_len,
1734 size_t ssid_len; member
2338 const u8 *ssid, size_t ssid_len);
2342 const u8 *ssid, size_t ssid_len);
H A Dp2p_build.c297 const u8 *ssid, size_t ssid_len) in p2p_buf_add_group_id() argument
301 wpabuf_put_le16(buf, ETH_ALEN + ssid_len); in p2p_buf_add_group_id()
303 wpabuf_put_data(buf, ssid, ssid_len); in p2p_buf_add_group_id()
306 wpa_hexdump_ascii(MSG_DEBUG, "P2P: P2P Group ID SSID", ssid, ssid_len); in p2p_buf_add_group_id()
700 const u8 *ssid, size_t ssid_len) in p2p_buf_add_persistent_group_info() argument
704 wpabuf_put_le16(buf, ETH_ALEN + ssid_len); in p2p_buf_add_persistent_group_info()
706 wpabuf_put_data(buf, ssid, ssid_len); in p2p_buf_add_persistent_group_info()
/freebsd/contrib/wpa/src/common/
H A Dprivsep_commands.h47 size_t ssid_len; member
63 size_t ssid_len; member
H A Dsae.h80 size_t ssid_len; member
99 size_t ssid_len; member
149 struct sae_pt * sae_derive_pt(int *groups, const u8 *ssid, size_t ssid_len,
H A Dsae.c824 static int sae_pwd_seed(size_t hash_len, const u8 *ssid, size_t ssid_len, in sae_pwd_seed() argument
836 wpa_hexdump_ascii(MSG_DEBUG, "SAE: SSID", ssid, ssid_len); in sae_pwd_seed()
846 if (hkdf_extract(hash_len, ssid, ssid_len, num_elem, addr, len, in sae_pwd_seed()
866 const u8 *ssid, size_t ssid_len, in sae_derive_pt_ecc() argument
886 if (sae_pwd_seed(hash_len, ssid, ssid_len, password, password_len, in sae_derive_pt_ecc()
966 const u8 *ssid, size_t ssid_len, in sae_derive_pt_ffc() argument
991 if (sae_pwd_seed(hash_len, ssid, ssid_len, password, password_len, in sae_derive_pt_ffc()
1043 sae_derive_pt_group(int group, const u8 *ssid, size_t ssid_len, in sae_derive_pt_group() argument
1051 if (ssid_len > 32) in sae_derive_pt_group()
1059 os_memcpy(pt->ssid, ssid, ssid_len); in sae_derive_pt_group()
[all …]
/freebsd/sys/contrib/dev/iwlwifi/mvm/
H A Dscan.c457 static int iwl_ssid_exist(u8 *ssid, u8 ssid_len, struct iwl_ssid_ie *ssid_list) in iwl_ssid_exist()
464 if (ssid_list[i].len == ssid_len && in iwl_ssid_exist()
466 !memcmp(ssid_list->ssid, ssid, ssid_len))
468 !memcmp(ssid_list[i].ssid, ssid, ssid_len))
495 if (!params->match_sets[j].ssid.ssid_len) in iwl_scan_build_ssids()
498 ssids[i].len = params->match_sets[j].ssid.ssid_len; in iwl_scan_build_ssids()
508 params->ssids[j].ssid_len, in iwl_scan_build_ssids()
512 ssids[i].len = params->ssids[j].ssid_len; in iwl_scan_build_ssids()
583 if (!req->n_match_sets || !req->match_sets[0].ssid.ssid_len) in iwl_mvm_config_sched_scan_profiles()
612 if (req->n_match_sets && req->match_sets[0].ssid.ssid_len) { in iwl_mvm_scan_pass_all()
448 iwl_ssid_exist(u8 * ssid,u8 ssid_len,struct iwl_ssid_ie * ssid_list) iwl_ssid_exist() argument
[all...]

123456