From 2b63725383b821992bf06ac43f9b95c80e2a5bc5 Mon Sep 17 00:00:00 2001 From: "wangtao@espressif.com" Date: Fri, 11 Oct 2024 11:35:25 +0800 Subject: [PATCH] feat(wifi): support esp32c2 eco4 wifi bringup sync head --- components/esp_wifi/include/esp_wifi_types_generic.h | 1 + components/esp_wifi/src/wifi_init.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/components/esp_wifi/include/esp_wifi_types_generic.h b/components/esp_wifi/include/esp_wifi_types_generic.h index 37e6b203cb..15a9585d96 100644 --- a/components/esp_wifi/include/esp_wifi_types_generic.h +++ b/components/esp_wifi/include/esp_wifi_types_generic.h @@ -805,6 +805,7 @@ typedef enum { WIFI_EVENT_STA_BEACON_TIMEOUT, /**< Station beacon timeout */ WIFI_EVENT_CONNECTIONLESS_MODULE_WAKE_INTERVAL_START, /**< Connectionless module wake interval start */ + /* Add next events after this only */ WIFI_EVENT_AP_WPS_RG_SUCCESS, /**< Soft-AP wps succeeds in registrar mode */ WIFI_EVENT_AP_WPS_RG_FAILED, /**< Soft-AP wps fails in registrar mode */ diff --git a/components/esp_wifi/src/wifi_init.c b/components/esp_wifi/src/wifi_init.c index 87d90d630b..1b98a48a7a 100644 --- a/components/esp_wifi/src/wifi_init.c +++ b/components/esp_wifi/src/wifi_init.c @@ -597,3 +597,10 @@ void esp32c2_eco4_rom_ptr_init(void) } #endif #endif + +#ifndef CONFIG_ESP_WIFI_SLP_SAMPLE_BEACON_FEATURE +void pm_beacon_offset_funcs_init(void) +{ + /* Do not remove, stub to overwrite weak link in Wi-Fi Lib */ +} +#endif