diff --git a/components/esp_event/event_send.c b/components/esp_event/event_send.c index 62c0513952..20098bc142 100644 --- a/components/esp_event/event_send.c +++ b/components/esp_event/event_send.c @@ -94,6 +94,9 @@ static system_event_id_t esp_event_legacy_wifi_event_id(int32_t event_id) case WIFI_EVENT_FTM_REPORT: return SYSTEM_EVENT_FTM_REPORT; + case WIFI_EVENT_STA_BEACON_TIMEOUT: + return SYSTEM_EVENT_STA_BEACON_TIMEOUT; + default: ESP_LOGE(TAG, "invalid wifi event id %d", event_id); return SYSTEM_EVENT_MAX; diff --git a/components/esp_event/include/esp_event_legacy.h b/components/esp_event/include/esp_event_legacy.h index ddcb194a6b..021ac4075b 100644 --- a/components/esp_event/include/esp_event_legacy.h +++ b/components/esp_event/include/esp_event_legacy.h @@ -50,6 +50,7 @@ typedef enum { SYSTEM_EVENT_AP_PROBEREQRECVED, /*!< Receive probe request packet in soft-AP interface */ SYSTEM_EVENT_ACTION_TX_STATUS, /*!< Receive status of Action frame transmitted */ SYSTEM_EVENT_ROC_DONE, /*!< Indicates the completion of Remain-on-Channel operation status */ + SYSTEM_EVENT_STA_BEACON_TIMEOUT, /*!< ESP32 station beacon timeout */ SYSTEM_EVENT_FTM_REPORT, /*!< Receive report of FTM procedure */ SYSTEM_EVENT_GOT_IP6, /*!< ESP32 station or ap or ethernet interface v6IP addr is preferred */ SYSTEM_EVENT_ETH_START, /*!< ESP32 ethernet start */ diff --git a/components/esp_wifi/include/esp_wifi_types.h b/components/esp_wifi/include/esp_wifi_types.h index 138ab92229..f159857c02 100644 --- a/components/esp_wifi/include/esp_wifi_types.h +++ b/components/esp_wifi/include/esp_wifi_types.h @@ -599,6 +599,8 @@ typedef enum { WIFI_EVENT_ACTION_TX_STATUS, /**< Status indication of Action Tx operation */ WIFI_EVENT_ROC_DONE, /**< Remain-on-Channel operation complete */ + WIFI_EVENT_STA_BEACON_TIMEOUT, /**< ESP32 station beacon timeout */ + WIFI_EVENT_MAX, /**< Invalid WiFi event ID */ } wifi_event_t; diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib index 0b095c5ef4..91bb607df5 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit 0b095c5ef43572759164eb5347923d7285af25dc +Subproject commit 91bb607df544fb5499a7ae21ba5c32c5d731ea01