Lines Matching refs:resp_data
53 static esp_err_t get_status_handler(wifi_prov_config_get_data_t *resp_data, wifi_prov_ctx_t **ctx) in get_status_handler() argument
56 memset(resp_data, 0, sizeof(wifi_prov_config_get_data_t)); in get_status_handler()
58 if (wifi_prov_mgr_get_wifi_state(&resp_data->wifi_state) != ESP_OK) { in get_status_handler()
63 if (resp_data->wifi_state == WIFI_PROV_STA_CONNECTED) { in get_status_handler()
69 … esp_ip4addr_ntoa(&ip_info.ip, resp_data->conn_info.ip_addr, sizeof(resp_data->conn_info.ip_addr)); in get_status_handler()
75 memcpy(resp_data->conn_info.bssid, (char *)ap_info.bssid, sizeof(ap_info.bssid)); in get_status_handler()
76 memcpy(resp_data->conn_info.ssid, (char *)ap_info.ssid, sizeof(ap_info.ssid)); in get_status_handler()
77 resp_data->conn_info.channel = ap_info.primary; in get_status_handler()
78 resp_data->conn_info.auth_mode = ap_info.authmode; in get_status_handler()
82 } else if (resp_data->wifi_state == WIFI_PROV_STA_DISCONNECTED) { in get_status_handler()
86 wifi_prov_mgr_get_wifi_disconnect_reason(&resp_data->fail_reason); in get_status_handler()