From afc889e9347a21e81ada0d9f483ce63a843d78f4 Mon Sep 17 00:00:00 2001 From: wuzhenghui Date: Mon, 5 Jun 2023 10:31:49 +0800 Subject: [PATCH] esp_wifi: implement wifi_reset_mac_wrapper --- components/esp_wifi/esp32c6/esp_adapter.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/esp_wifi/esp32c6/esp_adapter.c b/components/esp_wifi/esp32c6/esp_adapter.c index 0583835f3945..942664e72869 100644 --- a/components/esp_wifi/esp32c6/esp_adapter.c +++ b/components/esp_wifi/esp32c6/esp_adapter.c @@ -28,6 +28,7 @@ #include "esp_event.h" #include "esp_heap_caps.h" #include "esp_timer.h" +#include "esp_private/esp_modem_clock.h" #include "esp_private/wifi_os_adapter.h" #include "esp_private/wifi.h" #include "esp_phy_init.h" @@ -297,9 +298,7 @@ static void IRAM_ATTR timer_arm_wrapper(void *timer, uint32_t tmout, bool repeat static void wifi_reset_mac_wrapper(void) { - // TODO: IDF-5713 - modem_clock_wifi_mac_reset(); - ESP_LOGW(TAG, "wifi_reset_mac_wrapper() has not been implemented yet"); + modem_clock_module_mac_reset(PERIPH_WIFI_MODULE); } static void wifi_clock_enable_wrapper(void)