Skip to content

Commit ed5ea32

Browse files
Cruz Monrreal IICruz Monrreal II
authored andcommitted
Merge pull request ARMmbed#9935 from jarvte/lwip_timeout_bringup_link
Increased timeout for lwip waiting netif_is_link_up
2 parents edf39cb + 5680ce5 commit ed5ea32

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

features/lwipstack/LWIPInterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ nsapi_error_t LWIP::Interface::bringup(bool dhcp, const char *ip, const char *ne
647647

648648
if (!netif_is_link_up(&netif)) {
649649
if (blocking) {
650-
if (osSemaphoreAcquire(linked, 15000) != osOK) {
650+
if (osSemaphoreAcquire(linked, LINK_TIMEOUT * 1000) != osOK) {
651651
if (ppp) {
652652
(void) ppp_lwip_disconnect(hw);
653653
}

features/lwipstack/lwipopts.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
#endif
5959

6060
#define DHCP_TIMEOUT 60
61+
#define LINK_TIMEOUT 60
6162

6263
#define PREF_IPV4 1
6364
#define PREF_IPV6 2

0 commit comments

Comments
 (0)