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 */ 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