mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-20 00:36:01 -04:00
Merge branch 'mesh/bugfix_fix_no_ip_issue_v4.4' into 'release/v4.4'
esp_wifi_mesh: fix the device can not receive IP_EVENT_STA_GOT_IP when the router restarted(backport_v4.4) See merge request espressif/esp-idf!16343
This commit is contained in:
commit
f01fa89404
@ -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();
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user