Przeglądaj źródła

esp_wifi: Add beacon timeout event
Update TBTT when rx probe respones after beacon timeout.

xiehang 4 lat temu
rodzic
commit
37567dcf2a

+ 3 - 0
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;

+ 1 - 0
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 */

+ 2 - 0
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;
 

+ 1 - 1
components/esp_wifi/lib

@@ -1 +1 @@
-Subproject commit 0b095c5ef43572759164eb5347923d7285af25dc
+Subproject commit 91bb607df544fb5499a7ae21ba5c32c5d731ea01