From 6bec6a5b41968f3dd2ff3fb7af29a0605fd53ad2 Mon Sep 17 00:00:00 2001 From: zwx Date: Fri, 15 Dec 2023 18:35:34 +0800 Subject: [PATCH] fix(openthread): fix ot netif destroy netif order issue --- examples/openthread/ot_br/main/esp_ot_br.c | 2 +- examples/openthread/ot_cli/main/esp_ot_cli.c | 2 +- .../ot_sleepy_device/deep_sleep/main/esp_ot_sleepy_device.c | 2 +- .../ot_sleepy_device/light_sleep/main/esp_ot_sleepy_device.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/openthread/ot_br/main/esp_ot_br.c b/examples/openthread/ot_br/main/esp_ot_br.c index 18dea1cec4..4996935c2c 100644 --- a/examples/openthread/ot_br/main/esp_ot_br.c +++ b/examples/openthread/ot_br/main/esp_ot_br.c @@ -92,8 +92,8 @@ static void ot_task_worker(void *aContext) esp_openthread_launch_mainloop(); // Clean up - esp_netif_destroy(openthread_netif); esp_openthread_netif_glue_deinit(); + esp_netif_destroy(openthread_netif); esp_vfs_eventfd_unregister(); vTaskDelete(NULL); } diff --git a/examples/openthread/ot_cli/main/esp_ot_cli.c b/examples/openthread/ot_cli/main/esp_ot_cli.c index 7baf80062d..912881c362 100644 --- a/examples/openthread/ot_cli/main/esp_ot_cli.c +++ b/examples/openthread/ot_cli/main/esp_ot_cli.c @@ -95,8 +95,8 @@ static void ot_task_worker(void *aContext) esp_openthread_launch_mainloop(); // Clean up - esp_netif_destroy(openthread_netif); esp_openthread_netif_glue_deinit(); + esp_netif_destroy(openthread_netif); esp_vfs_eventfd_unregister(); vTaskDelete(NULL); diff --git a/examples/openthread/ot_sleepy_device/deep_sleep/main/esp_ot_sleepy_device.c b/examples/openthread/ot_sleepy_device/deep_sleep/main/esp_ot_sleepy_device.c index 64659f6db9..c771140601 100644 --- a/examples/openthread/ot_sleepy_device/deep_sleep/main/esp_ot_sleepy_device.c +++ b/examples/openthread/ot_sleepy_device/deep_sleep/main/esp_ot_sleepy_device.c @@ -193,8 +193,8 @@ static void ot_task_worker(void *aContext) esp_openthread_launch_mainloop(); // Clean up - esp_netif_destroy(openthread_netif); esp_openthread_netif_glue_deinit(); + esp_netif_destroy(openthread_netif); esp_vfs_eventfd_unregister(); vTaskDelete(NULL); diff --git a/examples/openthread/ot_sleepy_device/light_sleep/main/esp_ot_sleepy_device.c b/examples/openthread/ot_sleepy_device/light_sleep/main/esp_ot_sleepy_device.c index ff5812dcd6..95b5bc2e1d 100644 --- a/examples/openthread/ot_sleepy_device/light_sleep/main/esp_ot_sleepy_device.c +++ b/examples/openthread/ot_sleepy_device/light_sleep/main/esp_ot_sleepy_device.c @@ -129,8 +129,8 @@ static void ot_task_worker(void *aContext) esp_openthread_launch_mainloop(); // Clean up - esp_netif_destroy(openthread_netif); esp_openthread_netif_glue_deinit(); + esp_netif_destroy(openthread_netif); esp_vfs_eventfd_unregister(); vTaskDelete(NULL);