Skip to content

Commit 8a6c1df

Browse files
jack0cespressif-bot
authored andcommitted
esp32: backport several WiFi bug fixes to v3.1
Backport following bug fixes to v3.1: 1. Bug fix of may connect to wrong AP in all channel scan 2. Station state machine change and fix ap loss 3. Add compatible to ccmp encryption 4. Update libphy.a to v3960: 4.1 Decrease phy_init time from 900us to 347us in sleep wakeup 4.2 Fix RX STBC initialization 4.3 Modify set_chan function to fix interrupt watchdog issue 5. Fix several wpa2 enterprise issues 5.1 Fix heap corrupted bug 5.2 Fix memory leak bug 5.3 Make wpa2 enterprise thread-safe Closes #1569 6. Bugfix of coex wifi pm
1 parent 7e02cd3 commit 8a6c1df

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

components/esp32/include/esp_wifi_types.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ typedef struct {
186186
wifi_auth_mode_t authmode; /**< The weakest authmode to accept in the fast scan mode */
187187
}wifi_fast_scan_threshold_t;
188188

189+
typedef wifi_fast_scan_threshold_t wifi_scan_threshold_t; /**< wifi_fast_scan_threshold_t only used in fast scan mode once, now it enabled in all channel scan, the wifi_fast_scan_threshold_t will be remove in version 4.0 */
190+
189191
typedef enum {
190192
WIFI_PS_NONE, /**< No power save */
191193
WIFI_PS_MIN_MODEM, /**< Minimum modem power saving. In this mode, station wakes up to receive beacon every DTIM period */
@@ -226,7 +228,7 @@ typedef struct {
226228
uint8_t channel; /**< channel of target AP. Set to 1~13 to scan starting from the specified channel before connecting to AP. If the channel of AP is unknown, set it to 0.*/
227229
uint16_t listen_interval; /**< Listen interval for ESP32 station to receive beacon when WIFI_PS_MAX_MODEM is set. Units: AP beacon intervals. Defaults to 3 if set to 0. */
228230
wifi_sort_method_t sort_method; /**< sort the connect AP in the list by rssi or security mode */
229-
wifi_fast_scan_threshold_t threshold; /**< When scan_method is set to WIFI_FAST_SCAN, only APs which have an auth mode that is more secure than the selected auth mode and a signal stronger than the minimum RSSI will be used. */
231+
wifi_scan_threshold_t threshold; /**< When scan_method is set, only APs which have an auth mode that is more secure than the selected auth mode and a signal stronger than the minimum RSSI will be used. */
230232
} wifi_sta_config_t;
231233

232234
/** @brief Configuration data for ESP32 AP or STA.

0 commit comments

Comments
 (0)