From d23be33b0d209703c3389df32ea7264fefbfd149 Mon Sep 17 00:00:00 2001 From: xiehang Date: Fri, 19 Mar 2021 15:29:07 +0800 Subject: [PATCH 1/2] esp_wifi: Add beacon timeout event --- components/esp_event/event_send.c | 3 +++ components/esp_event/include/esp_event_legacy.h | 1 + components/esp_wifi/include/esp_wifi_types.h | 1 + 3 files changed, 5 insertions(+) diff --git a/components/esp_event/event_send.c b/components/esp_event/event_send.c index 80fe464a81..6118cf9ca1 100644 --- a/components/esp_event/event_send.c +++ b/components/esp_event/event_send.c @@ -52,6 +52,9 @@ static system_event_id_t esp_event_legacy_wifi_event_id(int32_t event_id) case WIFI_EVENT_STA_AUTHMODE_CHANGE: return SYSTEM_EVENT_STA_AUTHMODE_CHANGE; + case WIFI_EVENT_STA_BEACON_TIMEOUT: + return SYSTEM_EVENT_STA_BEACON_TIMEOUT; + case WIFI_EVENT_STA_WPS_ER_SUCCESS: return SYSTEM_EVENT_STA_WPS_ER_SUCCESS; diff --git a/components/esp_event/include/esp_event_legacy.h b/components/esp_event/include/esp_event_legacy.h index ba74ec776c..a7611f39bd 100644 --- a/components/esp_event/include/esp_event_legacy.h +++ b/components/esp_event/include/esp_event_legacy.h @@ -36,6 +36,7 @@ typedef enum { SYSTEM_EVENT_STA_AUTHMODE_CHANGE, /*!< the auth mode of AP connected by ESP32 station changed */ SYSTEM_EVENT_STA_GOT_IP, /*!< ESP32 station got IP from connected AP */ SYSTEM_EVENT_STA_LOST_IP, /*!< ESP32 station lost IP and the IP is reset to 0 */ + SYSTEM_EVENT_STA_BEACON_TIMEOUT, /*!< ESP32 station beacon timeout */ SYSTEM_EVENT_STA_WPS_ER_SUCCESS, /*!< ESP32 station wps succeeds in enrollee mode */ SYSTEM_EVENT_STA_WPS_ER_FAILED, /*!< ESP32 station wps fails in enrollee mode */ SYSTEM_EVENT_STA_WPS_ER_TIMEOUT, /*!< ESP32 station wps timeout in enrollee mode */ diff --git a/components/esp_wifi/include/esp_wifi_types.h b/components/esp_wifi/include/esp_wifi_types.h index ad21425d77..23d9ce6004 100644 --- a/components/esp_wifi/include/esp_wifi_types.h +++ b/components/esp_wifi/include/esp_wifi_types.h @@ -508,6 +508,7 @@ typedef enum { WIFI_EVENT_STA_CONNECTED, /**< ESP32 station connected to AP */ WIFI_EVENT_STA_DISCONNECTED, /**< ESP32 station disconnected from AP */ WIFI_EVENT_STA_AUTHMODE_CHANGE, /**< the auth mode of AP connected by ESP32 station changed */ + WIFI_EVENT_STA_BEACON_TIMEOUT, /**< ESP32 station beacon timeout */ WIFI_EVENT_STA_WPS_ER_SUCCESS, /**< ESP32 station wps succeeds in enrollee mode */ WIFI_EVENT_STA_WPS_ER_FAILED, /**< ESP32 station wps fails in enrollee mode */ From 2cdf9b5d9dfe8c2a6c1d7a30a0a006dfa078e58d Mon Sep 17 00:00:00 2001 From: zhangyanjiao Date: Mon, 6 Dec 2021 15:41:39 +0800 Subject: [PATCH 2/2] esp_wifi: 1. Fix airkiss and esptouch find channel crash issue 2. Fix issue of softAP not initating 4-way handshake if max length passphrase is set 3. Fix issue of esptouch find hidden AP fail 4. Clear hostpot bss when auth timeout happens 5. Fix not connect to open AP when WPA3 auth fail 6. Fix issue with hidden AP scans after connecting AP 7. Fix the watchdog issue when receiving action frame 8. Fix set config return value error 9. Fix the issue of reason code change from 15 to 204 when provide wrong password 10. Fix ampdu age timer memory leak 11. Fix issue of esp_wifi_80211_tx 12. Fix crash issue in presence of WEP AP 13. Fix the MIC comparison logic AES-128-CMAC decryption 14. Fix issue of setting incorrect log_length of NVS misc log 15. Fix SoftAP crash by handling public action frames 16. Fix a bug that Wi-Fi stack may crash when receive AMSDU length bigger then 3200 --- components/esp_wifi/lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib index fd372a8b7e..06476afc57 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit fd372a8b7e95a63e5f3369bd089fa62dd9541259 +Subproject commit 06476afc5786185031cd1d0488a21086a3a89144