From 52b24918f01a2e90f395f4056050511516aa0d6e Mon Sep 17 00:00:00 2001 From: Kapil Gupta Date: Mon, 31 Oct 2022 21:06:28 +0530 Subject: [PATCH] esp_wifi: Add config option for AP retry count Provide a config option for station to retry with the AP if connection fails first time. --- components/esp_wifi/include/esp_wifi_types.h | 1 + components/esp_wifi/lib | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/esp_wifi/include/esp_wifi_types.h b/components/esp_wifi/include/esp_wifi_types.h index d93f0e97fb..e6df84fa4a 100644 --- a/components/esp_wifi/include/esp_wifi_types.h +++ b/components/esp_wifi/include/esp_wifi_types.h @@ -265,6 +265,7 @@ typedef struct { uint32_t owe_enabled:1; /**< Whether OWE is enabled for the connection */ uint32_t reserved:27; /**< Reserved for future feature set */ wifi_sae_pwe_method_t sae_pwe_h2e; /**< Whether SAE hash to element is enabled */ + uint8_t failure_retry_cnt; /**< Number of connection retries station will do before moving to next AP. scan_method should be set as WIFI_ALL_CHANNEL_SCAN to use this config. Note: Enabling this may cause connection time to increase incase best AP doesn't behave properly. */ } wifi_sta_config_t; /** @brief Configuration data for ESP32 AP or STA. diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib index 51e2668fd4..3e3f0fa900 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit 51e2668fd4e6416f8ad6292e846e177e7d3859bd +Subproject commit 3e3f0fa900f68a1d632d2fac51b8a14a35dcb4b4