From 5ed4a3dbfbb117eb46f05937118ce4c86473df16 Mon Sep 17 00:00:00 2001 From: shenjun Date: Thu, 23 Dec 2021 11:19:19 +0800 Subject: [PATCH] esp_wifi_mesh: fix the device can not receive IP_EVENT_STA_GOT_IP when the router restarted 1. fix the device can not receive IP_EVENT_STA_GOT_IP when the router restarted 2. fix the issue that layer2 node connect to lower-layer node when FIXED-ROOT root disappeared --- components/esp_wifi/lib | 2 +- examples/mesh/internal_communication/main/mesh_main.c | 1 + examples/mesh/manual_networking/main/mesh_main.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib index 402432bf02..e1319cd038 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit 402432bf020a8c6e4d560fe92b7ec1d7f32396fb +Subproject commit e1319cd03836c9714c5b3bb01fde8535560a2d10 diff --git a/examples/mesh/internal_communication/main/mesh_main.c b/examples/mesh/internal_communication/main/mesh_main.c index 595ab3712b..38ad6f5cc5 100644 --- a/examples/mesh/internal_communication/main/mesh_main.c +++ b/examples/mesh/internal_communication/main/mesh_main.c @@ -245,6 +245,7 @@ void mesh_event_handler(void *arg, esp_event_base_t event_base, mesh_connected_indicator(mesh_layer); is_mesh_connected = true; if (esp_mesh_is_root()) { + esp_netif_dhcpc_stop(netif_sta); esp_netif_dhcpc_start(netif_sta); } esp_mesh_comm_p2p_start(); diff --git a/examples/mesh/manual_networking/main/mesh_main.c b/examples/mesh/manual_networking/main/mesh_main.c index 6bf136e044..3a174c89a0 100644 --- a/examples/mesh/manual_networking/main/mesh_main.c +++ b/examples/mesh/manual_networking/main/mesh_main.c @@ -213,6 +213,7 @@ void mesh_event_handler(void *arg, esp_event_base_t event_base, last_layer = mesh_layer; mesh_connected_indicator(mesh_layer); if (esp_mesh_is_root()) { + esp_netif_dhcpc_stop(netif_sta); esp_netif_dhcpc_start(netif_sta); } }