/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 | 233 *pos++ = hapd->conf->ssid.ssid_len; in hostapd_gen_probe_resp() 234 os_memcpy(pos, hapd->conf->ssid.ssid, hapd->conf->ssid.ssid_len); in hostapd_gen_probe_resp() 235 pos += hapd->conf->ssid.ssid_len; in hostapd_gen_probe_resp() 379 if (hapd->conf->ignore_broadcast_ssid && elems.ssid_len == 0) { in handle_probe_req() 389 elems.ssid_len == P2P_WILDCARD_SSID_LEN && in handle_probe_req() 393 elems.ssid_len = 0; in handle_probe_req() 397 if (elems.ssid_len == 0 || in handle_probe_req() 398 (elems.ssid_len == hapd->conf->ssid.ssid_len && in handle_probe_req() 399 os_memcmp(elems.ssid, hapd->conf->ssid.ssid, elems.ssid_len) == in handle_probe_req() 407 elems.ssid_len); in handle_probe_req() [all …]
|
/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 | bss.c | 117 wpa_ssid_txt(bss->ssid, bss->ssid_len), reason); in wpa_bss_remove() 125 const u8 *ssid, size_t ssid_len) in wpa_bss_get() argument 132 bss->ssid_len == ssid_len && in wpa_bss_get() 133 os_memcmp(bss->ssid, ssid, ssid_len) == 0) in wpa_bss_get() 170 if (ssid->ssid == NULL || ssid->ssid_len == 0) in wpa_bss_known() 172 if (ssid->ssid_len == bss->ssid_len && in wpa_bss_known() 173 os_memcmp(ssid->ssid, bss->ssid, ssid->ssid_len) == 0) in wpa_bss_known() 230 const u8 *ssid, size_t ssid_len, in wpa_bss_add() argument 241 os_memcpy(bss->ssid, ssid, ssid_len); in wpa_bss_add() 242 bss->ssid_len = ssid_len; in wpa_bss_add() [all …]
|
D | scan.c | 295 if (ssid->ssid && ssid->ssid_len) in wpa_supplicant_build_filter_ssids() 305 if (!ssid->ssid || !ssid->ssid_len) in wpa_supplicant_build_filter_ssids() 307 os_memcpy(ssids[*num_ssids].ssid, ssid->ssid, ssid->ssid_len); in wpa_supplicant_build_filter_ssids() 308 ssids[*num_ssids].ssid_len = ssid->ssid_len; in wpa_supplicant_build_filter_ssids() 556 params.ssids[0].ssid_len = wpa_s->go_params->ssid_len; in wpa_supplicant_scan() 596 ssid->ssid, ssid->ssid_len); in wpa_supplicant_scan() 599 params.ssids[params.num_ssids].ssid_len = in wpa_supplicant_scan() 600 ssid->ssid_len; in wpa_supplicant_scan() 636 params.ssids[0].ssid_len = 0; in wpa_supplicant_scan() 645 wpa_ssid_txt(ssid->ssid, ssid->ssid_len)); in wpa_supplicant_scan() [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() 897 conf.ssid_len = ssid->ssid_len; in wpa_supplicant_rsn_supp_set_config()
|
D | wps_supplicant.c | 141 bss = wpa_bss_get(wpa_s, cred->mac_addr, ssid->ssid, ssid->ssid_len); in wpas_wps_security_workaround() 232 wpa_hexdump_ascii(MSG_DEBUG, "WPS: SSID", cred->ssid, cred->ssid_len); in wpa_supplicant_wps_cred() 295 ssid->ssid = os_malloc(cred->ssid_len); in wpa_supplicant_wps_cred() 297 os_memcpy(ssid->ssid, cred->ssid, cred->ssid_len); in wpa_supplicant_wps_cred() 298 ssid->ssid_len = cred->ssid_len; in wpa_supplicant_wps_cred() 592 uuid_str, wpa_ssid_txt(cred->ssid, cred->ssid_len), in wpa_supplicant_wps_event_er_ap_settings() 774 ssid->ssid = os_malloc(bss->ssid_len); in wpas_wps_add_network() 777 os_memcpy(ssid->ssid, bss->ssid, bss->ssid_len); in wpas_wps_add_network() 778 ssid->ssid_len = bss->ssid_len; in wpas_wps_add_network() 781 ssid->ssid, ssid->ssid_len); in wpas_wps_add_network() [all …]
|
D | p2p_supplicant.c | 158 params.ssids[0].ssid_len = P2P_WILDCARD_SSID_LEN; in wpas_p2p_scan() 236 size_t ssid_len, int *go) in wpas_get_p2p_group() argument 243 s->ssid_len != ssid_len || in wpas_get_p2p_group() 244 os_memcmp(ssid, s->ssid, ssid_len) != 0) in wpas_get_p2p_group() 396 const u8 *ssid, size_t ssid_len) in wpas_p2p_persistent_group() argument 409 bss = wpa_bss_get(wpa_s, bssid, ssid, ssid_len); in wpas_p2p_persistent_group() 414 bss = wpa_bss_get(wpa_s, iface_addr, ssid, ssid_len); in wpas_p2p_persistent_group() 468 s->ssid_len == ssid->ssid_len && in wpas_p2p_store_persistent_group() 469 os_memcmp(ssid->ssid, s->ssid, ssid->ssid_len) == 0) in wpas_p2p_store_persistent_group() 522 if (s->ssid == NULL || s->ssid_len < ssid->ssid_len) { in wpas_p2p_store_persistent_group() [all …]
|
/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 …]
|
D | wps_supplicant.c | 121 if (ie[1] != ssid->ssid_len || ssid->ssid == NULL || in wpas_wps_security_workaround() 122 os_memcmp(ie + 2, ssid->ssid, ssid->ssid_len) != 0) in wpas_wps_security_workaround() 213 wpa_hexdump_ascii(MSG_DEBUG, "WPS: SSID", cred->ssid, cred->ssid_len); in wpa_supplicant_wps_cred() 261 ssid->ssid = os_malloc(cred->ssid_len); in wpa_supplicant_wps_cred() 263 os_memcpy(ssid->ssid, cred->ssid, cred->ssid_len); in wpa_supplicant_wps_cred() 264 ssid->ssid_len = cred->ssid_len; in wpa_supplicant_wps_cred() 518 ssid->ssid_len = ie[1]; in wpas_wps_add_network() 521 ssid->ssid, ssid->ssid_len); in wpas_wps_add_network() 530 ssid->ssid_len = 0; in wpas_wps_add_network()
|
D | wpa_supplicant.c | 962 } else if ((ssid->ssid == NULL || ssid->ssid_len == 0) && in wpa_supplicant_associate() 974 wpa_ssid_txt(ssid->ssid, ssid->ssid_len)); in wpa_supplicant_associate() 1107 params.ssid_len = ie ? ie[1] : 0; in wpa_supplicant_associate() 1111 params.ssid_len = ssid->ssid_len; in wpa_supplicant_associate() 1320 ie_len = 2 + bss->ssid_len + bss->rsn_ie_len + bss->wpa_ie_len; in wpa_supplicant_get_scan_results_old() 1343 *pos++ = bss->ssid_len; in wpa_supplicant_get_scan_results_old() 1344 os_memcpy(pos, bss->ssid, bss->ssid_len); in wpa_supplicant_get_scan_results_old() 1345 pos += bss->ssid_len; in wpa_supplicant_get_scan_results_old() 1428 size_t ssid_len; in wpa_supplicant_get_ssid() local 1433 if (ieee80211_sta_get_ssid(wpa_s, ssid, &ssid_len)) { in wpa_supplicant_get_ssid() [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 | 167 int wpa_driver_wext_set_ssid(void *priv, const u8 *ssid, size_t ssid_len) in wpa_driver_wext_set_ssid() argument 174 if (ssid_len > 32) in wpa_driver_wext_set_ssid() 180 iwr.u.essid.flags = (ssid_len != 0); in wpa_driver_wext_set_ssid() 182 os_memcpy(buf, ssid, ssid_len); in wpa_driver_wext_set_ssid() 193 if (ssid_len) in wpa_driver_wext_set_ssid() 194 ssid_len++; in wpa_driver_wext_set_ssid() 196 iwr.u.essid.length = ssid_len; in wpa_driver_wext_set_ssid() 1027 size_t ssid_len = params->ssids[0].ssid_len; in wpa_driver_wext_scan() local 1029 if (ssid_len > IW_ESSID_MAX_SIZE) { in wpa_driver_wext_scan() 1031 __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);
|
D | driver_ndiswrapper.c | 52 size_t ssid_len; member 231 wpa_assoc_info.ssid_len = params->ssid_len; in wpa_ndiswrapper_associate() 277 static int wpa_ndiswrapper_scan(void *priv, const u8 *ssid, size_t ssid_len) in wpa_ndiswrapper_scan() argument 280 return wpa_driver_wext_scan(drv->wext, ssid, ssid_len); in wpa_ndiswrapper_scan()
|