Skip to content

Commit

Permalink
fix for dhcp not asking for address when host if goes down and up again
Browse files Browse the repository at this point in the history
  • Loading branch information
maidnl committed Jun 20, 2024
1 parent 992ed2c commit ef10b70
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions connectivity/lwipstack/source/LWIPInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,11 @@ void LWIP::Interface::netif_link_irq(struct netif *netif)
netif_set_down(&interface->netif);
}
} else {
if(interface->dhcp_started) {
interface->dhcp_started = false;
interface->dhcp_has_to_be_set = true;
dhcp_stop(netif);
}
osSemaphoreRelease(interface->unlinked);
if (netif_is_up(&interface->netif)) {
interface->connected = NSAPI_STATUS_CONNECTING;
Expand Down

0 comments on commit ef10b70

Please sign in to comment.