/Zephyr-latest/include/zephyr/net/ |
D | wifi_credentials.h | 53 char ssid[WIFI_SSID_MAX_LEN]; /**< SSID (Service Set Identifier) */ member 110 int wifi_credentials_get_by_ssid_personal(const char *ssid, size_t ssid_len, 135 int wifi_credentials_set_personal(const char *ssid, size_t ssid_len, enum wifi_security_type type, 152 int wifi_credentials_get_by_ssid_personal_struct(const char *ssid, size_t ssid_len, 176 int wifi_credentials_delete_by_ssid(const char *ssid, size_t ssid_len); 202 typedef void (*wifi_credentials_ssid_cb)(void *cb_arg, const char *ssid, size_t ssid_len);
|
D | wifi_mgmt.h | 499 uint8_t ssid[WIFI_SSID_MAX_LEN + 1]; member 521 const uint8_t *ssid; member 676 char ssid[WIFI_SSID_MAX_LEN + 1]; member 902 uint8_t ssid[WIFI_SSID_MAX_LEN + 1]; member 1153 char ssid[WIFI_SSID_MAX_LEN + 1]; member 1201 char ssid[WIFI_SSID_MAX_LEN + 1]; member
|
/Zephyr-latest/subsys/net/lib/wifi_credentials/ |
D | wifi_credentials.c | 29 static inline ssize_t lookup_idx(const uint8_t *ssid, size_t ssid_len) in lookup_idx() argument 36 if (strncmp(ssid, ssid_cache[i], ssid_len) == 0) { in lookup_idx() 90 memcpy(ssid_cache[idx], buf->ssid, buf->ssid_len); in wifi_credentials_cache_ssid() 104 int wifi_credentials_get_by_ssid_personal_struct(const char *ssid, size_t ssid_len, in wifi_credentials_get_by_ssid_personal_struct() argument 110 if (ssid == NULL || ssid_len > WIFI_SSID_MAX_LEN || ssid_len == 0) { in wifi_credentials_get_by_ssid_personal_struct() 122 idx = lookup_idx(ssid, ssid_len); in wifi_credentials_get_by_ssid_personal_struct() 168 idx = lookup_idx(creds->header.ssid, creds->header.ssid_len); in wifi_credentials_set_personal_struct() 192 int wifi_credentials_set_personal(const char *ssid, size_t ssid_len, enum wifi_security_type type, in wifi_credentials_set_personal() argument 201 if (ssid == NULL || ssid_len > WIFI_SSID_MAX_LEN || ssid_len == 0) { in wifi_credentials_set_personal() 224 memcpy(header->ssid, ssid, ssid_len); in wifi_credentials_set_personal() [all …]
|
D | wifi_credentials_shell.c | 26 static void print_network_info(void *cb_arg, const char *ssid, size_t ssid_len) in print_network_info() argument 32 ret = wifi_credentials_get_by_ssid_personal_struct(ssid, ssid_len, &creds); in print_network_info() 37 (int)ssid_len, ssid, ret); in print_network_info() 42 " network ssid: \"%.*s\", ssid_len: %d, type: %s", (int)ssid_len, ssid, in print_network_info() 151 memcpy(creds.header.ssid, argv[1], creds.header.ssid_len); in cmd_add_network()
|
/Zephyr-latest/drivers/wifi/eswifi/ |
D | eswifi_core.c | 65 static inline int __parse_ssid(char *str, char *ssid) in __parse_ssid() argument 77 ssid[i++] = *str++; in __parse_ssid() 105 res->ssid_length = __parse_ssid(str, res->ssid); in __parse_scan_res() 196 static int __parse_ipv4_address(char *str, char *ssid, uint8_t ip[4]) in __parse_ipv4_address() argument 203 if (!strncmp(str, ssid, strlen(ssid))) { in __parse_ipv4_address() 205 str += strlen(ssid); in __parse_ipv4_address() 264 LOG_DBG("Connecting to %s (pass=%s)", eswifi->sta.ssid, in eswifi_connect() 270 snprintk(eswifi->buf, sizeof(eswifi->buf), "C1=%s\r", eswifi->sta.ssid); in eswifi_connect() 302 err = __parse_ipv4_address(rsp, eswifi->sta.ssid, in eswifi_connect() 503 status->ssid_len = strnlen(sta->ssid, WIFI_SSID_MAX_LEN); in eswifi_mgmt_iface_status() [all …]
|
/Zephyr-latest/modules/hostap/src/ |
D | supp_events.h | 84 char ssid[WIFI_SSID_MAX_LEN]; member 101 char ssid[WIFI_SSID_MAX_LEN]; member 109 char ssid[WIFI_SSID_MAX_LEN]; member
|
D | supp_api.c | 892 strncpy(ssid_null_terminated, params->ssid, WIFI_SSID_MAX_LEN); in wpas_add_and_config_network() 1523 struct wpa_ssid *ssid = wpa_s->current_ssid; local 1526 u8 *_ssid = ssid->ssid; 1527 size_t ssid_len = ssid->ssid_len; 1533 if (!ssid) { 1538 proto = ssid->proto; 1539 key_mgmt = ssid->key_mgmt; 1544 status->mfp = get_mfp(ssid->ieee80211w); 1557 _ssid = cli_status.ssid; 1560 os_memcpy(status->ssid, _ssid, ssid_len); [all …]
|
/Zephyr-latest/drivers/wifi/esp32/src/ |
D | esp_wifi_drv.c | 58 char ssid[WIFI_SSID_MAX_LEN + 1]; member 239 int ssid_len = strnlen(ap_list_buffer[k].ssid, WIFI_SSID_MAX_LEN); in scan_done_handler() 242 strncpy(res.ssid, ap_list_buffer[k].ssid, ssid_len); in scan_done_handler() 525 memcpy(data->status.ssid, params->ssid, params->ssid_length); in esp32_wifi_connect() 526 data->status.ssid[params->ssid_length] = '\0'; in esp32_wifi_connect() 532 memcpy(wifi_config.sta.ssid, params->ssid, params->ssid_length); in esp32_wifi_connect() 533 wifi_config.sta.ssid[params->ssid_length] = '\0'; in esp32_wifi_connect() 662 memcpy(data->status.ssid, params->ssid, params->ssid_length); in esp32_wifi_ap_enable() 663 data->status.ssid[params->ssid_length] = '\0'; in esp32_wifi_ap_enable() 665 strncpy((char *) wifi_config.ap.ssid, params->ssid, params->ssid_length); in esp32_wifi_ap_enable() [all …]
|
/Zephyr-latest/drivers/wifi/infineon/ |
D | airoc_wifi.c | 189 strncpy(p_zy_result->ssid, p_whd_result->SSID.value, p_whd_result->SSID.length); in parse_scan_result() 491 if (whd_wifi_scan(airoc_sta_if, params->scan_type, WHD_BSS_TYPE_ANY, &(data->ssid), NULL, in airoc_mgmt_scan() 505 whd_ssid_t ssid = {0}; in airoc_mgmt_connect() local 524 ssid.length = params->ssid_length; in airoc_mgmt_connect() 525 memcpy(ssid.value, params->ssid, params->ssid_length); in airoc_mgmt_connect() 530 usr_result.SSID.length = ssid.length; in airoc_mgmt_connect() 531 memcpy(usr_result.SSID.value, ssid.value, ssid.length); in airoc_mgmt_connect() 619 whd_ssid_t ssid; in airoc_mgmt_ap_enable() local 649 ssid.length = params->ssid_length; in airoc_mgmt_ap_enable() 650 memcpy(ssid.value, params->ssid, ssid.length); in airoc_mgmt_ap_enable() [all …]
|
D | airoc_wifi.h | 53 whd_ssid_t ssid; member
|
/Zephyr-latest/samples/net/wifi/apsta_mode/src/ |
D | main.c | 121 ap_config.ssid = (const uint8_t *)WIFI_AP_SSID; in enable_ap_mode() 153 sta_config.ssid = (const uint8_t *)WIFI_SSID; in connect_to_wifi() 161 LOG_INF("Connecting to SSID: %s\n", sta_config.ssid); in connect_to_wifi()
|
/Zephyr-latest/subsys/net/l2/wifi/ |
D | wifi_mgmt.c | 29 char ssid[WIFI_SSID_MAX_LEN + 1]; member 350 LOG_HEXDUMP_DBG(params->ssid, params->ssid_length, "ssid"); in wifi_connect() 373 !params->ssid) { in wifi_connect() 1313 char *ssid = NULL; in __stored_creds_to_params() local 1318 ssid = (char *)k_malloc(creds->header.ssid_len + 1); in __stored_creds_to_params() 1319 if (!ssid) { in __stored_creds_to_params() 1325 memset(ssid, 0, creds->header.ssid_len + 1); in __stored_creds_to_params() 1326 ret = snprintf(ssid, creds->header.ssid_len + 1, "%s", creds->header.ssid); in __stored_creds_to_params() 1333 params->ssid = ssid; in __stored_creds_to_params() 1390 if (ssid) { in __stored_creds_to_params() [all …]
|
/Zephyr-latest/drivers/wifi/nxp/ |
D | nxp_wifi_drv.c | 97 char ssid[IEEEtypes_SSID_SIZE + 1]; in nxp_wifi_wlan_event_callback() local 166 ret = wlan_get_current_network_ssid(ssid); in nxp_wifi_wlan_event_callback() 173 LOG_DBG("SSID = [%s]", ssid); in nxp_wifi_wlan_event_callback() 484 memcpy(nxp_wlan_uap_network.ssid, params->ssid, params->ssid_length); in nxp_wifi_start_ap() 678 strncpy(res.ssid, scan_result.ssid, scan_result.ssid_len); in nxp_wifi_process_results() 764 strncpy(wlan_scan_params_v2.ssid[0], params->ssids[0], WIFI_SSID_MAX_LEN); in nxp_wifi_scan() 765 wlan_scan_params_v2.ssid[0][WIFI_SSID_MAX_LEN - 1] = 0; in nxp_wifi_scan() 770 strncpy(wlan_scan_params_v2.ssid[1], params->ssids[1], WIFI_SSID_MAX_LEN); in nxp_wifi_scan() 771 wlan_scan_params_v2.ssid[1][WIFI_SSID_MAX_LEN - 1] = 0; in nxp_wifi_scan() 878 memcpy(nxp_wlan_network.ssid, params->ssid, params->ssid_length); in nxp_wifi_connect() [all …]
|
/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_obj_access_control.c | 152 int ssid; in access_control_add() local 155 ssid = CONFIG_LWM2M_SERVER_DEFAULT_SSID; in access_control_add() 157 ssid = lwm2m_server_get_ssid(server_obj_inst_id); in access_control_add() 160 if (ssid < 0) { in access_control_add() 162 ssid = CONFIG_LWM2M_SERVER_DEFAULT_SSID; in access_control_add() 175 ac_data[avail].ac_owner = ssid; in access_control_add()
|
/Zephyr-latest/drivers/wifi/simplelink/ |
D | simplelink_support.h | 28 uint8_t ssid[SSID_LEN_MAX + 1]; member
|
D | simplelink_support.c | 288 memcpy(sl_conn.ssid, wlan_event->Data.Connect.SsidName, in SimpleLinkWlanEventHandler() 295 sl_conn.ssid, sl_conn.bssid[0], in SimpleLinkWlanEventHandler() 339 (void)memset(&(sl_conn.ssid), 0x0, sizeof(sl_conn.ssid)); in SimpleLinkWlanEventHandler() 597 memcpy(scan_result->ssid, net_entry->Ssid, net_entry->SsidLen); in z_simplelink_get_scan_result() 655 lretval = sl_WlanConnect((signed char *)params->ssid, in z_simplelink_connect()
|
/Zephyr-latest/drivers/wifi/esp_at/ |
D | esp.c | 346 char *ssid; in MODEM_CMD_DIRECT_DEFINE() local 372 err = esp_pull_quoted(&str, str_end, &ssid); in MODEM_CMD_DIRECT_DEFINE() 382 if (strlen(ssid) > WIFI_SSID_MAX_LEN) { in MODEM_CMD_DIRECT_DEFINE() 386 res.ssid_length = MIN(sizeof(res.ssid), strlen(ssid)); in MODEM_CMD_DIRECT_DEFINE() 387 memcpy(res.ssid, ssid, res.ssid_length); in MODEM_CMD_DIRECT_DEFINE() 427 char *ssid; in MODEM_CMD_DIRECT_DEFINE() local 451 err = esp_pull_quoted(&str, str_end, &ssid); in MODEM_CMD_DIRECT_DEFINE() 471 strncpy(status->ssid, ssid, sizeof(status->ssid)); in MODEM_CMD_DIRECT_DEFINE() 472 status->ssid_len = strnlen(status->ssid, sizeof(status->ssid)); in MODEM_CMD_DIRECT_DEFINE() 1254 params->ssid, params->ssid_length); in esp_mgmt_connect() [all …]
|
/Zephyr-latest/samples/net/cloud/tagoio_http_post/src/ |
D | wifi.c | 53 .ssid = CONFIG_TAGOIO_HTTP_WIFI_SSID, in wifi_connect()
|
/Zephyr-latest/drivers/wifi/winc1500/ |
D | wifi_winc1500.c | 701 memcpy(result.ssid, pstrScanResult->au8SSID, WIFI_SSID_MAX_LEN); in handle_scan_result() 702 result.ssid_length = strlen(result.ssid); in handle_scan_result() 1007 uint8_t ssid[M2M_MAX_SSID_LEN]; in winc1500_mgmt_connect() local 1013 memcpy(ssid, params->ssid, params->ssid_length); in winc1500_mgmt_connect() 1014 ssid[params->ssid_length] = '\0'; in winc1500_mgmt_connect() 1034 ssid, params->ssid_length, in winc1500_mgmt_connect() 1040 if (m2m_wifi_connect((char *)ssid, params->ssid_length, in winc1500_mgmt_connect() 1069 strcpy((char *)&strM2MAPConfig.au8SSID, params->ssid); in winc1500_mgmt_ap_enable()
|
/Zephyr-latest/drivers/wifi/nrf_wifi/src/ |
D | wifi_mgmt_scan.c | 340 res.ssid_length = MIN(sizeof(res.ssid), r->ssid.nrf_wifi_ssid_len); in nrf_wifi_event_proc_disp_scan_res_zep() 350 memcpy(res.ssid, in nrf_wifi_event_proc_disp_scan_res_zep() 351 r->ssid.nrf_wifi_ssid, in nrf_wifi_event_proc_disp_scan_res_zep()
|
/Zephyr-latest/tests/boards/espressif/wifi/src/ |
D | main.c | 53 strncpy(ssid_print, entry->ssid, sizeof(ssid_print) - 1); in wifi_scan_result() 175 params.ssid = CONFIG_WIFI_TEST_SSID; in wifi_connect() 176 params.ssid_length = strlen(params.ssid); in wifi_connect()
|
/Zephyr-latest/samples/subsys/mgmt/updatehub/src/ |
D | main.c | 119 .ssid = CONFIG_UPDATEHUB_SAMPLE_WIFI_SSID, in main()
|
/Zephyr-latest/tests/net/lib/wifi_credentials_backend_psa/src/ |
D | main.c | 55 .ssid = SSID1, 67 .ssid = SSID2,
|
/Zephyr-latest/tests/net/lib/wifi_credentials_backend_settings/src/ |
D | main.c | 52 .ssid = SSID1, 64 .ssid = SSID2,
|
/Zephyr-latest/subsys/net/lib/zperf/ |
D | zperf_internal.h | 104 extern void connect_ap(char *ssid);
|