mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
esp_netif: fix esp_netif_stop() to stop DHCP client if configured
This commit is contained in:
parent
d0afdaaf24
commit
064bed710e
@ -622,7 +622,7 @@ static esp_err_t esp_netif_stop_api(esp_netif_api_msg_t *msg)
|
||||
if (ESP_NETIF_DHCP_STOPPED != esp_netif->dhcps_status) {
|
||||
esp_netif->dhcps_status = ESP_NETIF_DHCP_INIT;
|
||||
}
|
||||
} else if (esp_netif->flags&ESP_NETIF_DHCPS) {
|
||||
} else if (esp_netif->flags&ESP_NETIF_DHCPC) {
|
||||
dhcp_release(lwip_netif);
|
||||
dhcp_stop(lwip_netif);
|
||||
dhcp_cleanup(lwip_netif);
|
||||
|
Loading…
x
Reference in New Issue
Block a user