Merge branch 'mesh/bugfix_fix_layer2_node_connection_issue_v4.2' into 'release/v4.2'

esp_wifi_mesh: fix the issue that layer2 node connect to lower-layer node when FIXED-ROOT root disappeared(backport_v4.2)

See merge request espressif/esp-idf!15730
This commit is contained in:
Jiang Jiang Jian 2022-01-14 05:32:46 +00:00
commit 909db7cd91
3 changed files with 3 additions and 1 deletions

@ -1 +1 @@
Subproject commit 402432bf020a8c6e4d560fe92b7ec1d7f32396fb
Subproject commit e1319cd03836c9714c5b3bb01fde8535560a2d10

View File

@ -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();

View File

@ -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);
}
}