Przeglądaj źródła

esp_wifi: implement wifi_reset_mac_wrapper

wuzhenghui 2 lat temu
rodzic
commit
913a0adcfa
1 zmienionych plików z 2 dodań i 3 usunięć
  1. 2 3
      components/esp_wifi/esp32c6/esp_adapter.c

+ 2 - 3
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)