From 3e66e4696a81ccd9be973a4b9379ee20f0d8e90b Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Wed, 4 Jan 2017 12:10:47 -0600 Subject: [PATCH] lwip - Fixed lwip connected state after bringup with static ips Thanks to @YixiaoLi for noting this was incorrect --- features/FEATURE_LWIP/lwip-interface/lwip_stack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/FEATURE_LWIP/lwip-interface/lwip_stack.c b/features/FEATURE_LWIP/lwip-interface/lwip_stack.c index 194bc454c9..9fb534282f 100644 --- a/features/FEATURE_LWIP/lwip-interface/lwip_stack.c +++ b/features/FEATURE_LWIP/lwip-interface/lwip_stack.c @@ -495,7 +495,6 @@ nsapi_error_t mbed_lwip_bringup(bool dhcp, const char *ip, const char *netmask, if (ret == SYS_ARCH_TIMEOUT) { return NSAPI_ERROR_DHCP_FAILURE; } - lwip_connected = true; } #if ADDR_TIMEOUT @@ -510,6 +509,7 @@ nsapi_error_t mbed_lwip_bringup(bool dhcp, const char *ip, const char *netmask, add_dns_addr(&lwip_netif); #endif + lwip_connected = true; return 0; }