/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 32 if (ssid_len != ssid_cache_lengths[i]) { in lookup_idx() 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() 91 ssid_cache_lengths[idx] = 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() 161 if (creds->header.ssid_len > WIFI_SSID_MAX_LEN || creds->header.ssid_len == 0) { in wifi_credentials_set_personal_struct() 168 idx = lookup_idx(creds->header.ssid, creds->header.ssid_len); in wifi_credentials_set_personal_struct() [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() 43 ssid_len, wifi_security_txt(creds.header.type)); in print_network_info() 147 .header.ssid_len = strlen(argv[1]), in cmd_add_network() 151 memcpy(creds.header.ssid, argv[1], creds.header.ssid_len); in cmd_add_network()
|
/Zephyr-latest/include/zephyr/net/ |
D | wifi_credentials.h | 54 size_t ssid_len; /**< Length of the SSID */ 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 | 674 unsigned int ssid_len; member
|
/Zephyr-latest/tests/net/lib/wifi_credentials_backend_psa/src/ |
D | main.c | 56 .ssid_len = strlen(SSID1), 68 .ssid_len = strlen(SSID2),
|
/Zephyr-latest/tests/net/lib/wifi_credentials_backend_settings/src/ |
D | main.c | 53 .ssid_len = strlen(SSID1), 65 .ssid_len = strlen(SSID2),
|
/Zephyr-latest/subsys/net/l2/wifi/ |
D | wifi_mgmt.c | 1318 ssid = (char *)k_malloc(creds->header.ssid_len + 1); 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() 1327 if (ret > creds->header.ssid_len) { in __stored_creds_to_params() 1334 params->ssid_length = creds->header.ssid_len; in __stored_creds_to_params() 1452 static void add_stored_network(void *cb_arg, const char *ssid, size_t ssid_len) in add_stored_network() argument 1458 ret = wifi_credentials_get_by_ssid_personal_struct(ssid, ssid_len, &creds); in add_stored_network() 1462 ssid_len, ssid, ssid_len, ret); in add_stored_network() 1475 .ssid_len = strlen(CONFIG_WIFI_CREDENTIALS_STATIC_SSID), in add_static_network_config()
|
/Zephyr-latest/drivers/wifi/esp32/src/ |
D | esp_wifi_drv.c | 239 int ssid_len = strnlen(ap_list_buffer[k].ssid, WIFI_SSID_MAX_LEN); in scan_done_handler() local 241 res.ssid_length = ssid_len; in scan_done_handler() 242 strncpy(res.ssid, ap_list_buffer[k].ssid, ssid_len); in scan_done_handler() 666 wifi_config.ap.ssid_len = params->ssid_length; in esp32_wifi_ap_enable() 764 status->ssid_len = strnlen(data->status.ssid, WIFI_SSID_MAX_LEN); in esp32_wifi_status() 765 status->ssid[status->ssid_len] = '\0'; in esp32_wifi_status()
|
/Zephyr-latest/modules/hostap/src/ |
D | supp_api.c | 1527 size_t ssid_len = ssid->ssid_len; local 1548 if (ssid_len == 0) { 1552 ssid_len = 0; 1554 ssid_len = cli_status.ssid_len; 1560 os_memcpy(status->ssid, _ssid, ssid_len); 1561 status->ssid_len = ssid_len; 1727 int ssid_len = strlen(params->ssid); local 1729 if (params != NULL && ssid_len > 0) { 1730 if (ssid_len > WIFI_SSID_MAX_LEN) { 1732 __func__, ssid_len); [all …]
|
/Zephyr-latest/drivers/wifi/nxp/ |
D | nxp_wifi_drv.c | 677 res.ssid_length = scan_result.ssid_len; in nxp_wifi_process_results() 678 strncpy(res.ssid, scan_result.ssid, scan_result.ssid_len); in nxp_wifi_process_results() 1019 status->ssid_len = strlen(status->ssid); in nxp_wifi_uap_status() 1097 status->ssid_len = strlen(nxp_wlan_network.ssid); in nxp_wifi_status() 1170 int ssid_len = strlen(CONFIG_NXP_WIFI_STA_AUTO_SSID); in nxp_wifi_auto_connect() local 1176 if (ssid_len >= IEEEtypes_SSID_SIZE) { in nxp_wifi_auto_connect() 1180 if (ssid_len == 0) { in nxp_wifi_auto_connect() 1199 params.ssid_length = ssid_len; in nxp_wifi_auto_connect()
|
/Zephyr-latest/tests/net/lib/wifi_credentials/src/ |
D | main.c | 259 void verify_ssid_cache_cb(void *cb_arg, const char *ssid, size_t ssid_len) in verify_ssid_cache_cb() argument 264 zassert_equal(strncmp(ssids[call_count++], ssid, ssid_len), 0, "SSID cache mismatch"); in verify_ssid_cache_cb()
|
/Zephyr-latest/drivers/wifi/eswifi/ |
D | eswifi_core.c | 503 status->ssid_len = strnlen(sta->ssid, WIFI_SSID_MAX_LEN); in eswifi_mgmt_iface_status() 504 strncpy(status->ssid, sta->ssid, status->ssid_len); in eswifi_mgmt_iface_status()
|
/Zephyr-latest/drivers/wifi/nrf_wifi/src/ |
D | wpa_supp_if.c | 547 params->filter_ssids[indx].ssid_len); in nrf_wifi_wpa_supp_scan2() 550 params->filter_ssids[indx].ssid_len; in nrf_wifi_wpa_supp_scan2() 805 memcpy(auth_info.ssid.nrf_wifi_ssid, params->ssid, params->ssid_len); in nrf_wifi_wpa_supp_authenticate() 807 auth_info.ssid.nrf_wifi_ssid_len = params->ssid_len; in nrf_wifi_wpa_supp_authenticate() 913 assoc_info.ssid.nrf_wifi_ssid_len = params->ssid_len; in nrf_wifi_wpa_supp_associate() 915 memcpy(assoc_info.ssid.nrf_wifi_ssid, params->ssid, params->ssid_len); in nrf_wifi_wpa_supp_associate() 2395 start_ap_info.ssid.nrf_wifi_ssid_len = params->ssid_len; in nrf_wifi_wpa_supp_start_ap() 2396 memcpy(start_ap_info.ssid.nrf_wifi_ssid, params->ssid, params->ssid_len); in nrf_wifi_wpa_supp_start_ap()
|
/Zephyr-latest/drivers/wifi/esp_at/ |
D | esp.c | 472 status->ssid_len = strnlen(status->ssid, sizeof(status->ssid)); in MODEM_CMD_DIRECT_DEFINE()
|