From 65c6ed8eeb8e7c21a525b0d5ae3bb9c4347a8682 Mon Sep 17 00:00:00 2001 From: zhangwenxu Date: Fri, 3 Feb 2023 16:27:40 +0800 Subject: [PATCH] openthread: set ot-netif as the default netif for cli example --- examples/openthread/ot_cli/main/esp_ot_cli.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/openthread/ot_cli/main/esp_ot_cli.c b/examples/openthread/ot_cli/main/esp_ot_cli.c index 6645a6aaec..9b7f29ec05 100644 --- a/examples/openthread/ot_cli/main/esp_ot_cli.c +++ b/examples/openthread/ot_cli/main/esp_ot_cli.c @@ -77,6 +77,7 @@ static void ot_task_worker(void *aContext) esp_netif_t *openthread_netif; // Initialize the esp_netif bindings openthread_netif = init_openthread_netif(&config); + esp_netif_set_default_netif(openthread_netif); #if CONFIG_OPENTHREAD_CLI_ESP_EXTENSION esp_cli_custom_command_init();