From 82a951447aa90fc7b5a5419c725096b220b6314d Mon Sep 17 00:00:00 2001 From: "wangtao@espressif.com" Date: Tue, 6 Aug 2024 20:01:26 +0800 Subject: [PATCH] feat(wifi): update esp32c2 eco4 wifi lib --- components/esp_wifi/include/esp_private/wifi_types.h | 2 +- components/esp_wifi/include/esp_wifi_types_generic.h | 1 + components/esp_wifi/lib | 2 +- components/esp_wifi/src/wifi_init.c | 7 +++++++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/components/esp_wifi/include/esp_private/wifi_types.h b/components/esp_wifi/include/esp_private/wifi_types.h index 816d06a691..22fee86b0e 100644 --- a/components/esp_wifi/include/esp_private/wifi_types.h +++ b/components/esp_wifi/include/esp_private/wifi_types.h @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ diff --git a/components/esp_wifi/include/esp_wifi_types_generic.h b/components/esp_wifi/include/esp_wifi_types_generic.h index 773c5b374c..5e2f38b439 100644 --- a/components/esp_wifi/include/esp_wifi_types_generic.h +++ b/components/esp_wifi/include/esp_wifi_types_generic.h @@ -830,6 +830,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/lib b/components/esp_wifi/lib index e66a47c0ba..9e3b687fe2 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit e66a47c0ba36a6cf4edfe0dbf4d21588d07b374e +Subproject commit 9e3b687fe2ee597c8749e5ec760f51f04faf9633 diff --git a/components/esp_wifi/src/wifi_init.c b/components/esp_wifi/src/wifi_init.c index 335514da32..c98461c075 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