Home
last modified time | relevance | path

Searched refs:ssid (Results 1 – 25 of 134) sorted by relevance

123456

/hal_espressif-3.6.0/components/wpa_supplicant/src/ap/
Dap_config.c121 static int hostapd_derive_psk(struct hostapd_ssid *ssid) in hostapd_derive_psk() argument
123 ssid->wpa_psk = (struct hostapd_wpa_psk *)os_zalloc(sizeof(struct hostapd_wpa_psk)); in hostapd_derive_psk()
124 if (ssid->wpa_psk == NULL) { in hostapd_derive_psk()
129 (u8 *) ssid->ssid, ssid->ssid_len); in hostapd_derive_psk()
131 (u8 *) ssid->wpa_passphrase, in hostapd_derive_psk()
132 strlen(ssid->wpa_passphrase)); in hostapd_derive_psk()
134 memcpy(ssid->wpa_psk->psk, esp_wifi_ap_get_prof_pmk_internal(), PMK_LEN); in hostapd_derive_psk()
137 pbkdf2_sha1(ssid->wpa_passphrase, in hostapd_derive_psk()
138 ssid->ssid, ssid->ssid_len, in hostapd_derive_psk()
139 4096, ssid->wpa_psk->psk, PMK_LEN); in hostapd_derive_psk()
[all …]
/hal_espressif-3.6.0/examples/wifi/ftm/main/
Dftm_main.c26 struct arg_str *ssid; member
32 struct arg_str *ssid; member
41 struct arg_str *ssid; member
107 ESP_LOGI(TAG_STA, "Connected to %s (BSSID: "MACSTR", Channel: %d)", event->ssid, in event_handler()
214 static bool wifi_cmd_sta_join(const char *ssid, const char *pass) in wifi_cmd_sta_join() argument
220 strlcpy((char *) wifi_config.sta.ssid, ssid, sizeof(wifi_config.sta.ssid)); in wifi_cmd_sta_join()
252 ESP_LOGI(TAG_STA, "sta connecting to '%s'", sta_args.ssid->sval[0]); in wifi_cmd_sta()
253 wifi_cmd_sta_join(sta_args.ssid->sval[0], sta_args.password->sval[0]); in wifi_cmd_sta()
257 static bool wifi_perform_scan(const char *ssid, bool internal) in wifi_perform_scan() argument
260 scan_config.ssid = (uint8_t *) ssid; in wifi_perform_scan()
[all …]
/hal_espressif-3.6.0/components/wpa_supplicant/esp_supplicant/src/
Desp_hostap.c24 struct wifi_ssid *ssid = esp_wifi_ap_get_prof_ap_ssid_internal(); in hostap_init() local
88 memcpy(hapd->conf->ssid.ssid, ssid->ssid, ssid->len); in hostap_init()
89 hapd->conf->ssid.ssid_len = ssid->len; in hostap_init()
90 hapd->conf->ssid.wpa_passphrase = (char *)os_zalloc(64); in hostap_init()
91 if (hapd->conf->ssid.wpa_passphrase == NULL) { in hostap_init()
98 …memcpy(hapd->conf->ssid.wpa_passphrase, esp_wifi_ap_get_prof_password_internal(), strlen((char *)e… in hostap_init()
131 if (hapd->conf->ssid.wpa_psk != NULL) { in hostap_deinit()
132 os_free(hapd->conf->ssid.wpa_psk); in hostap_deinit()
134 if (hapd->conf->ssid.wpa_passphrase != NULL) { in hostap_deinit()
135 os_free(hapd->conf->ssid.wpa_passphrase); in hostap_deinit()
/hal_espressif-3.6.0/components/wpa_supplicant/src/common/
Dbss.c46 wpa_ssid_txt(bss->ssid, bss->ssid_len), reason); in wpa_bss_remove()
60 const u8 *ssid, size_t ssid_len) in wpa_bss_get() argument
66 os_memcmp(bss->ssid, ssid, ssid_len) == 0) in wpa_bss_get()
110 struct wifi_ssid *ssid = esp_wifi_sta_get_prof_ssid_internal(); in wpa_bss_known() local
112 if (ssid->ssid == NULL || ssid->len == 0) in wpa_bss_known()
114 if (ssid->len == bss->ssid_len && in wpa_bss_known()
115 os_memcmp(ssid->ssid, bss->ssid, ssid->len) == 0) in wpa_bss_known()
129 os_memcmp(bss->ssid, wpa_s->current_bss->ssid, in wpa_bss_in_use()
179 const u8 *ssid, size_t ssid_len, in wpa_bss_add() argument
198 os_memcpy(bss->ssid, ssid, ssid_len); in wpa_bss_add()
[all …]
/hal_espressif-3.6.0/components/wifi_provisioning/src/
Dhandlers.c76 memcpy(resp_data->conn_info.ssid, (char *)ap_info.ssid, sizeof(ap_info.ssid)); in get_status_handler()
113 const size_t ssid_len = strnlen(req_data->ssid, sizeof(wifi_cfg->sta.ssid)); in set_config_handler()
115 memset(wifi_cfg->sta.ssid, 0, sizeof(wifi_cfg->sta.ssid)); in set_config_handler()
116 memcpy(wifi_cfg->sta.ssid, req_data->ssid, ssid_len); in set_config_handler()
184 _Static_assert(sizeof(result->ssid) == sizeof(record->ssid), in scan_result()
186 memcpy(result->ssid, record->ssid, sizeof(record->ssid)); in scan_result()
Dscheme_softap.c22 char ssid[33]; member
30 static esp_err_t start_wifi_ap(const char *ssid, const char *pass) in start_wifi_ap() argument
41 const size_t ssid_len = strnlen(ssid, sizeof(wifi_config.ap.ssid)); in start_wifi_ap()
42 memcpy(wifi_config.ap.ssid, ssid, ssid_len); in start_wifi_ap()
97 err = start_wifi_ap(softap_config->ssid, softap_config->password); in prov_start()
186 strlcpy(softap_config->ssid, service_name, sizeof(softap_config->ssid)); in set_config_service()
Dwifi_config.c107 connected->ssid.len = strlen(resp_data.conn_info.ssid); in cmd_get_status_handler()
108 connected->ssid.data = (uint8_t *) strdup(resp_data.conn_info.ssid); in cmd_get_status_handler()
109 if (connected->ssid.data == NULL) { in cmd_get_status_handler()
165 } else if (req->cmd_set_config->ssid.len >= sizeof(req_data.ssid)) { in cmd_set_config_handler()
173 memcpy(req_data.ssid, req->cmd_set_config->ssid.data, in cmd_set_config_handler()
174 req->cmd_set_config->ssid.len); in cmd_set_config_handler()
251 if (resp->resp_get_status->connected->ssid.data) { in wifi_prov_config_command_cleanup()
252 free(resp->resp_get_status->connected->ssid.data); in wifi_prov_config_command_cleanup()
/hal_espressif-3.6.0/examples/bluetooth/esp_ble_mesh/ble_mesh_wifi_coexist/main/
Dcmd_wifi.c37 struct arg_str *ssid; member
43 struct arg_str *ssid; member
74 ESP_LOGI(TAG, "[%s][rssi=%d]", ap_list_buffer[i].ssid, ap_list_buffer[i].rssi); in scan_done_handler()
150 static bool wifi_cmd_sta_join(const char *ssid, const char *pass) in wifi_cmd_sta_join() argument
156 strlcpy((char *) wifi_config.sta.ssid, ssid, sizeof(wifi_config.sta.ssid)); in wifi_cmd_sta_join()
188 ESP_LOGI(TAG, "sta connecting to '%s'", sta_args.ssid->sval[0]); in wifi_cmd_sta()
189 wifi_cmd_sta_join(sta_args.ssid->sval[0], sta_args.password->sval[0]); in wifi_cmd_sta()
193 static bool wifi_cmd_sta_scan(const char *ssid) in wifi_cmd_sta_scan() argument
196 scan_config.ssid = (uint8_t *) ssid; in wifi_cmd_sta_scan()
214 if ( scan_args.ssid->count == 1 ) { in wifi_cmd_scan()
[all …]
/hal_espressif-3.6.0/examples/wifi/iperf/main/
Dcmd_wifi.c40 struct arg_str *ssid; member
46 struct arg_str *ssid; member
83 ESP_LOGI(TAG, "[%s][rssi=%d]", ap_list_buffer[i].ssid, ap_list_buffer[i].rssi); in scan_done_handler()
160 static bool wifi_cmd_sta_join(const char *ssid, const char *pass) in wifi_cmd_sta_join() argument
166 strlcpy((char *) wifi_config.sta.ssid, ssid, sizeof(wifi_config.sta.ssid)); in wifi_cmd_sta_join()
197 ESP_LOGI(TAG, "sta connecting to '%s'", sta_args.ssid->sval[0]); in wifi_cmd_sta()
198 wifi_cmd_sta_join(sta_args.ssid->sval[0], sta_args.password->sval[0]); in wifi_cmd_sta()
202 static bool wifi_cmd_sta_scan(const char *ssid) in wifi_cmd_sta_scan() argument
205 scan_config.ssid = (uint8_t *) ssid; in wifi_cmd_sta_scan()
223 if ( scan_args.ssid->count == 1 ) { in wifi_cmd_scan()
[all …]
/hal_espressif-3.6.0/examples/provisioning/legacy/ble_prov/main/
Dapp_prov_handlers.c71 memcpy(resp_data->conn_info.ssid, (char *)ap_info.ssid, sizeof(ap_info.ssid)); in get_status_handler()
99 req_data->ssid, req_data->password); in set_config_handler()
106 const size_t ssid_len = strnlen(req_data->ssid, sizeof(wifi_cfg->sta.ssid)); in set_config_handler()
108 memset(wifi_cfg->sta.ssid, 0, sizeof(wifi_cfg->sta.ssid)); in set_config_handler()
109 memcpy(wifi_cfg->sta.ssid, req_data->ssid, ssid_len); in set_config_handler()
/hal_espressif-3.6.0/examples/provisioning/legacy/softap_prov/main/
Dapp_prov_handlers.c71 memcpy(resp_data->conn_info.ssid, (char *)ap_info.ssid, sizeof(ap_info.ssid)); in get_status_handler()
99 req_data->ssid, req_data->password); in set_config_handler()
106 const size_t ssid_len = strnlen(req_data->ssid, sizeof(wifi_cfg->sta.ssid)); in set_config_handler()
108 memset(wifi_cfg->sta.ssid, 0, sizeof(wifi_cfg->sta.ssid)); in set_config_handler()
109 memcpy(wifi_cfg->sta.ssid, req_data->ssid, ssid_len); in set_config_handler()
Dapp_prov.c245 if (strlen((const char*) wifi_cfg.sta.ssid)) { in app_prov_is_provisioned()
247 ESP_LOGI(TAG, "Found ssid %s", (const char*) wifi_cfg.sta.ssid); in app_prov_is_provisioned()
284 static esp_err_t start_wifi_ap(const char *ssid, const char *pass) in start_wifi_ap() argument
293 strlcpy((char *) wifi_config.ap.ssid, ssid, sizeof(wifi_config.ap.ssid)); in start_wifi_ap()
323 esp_err_t app_prov_start_softap_provisioning(const char *ssid, const char *pass, in app_prov_start_softap_provisioning() argument
370 err = start_wifi_ap(ssid, pass); in app_prov_start_softap_provisioning()
383 ESP_LOGI(TAG, "SoftAP Provisioning started with SSID '%s', Password '%s'", ssid, pass); in app_prov_start_softap_provisioning()
/hal_espressif-3.6.0/examples/provisioning/legacy/console_prov/main/
Dapp_prov_handlers.c71 memcpy(resp_data->conn_info.ssid, (char *)ap_info.ssid, sizeof(ap_info.ssid)); in get_status_handler()
99 req_data->ssid, req_data->password); in set_config_handler()
106 const size_t ssid_len = strnlen(req_data->ssid, sizeof(wifi_cfg->sta.ssid)); in set_config_handler()
108 memset(wifi_cfg->sta.ssid, 0, sizeof(wifi_cfg->sta.ssid)); in set_config_handler()
109 memcpy(wifi_cfg->sta.ssid, req_data->ssid, ssid_len); in set_config_handler()
/hal_espressif-3.6.0/examples/bluetooth/esp_ble_mesh/ble_mesh_coex_test/components/case/
Dwifi_connect.c49 static void start(const char *ssid, const char *passwd);
63 esp_err_t example_connect(const char *ssid, const char *passwd) in example_connect() argument
69 start(ssid, passwd); in example_connect()
103 static void start(const char *ssid, const char *passwd) in start() argument
125 if (ssid) { in start()
126 strncpy((char *)wifi_config.sta.ssid, ssid, strlen(ssid)); in start()
132 ESP_LOGI(TAG, "Connecting to %s...", wifi_config.sta.ssid); in start()
137 s_connection_name = ssid; in start()
/hal_espressif-3.6.0/examples/provisioning/legacy/custom_config/main/
Dapp_prov_handlers.c83 memcpy(resp_data->conn_info.ssid, (char *)ap_info.ssid, sizeof(ap_info.ssid)); in get_status_handler()
111 req_data->ssid, req_data->password); in set_config_handler()
118 const size_t ssid_len = strnlen(req_data->ssid, sizeof(wifi_cfg->sta.ssid)); in set_config_handler()
120 memset(wifi_cfg->sta.ssid, 0, sizeof(wifi_cfg->sta.ssid)); in set_config_handler()
121 memcpy(wifi_cfg->sta.ssid, req_data->ssid, ssid_len); in set_config_handler()
Dapp_prov.c259 if (strlen((const char*) wifi_cfg.sta.ssid)) { in app_prov_is_provisioned()
261 ESP_LOGI(TAG, "Found ssid %s", (const char*) wifi_cfg.sta.ssid); in app_prov_is_provisioned()
298 static esp_err_t start_wifi_ap(const char *ssid, const char *pass) in start_wifi_ap() argument
307 strlcpy((char *) wifi_config.ap.ssid, ssid, sizeof(wifi_config.ap.ssid)); in start_wifi_ap()
337 esp_err_t app_prov_start_softap_provisioning(const char *ssid, const char *pass, in app_prov_start_softap_provisioning() argument
384 err = start_wifi_ap(ssid, pass); in app_prov_start_softap_provisioning()
397 ESP_LOGI(TAG, "SoftAP Provisioning started with SSID %s, Password %s", ssid, pass); in app_prov_start_softap_provisioning()
/hal_espressif-3.6.0/examples/bluetooth/blufi/main/
Dblufi_example_main.c101 memcpy(gl_sta_ssid, event->ssid, event->ssid_len); in wifi_event_handler()
152 memcpy(blufi_ap_list[i].ssid, ap_list[i].ssid, sizeof(ap_list[i].ssid)); in wifi_event_handler()
272 BLUFI_INFO("Recv STA BSSID %s\n", sta_config.sta.ssid); in example_event_callback()
275 … strncpy((char *)sta_config.sta.ssid, (char *)param->sta_ssid.ssid, param->sta_ssid.ssid_len); in example_event_callback()
276 sta_config.sta.ssid[param->sta_ssid.ssid_len] = '\0'; in example_event_callback()
278 BLUFI_INFO("Recv STA SSID %s\n", sta_config.sta.ssid); in example_event_callback()
287 … strncpy((char *)ap_config.ap.ssid, (char *)param->softap_ssid.ssid, param->softap_ssid.ssid_len); in example_event_callback()
288 ap_config.ap.ssid[param->softap_ssid.ssid_len] = '\0'; in example_event_callback()
291 BLUFI_INFO("Recv SOFTAP SSID %s, ssid len %d\n", ap_config.ap.ssid, ap_config.ap.ssid_len); in example_event_callback()
325 .ssid = NULL, in example_event_callback()
/hal_espressif-3.6.0/examples/system/console/advanced/main/
Dcmd_wifi.c64 static bool wifi_join(const char *ssid, const char *pass, int timeout_ms) in wifi_join() argument
68 strlcpy((char *) wifi_config.sta.ssid, ssid, sizeof(wifi_config.sta.ssid)); in wifi_join()
85 struct arg_str *ssid; member
98 join_args.ssid->sval[0]); in connect()
105 bool connected = wifi_join(join_args.ssid->sval[0], in connect()
119 join_args.ssid = arg_str1(NULL, NULL, "<ssid>", "SSID of AP"); in register_wifi()
/hal_espressif-3.6.0/examples/system/console/basic/main/
Dcmd_wifi.c64 static bool wifi_join(const char *ssid, const char *pass, int timeout_ms) in wifi_join() argument
68 strlcpy((char *) wifi_config.sta.ssid, ssid, sizeof(wifi_config.sta.ssid)); in wifi_join()
85 struct arg_str *ssid; member
98 join_args.ssid->sval[0]); in connect()
105 bool connected = wifi_join(join_args.ssid->sval[0], in connect()
119 join_args.ssid = arg_str1(NULL, NULL, "<ssid>", "SSID of AP"); in register_wifi()
/hal_espressif-3.6.0/examples/wifi/smart_config/main/
Dsmartconfig_main.c55 uint8_t ssid[33] = { 0 }; in event_handler() local
60 memcpy(wifi_config.sta.ssid, evt->ssid, sizeof(wifi_config.sta.ssid)); in event_handler()
67 memcpy(ssid, evt->ssid, sizeof(evt->ssid)); in event_handler()
69 ESP_LOGI(TAG, "SSID:%s", ssid); in event_handler()
/hal_espressif-3.6.0/components/wpa_supplicant/src/wps/
Dwps_attr_process.c96 static int wps_process_cred_ssid(struct wps_credential *cred, const u8 *ssid, in wps_process_cred_ssid() argument
99 if (ssid == NULL) { in wps_process_cred_ssid()
106 while (ssid_len > 0 && ssid[ssid_len - 1] == 0) in wps_process_cred_ssid()
109 wpa_hexdump_ascii(MSG_DEBUG, "WPS: SSID", ssid, ssid_len); in wps_process_cred_ssid()
110 if (ssid_len <= sizeof(cred->ssid)) { in wps_process_cred_ssid()
111 os_memcpy(cred->ssid, ssid, ssid_len); in wps_process_cred_ssid()
305 wps_process_cred_ssid(cred, attr->ssid, attr->ssid_len) || in wps_process_cred()
331 if (wps_process_cred_ssid(cred, attr->ssid, attr->ssid_len) || in wps_process_ap_settings()
/hal_espressif-3.6.0/components/esp_wifi/src/
Dsmartconfig.c31 uint8_t ssid[33] = { 0 }; in handler_got_ssid_passwd() local
36 memcpy(ssid, evt->ssid, sizeof(evt->ssid)); in handler_got_ssid_passwd()
40 ESP_LOGD(TAG, "SSID:%s", ssid); in handler_got_ssid_passwd()
/hal_espressif-3.6.0/examples/mesh/manual_networking/main/
Dmesh_main.c64 i, record.ssid, assoc.layer, assoc.layer_cap, assoc.assoc, in mesh_scan_done_handler()
87 record.ssid, MAC2STR(record.bssid), record.primary, in mesh_scan_done_handler()
90 if (!strcmp(CONFIG_MESH_ROUTER_SSID, (char *) record.ssid)) { in mesh_scan_done_handler()
106 memcpy(&parent.sta.ssid, &parent_record.ssid, in mesh_scan_done_handler()
107 sizeof(parent_record.ssid)); in mesh_scan_done_handler()
116 parent_record.ssid, MAC2STR(parent_record.bssid), in mesh_scan_done_handler()
127 parent_record.ssid, parent_assoc.layer, in mesh_scan_done_handler()
320 memcpy((uint8_t *) &cfg.router.ssid, CONFIG_MESH_ROUTER_SSID, cfg.router.ssid_len); in app_main()
/hal_espressif-3.6.0/components/wpa_supplicant/src/crypto/
Dsha1-pbkdf2.c14 static int pbkdf2_sha1_f(const char *passphrase, const u8 *ssid, in pbkdf2_sha1_f() argument
25 addr[0] = ssid; 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()
/hal_espressif-3.6.0/examples/wifi/wps/main/
Dwps.c74 wps_ap_creds[ap_idx].sta.ssid, wps_ap_creds[ap_idx].sta.password); in wifi_event_handler()
94 memcpy(wps_ap_creds[i].sta.ssid, evt->ap_cred[i].ssid, in wifi_event_handler()
95 sizeof(evt->ap_cred[i].ssid)); in wifi_event_handler()
101 wps_ap_creds[0].sta.ssid, wps_ap_creds[0].sta.password); in wifi_event_handler()

123456