/external/wpa_supplicant_6/wpa_supplicant/src/wps/ |
D | wps_attr_process.c | 105 size_t ssid_len) in wps_process_cred_ssid() argument 114 while (ssid_len > 0 && ssid[ssid_len - 1] == 0) in wps_process_cred_ssid() 115 ssid_len--; in wps_process_cred_ssid() 117 wpa_hexdump_ascii(MSG_DEBUG, "WPS: SSID", ssid, ssid_len); in wps_process_cred_ssid() 118 if (ssid_len <= sizeof(cred->ssid)) { in wps_process_cred_ssid() 119 os_memcpy(cred->ssid, ssid, ssid_len); in wps_process_cred_ssid() 120 cred->ssid_len = ssid_len; in wps_process_cred_ssid() 293 wps_process_cred_ssid(cred, attr->ssid, attr->ssid_len) || in wps_process_cred() 320 if (wps_process_cred_ssid(cred, attr->ssid, attr->ssid_len) || in wps_process_ap_settings()
|
/external/wpa_supplicant_8/src/wps/ |
D | wps_attr_process.c | 99 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() 294 wps_process_cred_ssid(cred, attr->ssid, attr->ssid_len) || in wps_process_cred() 319 if (wps_process_cred_ssid(cred, attr->ssid, attr->ssid_len) || in wps_process_ap_settings()
|
/external/wpa_supplicant_8/src/ap/ |
D | beacon.c | 230 *pos++ = hapd->conf->ssid.ssid_len; in hostapd_gen_probe_resp() 231 os_memcpy(pos, hapd->conf->ssid.ssid, hapd->conf->ssid.ssid_len); in hostapd_gen_probe_resp() 232 pos += hapd->conf->ssid.ssid_len; in hostapd_gen_probe_resp() 360 if (hapd->conf->ignore_broadcast_ssid && elems.ssid_len == 0) { in handle_probe_req() 370 elems.ssid_len == P2P_WILDCARD_SSID_LEN && in handle_probe_req() 374 elems.ssid_len = 0; in handle_probe_req() 378 if (elems.ssid_len == 0 || in handle_probe_req() 379 (elems.ssid_len == hapd->conf->ssid.ssid_len && in handle_probe_req() 380 os_memcmp(elems.ssid, hapd->conf->ssid.ssid, elems.ssid_len) == in handle_probe_req() 388 elems.ssid_len); in handle_probe_req() [all …]
|
D | hostapd.c | 83 hapd->conf->ssid.ssid_len)) { in hostapd_reload_bss() 483 int ssid_len, set_ssid; in hostapd_setup_bss() local 534 ssid_len = hostapd_get_ssid(hapd, ssid, sizeof(ssid)); in hostapd_setup_bss() 535 if (ssid_len < 0) { in hostapd_setup_bss() 545 set_ssid = (conf->ssid.ssid_len != (size_t) ssid_len || in hostapd_setup_bss() 546 os_memcmp(conf->ssid.ssid, ssid, ssid_len) != 0); in hostapd_setup_bss() 553 conf->ssid.ssid_len = ssid_len; in hostapd_setup_bss() 554 os_memcpy(conf->ssid.ssid, ssid, conf->ssid.ssid_len); in hostapd_setup_bss() 555 conf->ssid.ssid[conf->ssid.ssid_len] = '\0'; in hostapd_setup_bss() 573 conf->ssid.ssid_len)) { in hostapd_setup_bss()
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | bss.c | 45 wpa_ssid_txt(bss->ssid, bss->ssid_len)); in wpa_bss_remove() 61 const u8 *ssid, size_t ssid_len) in wpa_bss_get() argument 66 bss->ssid_len == ssid_len && in wpa_bss_get() 67 os_memcmp(bss->ssid, ssid, ssid_len) == 0) in wpa_bss_get() 104 if (ssid->ssid == NULL || ssid->ssid_len == 0) in wpa_bss_known() 106 if (ssid->ssid_len == bss->ssid_len && in wpa_bss_known() 107 os_memcmp(ssid->ssid, bss->ssid, ssid->ssid_len) == 0) in wpa_bss_known() 149 const u8 *ssid, size_t ssid_len, in wpa_bss_add() argument 160 os_memcpy(bss->ssid, ssid, ssid_len); in wpa_bss_add() 161 bss->ssid_len = ssid_len; in wpa_bss_add() [all …]
|
D | scan.c | 285 if (ssid->ssid && ssid->ssid_len) in wpa_supplicant_build_filter_ssids() 295 if (!ssid->ssid || !ssid->ssid_len) in wpa_supplicant_build_filter_ssids() 297 os_memcpy(ssids[*num_ssids].ssid, ssid->ssid, ssid->ssid_len); in wpa_supplicant_build_filter_ssids() 298 ssids[*num_ssids].ssid_len = ssid->ssid_len; in wpa_supplicant_build_filter_ssids() 551 ssid->ssid, ssid->ssid_len); in wpa_supplicant_scan() 554 params.ssids[params.num_ssids].ssid_len = in wpa_supplicant_scan() 555 ssid->ssid_len; in wpa_supplicant_scan() 591 params.ssids[0].ssid_len = 0; in wpa_supplicant_scan() 600 wpa_ssid_txt(ssid->ssid, ssid->ssid_len)); in wpa_supplicant_scan() 761 } else if (!ssid->disabled && ssid->ssid_len) in wpa_supplicant_req_sched_scan() [all …]
|
D | wps_supplicant.c | 129 bss = wpa_bss_get(wpa_s, cred->mac_addr, ssid->ssid, ssid->ssid_len); in wpas_wps_security_workaround() 220 wpa_hexdump_ascii(MSG_DEBUG, "WPS: SSID", cred->ssid, cred->ssid_len); in wpa_supplicant_wps_cred() 278 ssid->ssid = os_malloc(cred->ssid_len); in wpa_supplicant_wps_cred() 280 os_memcpy(ssid->ssid, cred->ssid, cred->ssid_len); in wpa_supplicant_wps_cred() 281 ssid->ssid_len = cred->ssid_len; in wpa_supplicant_wps_cred() 585 uuid_str, wpa_ssid_txt(cred->ssid, cred->ssid_len), in wpa_supplicant_wps_event_er_ap_settings() 765 ssid->ssid = os_malloc(bss->ssid_len); in wpas_wps_add_network() 768 os_memcpy(ssid->ssid, bss->ssid, bss->ssid_len); in wpas_wps_add_network() 769 ssid->ssid_len = bss->ssid_len; in wpas_wps_add_network() 772 ssid->ssid, ssid->ssid_len); in wpas_wps_add_network() [all …]
|
D | wpas_glue.c | 325 ((bss->ssid_len == ssid->ssid_len && in wpa_get_beacon_ie() 326 os_memcmp(bss->ssid, ssid->ssid, ssid->ssid_len) == 0) || in wpa_get_beacon_ie() 327 ssid->ssid_len == 0)) { in wpa_get_beacon_ie() 510 params.ssid_len = bss->ssid_len; in wpa_supplicant_mark_authenticated() 673 buflen = 100 + os_strlen(txt) + ssid->ssid_len; in wpa_supplicant_eap_param_needed() 684 if (ssid->ssid && buflen > len + ssid->ssid_len) { in wpa_supplicant_eap_param_needed() 685 os_memcpy(buf + len, ssid->ssid, ssid->ssid_len); in wpa_supplicant_eap_param_needed() 686 len += ssid->ssid_len; in wpa_supplicant_eap_param_needed() 848 conf.ssid_len = ssid->ssid_len; in wpa_supplicant_rsn_supp_set_config()
|
D | p2p_supplicant.c | 133 params.ssids[0].ssid_len = P2P_WILDCARD_SSID_LEN; 213 size_t ssid_len, int *go) argument 220 s->ssid_len != ssid_len || 221 os_memcmp(ssid, s->ssid, ssid_len) != 0) 350 const u8 *ssid, size_t ssid_len) argument 363 bss = wpa_bss_get(wpa_s, bssid, ssid, ssid_len); 368 bss = wpa_bss_get(wpa_s, iface_addr, ssid, ssid_len); 422 s->ssid_len == ssid->ssid_len && 423 os_memcmp(ssid->ssid, s->ssid, ssid->ssid_len) == 0) 476 if (s->ssid == NULL || s->ssid_len < ssid->ssid_len) { [all …]
|
D | sme.c | 67 params.ssid_len = bss->ssid_len; in sme_authenticate() 70 if (wpa_s->sme.ssid_len != params.ssid_len || in sme_authenticate() 71 os_memcmp(wpa_s->sme.ssid, params.ssid, params.ssid_len) != 0) in sme_authenticate() 75 os_memcpy(wpa_s->sme.ssid, params.ssid, params.ssid_len); in sme_authenticate() 76 wpa_s->sme.ssid_len = params.ssid_len; in sme_authenticate() 247 wpa_ssid_txt(params.ssid, params.ssid_len), params.freq); in sme_authenticate() 372 params.ssid_len = wpa_s->sme.ssid_len; in sme_associate() 399 params.ssid ? wpa_ssid_txt(params.ssid, params.ssid_len) : "", in sme_associate()
|
/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 char *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_6/wpa_supplicant/ |
D | events.c | 394 u8 wpa_ie_len, rsn_ie_len, ssid_len; in wpa_supplicant_select_bss_wpa() local 399 ssid_len = ie ? ie[1] : 0; in wpa_supplicant_select_bss_wpa() 410 wpa_ssid_txt(ssid_, ssid_len), in wpa_supplicant_select_bss_wpa() 419 if (ssid_len == 0) { in wpa_supplicant_select_bss_wpa() 438 if (ssid->ssid_len == 0 && in wpa_supplicant_select_bss_wpa() 444 (ssid_len != ssid->ssid_len || in wpa_supplicant_select_bss_wpa() 445 os_memcmp(ssid_, ssid->ssid, ssid_len) != 0)) { in wpa_supplicant_select_bss_wpa() 465 wpa_ssid_txt(ssid_, ssid_len)); in wpa_supplicant_select_bss_wpa() 489 u8 wpa_ie_len, rsn_ie_len, ssid_len; in wpa_supplicant_select_bss_non_wpa() local 494 ssid_len = ie ? ie[1] : 0; in wpa_supplicant_select_bss_non_wpa() [all …]
|
D | wpas_glue.c | 316 ((ie && ie[1] == ssid->ssid_len && in wpa_get_beacon_ie() 317 os_memcmp(ie + 2, ssid->ssid, ssid->ssid_len) == 0) || in wpa_get_beacon_ie() 318 ssid->ssid_len == 0)) { in wpa_get_beacon_ie() 511 buflen = 100 + os_strlen(txt) + ssid->ssid_len; in wpa_supplicant_eap_param_needed() 522 if (ssid->ssid && buflen > len + ssid->ssid_len) { in wpa_supplicant_eap_param_needed() 523 os_memcpy(buf + len, ssid->ssid, ssid->ssid_len); in wpa_supplicant_eap_param_needed() 524 len += ssid->ssid_len; in wpa_supplicant_eap_param_needed() 638 conf.ssid_len = ssid->ssid_len; in wpa_supplicant_rsn_supp_set_config()
|
D | mlme.c | 61 size_t ssid_len; member 90 const u8 *ssid, size_t ssid_len); 341 wpa_s->mlme.ssid_len; in ieee80211_send_assoc() 394 blen += 2 + wpa_s->mlme.ssid_len; in ieee80211_send_assoc() 396 *pos++ = wpa_s->mlme.ssid_len; in ieee80211_send_assoc() 397 os_memcpy(pos, wpa_s->mlme.ssid, wpa_s->mlme.ssid_len); in ieee80211_send_assoc() 624 wpa_s->mlme.ssid_len); in ieee80211_associated() 646 const u8 *ssid, size_t ssid_len) in ieee80211_send_probe_req() argument 676 len += 2 + ssid_len; in ieee80211_send_probe_req() 678 *pos++ = ssid_len; in ieee80211_send_probe_req() [all …]
|
/external/wpa_supplicant_6/wpa_supplicant/src/utils/ |
D | common.c | 313 const char * wpa_ssid_txt(const u8 *ssid, size_t ssid_len) in wpa_ssid_txt() argument 318 if (ssid_len > 32) in wpa_ssid_txt() 319 ssid_len = 32; in wpa_ssid_txt() 320 os_memcpy(ssid_txt, ssid, ssid_len); in wpa_ssid_txt() 321 ssid_txt[ssid_len] = '\0'; in wpa_ssid_txt()
|
/external/wpa_supplicant_8/src/drivers/ |
D | driver_privsep.c | 104 size_t ssid_len = params->ssids[0].ssid_len; in wpa_driver_privsep_scan() local 106 return wpa_priv_cmd(drv, PRIVSEP_CMD_SCAN, ssid, ssid_len, in wpa_driver_privsep_scan() 242 os_memcpy(data->ssid, params->ssid, params->ssid_len); in wpa_driver_privsep_associate() 243 data->ssid_len = params->ssid_len; in wpa_driver_privsep_associate() 279 int res, ssid_len; in wpa_driver_privsep_get_ssid() local 286 os_memcpy(&ssid_len, reply, sizeof(int)); in wpa_driver_privsep_get_ssid() 287 if (ssid_len < 0 || ssid_len > 32 || sizeof(int) + ssid_len > len) { in wpa_driver_privsep_get_ssid() 291 os_memcpy(ssid, &reply[sizeof(int)], ssid_len); in wpa_driver_privsep_get_ssid() 292 return ssid_len; in wpa_driver_privsep_get_ssid()
|
D | driver_wext.c | 173 int wpa_driver_wext_set_ssid(void *priv, const u8 *ssid, size_t ssid_len) in wpa_driver_wext_set_ssid() argument 180 if (ssid_len > 32) in wpa_driver_wext_set_ssid() 186 iwr.u.essid.flags = (ssid_len != 0); in wpa_driver_wext_set_ssid() 188 os_memcpy(buf, ssid, ssid_len); in wpa_driver_wext_set_ssid() 199 if (ssid_len) in wpa_driver_wext_set_ssid() 200 ssid_len++; in wpa_driver_wext_set_ssid() 202 iwr.u.essid.length = ssid_len; in wpa_driver_wext_set_ssid() 1008 size_t ssid_len = params->ssids[0].ssid_len; in wpa_driver_wext_scan() local 1017 if (ssid_len > IW_ESSID_MAX_SIZE) { in wpa_driver_wext_scan() 1019 __FUNCTION__, (unsigned long) ssid_len); in wpa_driver_wext_scan() [all …]
|
/external/wpa_supplicant_6/wpa_supplicant/src/drivers/ |
D | driver_wext.c | 227 int wpa_driver_wext_set_ssid(void *priv, const u8 *ssid, size_t ssid_len) in wpa_driver_wext_set_ssid() argument 234 if (ssid_len > 32) in wpa_driver_wext_set_ssid() 240 iwr.u.essid.flags = (ssid_len != 0); in wpa_driver_wext_set_ssid() 242 os_memcpy(buf, ssid, ssid_len); in wpa_driver_wext_set_ssid() 253 if (ssid_len) in wpa_driver_wext_set_ssid() 254 ssid_len++; in wpa_driver_wext_set_ssid() 256 iwr.u.essid.length = ssid_len; in wpa_driver_wext_set_ssid() 1133 int wpa_driver_wext_scan(void *priv, const u8 *ssid, size_t ssid_len) argument 1146 if (ssid_len > IW_ESSID_MAX_SIZE) { 1148 __FUNCTION__, (unsigned long) ssid_len); [all …]
|
D | driver_hostap.c | 341 if (wpa_driver_wext_set_ssid(drv->wext, params->ssid, params->ssid_len) in wpa_driver_hostap_associate() 368 static int wpa_driver_hostap_scan(void *priv, const u8 *ssid, size_t ssid_len) in wpa_driver_hostap_scan() argument 379 return wpa_driver_wext_scan(drv->wext, ssid, ssid_len); in wpa_driver_hostap_scan() 382 if (ssid_len > 32) in wpa_driver_hostap_scan() 383 ssid_len = 32; in wpa_driver_hostap_scan() 387 param.u.scan_req.ssid_len = ssid_len; in wpa_driver_hostap_scan() 388 os_memcpy(param.u.scan_req.ssid, ssid, ssid_len); in wpa_driver_hostap_scan()
|
D | driver_iphone.m | 111 static int wpa_driver_iphone_scan(void *priv, const u8 *ssid, size_t ssid_len) 160 res->ssid_len = CFDataGetLength(data); 161 if (res->ssid_len > 32) 162 res->ssid_len = 32; 164 res->ssid_len); 259 size_t ssid_len; 284 ssid_len = CFDataGetLength(data); 285 if (ssid_len != params->ssid_len || 286 os_memcmp(CFDataGetBytePtr(data), params->ssid, ssid_len)
|
D | driver_privsep.c | 114 static int wpa_driver_privsep_scan(void *priv, const u8 *ssid, size_t ssid_len) in wpa_driver_privsep_scan() argument 118 return wpa_priv_cmd(drv, PRIVSEP_CMD_SCAN, ssid, ssid_len, in wpa_driver_privsep_scan() 253 os_memcpy(data->ssid, params->ssid, params->ssid_len); in wpa_driver_privsep_associate() 254 data->ssid_len = params->ssid_len; in wpa_driver_privsep_associate() 290 int res, ssid_len; in wpa_driver_privsep_get_ssid() local 297 os_memcpy(&ssid_len, reply, sizeof(int)); in wpa_driver_privsep_get_ssid() 298 if (ssid_len < 0 || ssid_len > 32 || sizeof(int) + ssid_len > len) { in wpa_driver_privsep_get_ssid() 302 os_memcpy(ssid, &reply[sizeof(int)], ssid_len); in wpa_driver_privsep_get_ssid() 303 return ssid_len; in wpa_driver_privsep_get_ssid()
|
D | driver_broadcom.c | 401 size_t ssid_len) in wpa_driver_broadcom_scan() argument 406 if (ssid && ssid_len > 0 && ssid_len <= sizeof(wst.SSID)) { in wpa_driver_broadcom_scan() 407 wst.SSID_len = ssid_len; in wpa_driver_broadcom_scan() 408 os_memcpy(wst.SSID, ssid, ssid_len); in wpa_driver_broadcom_scan() 468 results[ap_num].ssid_len = wbi->SSID_len; in wpa_driver_broadcom_get_scan_results() 534 s.SSID_len = params->ssid_len; in wpa_driver_broadcom_associate() 535 os_memcpy(s.SSID, params->ssid, params->ssid_len); in wpa_driver_broadcom_associate()
|
D | driver_ralink.c | 129 int ssid_len; in wpa_driver_ralink_get_ssid() local 161 ssid_len = ret; in wpa_driver_ralink_get_ssid() 163 os_memcpy(ssid_str, ssid, ssid_len); in wpa_driver_ralink_get_ssid() 176 if (!entry->disabled && ssid_len == entry->ssid_len && in wpa_driver_ralink_get_ssid() 177 os_memcmp(ssid_str, entry->ssid, ssid_len) == 0 && in wpa_driver_ralink_get_ssid() 224 const u8 *ssid, size_t ssid_len) in wpa_driver_ralink_set_ssid() argument 236 buf->SsidLength = ssid_len; in wpa_driver_ralink_set_ssid() 237 os_memcpy(buf->Ssid, ssid, ssid_len); in wpa_driver_ralink_set_ssid() 697 INT ssid_len; in wpa_driver_ralink_event_wireless() member 719 os_memcpy(wpa_s->scan_results[0].ssid, pApInfo->ssid, pApInfo->ssid_len); in wpa_driver_ralink_event_wireless() [all …]
|
D | driver_osx.m | 114 static int wpa_driver_osx_scan(void *priv, const u8 *ssid, size_t ssid_len) 127 ssid, ssid_len, 182 if (info->ssid_len > 32) { 184 "scan results", (int) info->ssid_len); 187 os_memcpy(res->ssid, info->ssid, info->ssid_len); 188 res->ssid_len = info->ssid_len; 233 params->ssid_len);
|
/external/wpa_supplicant_8/src/utils/ |
D | common.c | 361 const char * wpa_ssid_txt(const u8 *ssid, size_t ssid_len) in wpa_ssid_txt() argument 366 if (ssid_len > 32) in wpa_ssid_txt() 367 ssid_len = 32; in wpa_ssid_txt() 368 os_memcpy(ssid_txt, ssid, ssid_len); in wpa_ssid_txt() 369 ssid_txt[ssid_len] = '\0'; in wpa_ssid_txt()
|