mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-19 14:26:01 -04:00
fix(wifi): support esp32_host ext_connect in iper
This commit is contained in:
parent
42074a3f36
commit
971d9b8762
@ -35,6 +35,9 @@ extern int wifi_cmd_get_rx_statistics(int argc, char **argv);
|
|||||||
extern int wifi_cmd_clr_rx_statistics(int argc, char **argv);
|
extern int wifi_cmd_clr_rx_statistics(int argc, char **argv);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_ESP_EXT_CONN_ENABLE
|
||||||
|
#include "esp_extconn.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
void iperf_hook_show_wifi_stats(iperf_traffic_type_t type, iperf_status_t status)
|
void iperf_hook_show_wifi_stats(iperf_traffic_type_t type, iperf_status_t status)
|
||||||
{
|
{
|
||||||
@ -69,6 +72,11 @@ void iperf_hook_show_wifi_stats(iperf_traffic_type_t type, iperf_status_t status
|
|||||||
|
|
||||||
void app_main(void)
|
void app_main(void)
|
||||||
{
|
{
|
||||||
|
#if CONFIG_ESP_EXT_CONN_ENABLE
|
||||||
|
esp_extconn_config_t ext_config = ESP_EXTCONN_CONFIG_DEFAULT();
|
||||||
|
esp_extconn_init(&ext_config);
|
||||||
|
#endif
|
||||||
|
|
||||||
esp_err_t ret = nvs_flash_init();
|
esp_err_t ret = nvs_flash_init();
|
||||||
if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND) {
|
if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND) {
|
||||||
ESP_ERROR_CHECK(nvs_flash_erase());
|
ESP_ERROR_CHECK(nvs_flash_erase());
|
||||||
|
5
examples/wifi/iperf/sdkconfig.defaults.esp32p4
Normal file
5
examples/wifi/iperf/sdkconfig.defaults.esp32p4
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#
|
||||||
|
# ESP32-P4
|
||||||
|
#
|
||||||
|
CONFIG_ESP_HOST_WIFI_ENABLED=y
|
||||||
|
CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y
|
Loading…
Reference in New Issue
Block a user