mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #9935 from jarvte/lwip_timeout_bringup_link
Increased timeout for lwip waiting netif_is_link_uppull/10081/head
commit
e697d3770d
|
|
@ -647,7 +647,7 @@ nsapi_error_t LWIP::Interface::bringup(bool dhcp, const char *ip, const char *ne
|
||||||
|
|
||||||
if (!netif_is_link_up(&netif)) {
|
if (!netif_is_link_up(&netif)) {
|
||||||
if (blocking) {
|
if (blocking) {
|
||||||
if (osSemaphoreAcquire(linked, 15000) != osOK) {
|
if (osSemaphoreAcquire(linked, LINK_TIMEOUT * 1000) != osOK) {
|
||||||
if (ppp) {
|
if (ppp) {
|
||||||
(void) ppp_lwip_disconnect(hw);
|
(void) ppp_lwip_disconnect(hw);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DHCP_TIMEOUT 60
|
#define DHCP_TIMEOUT 60
|
||||||
|
#define LINK_TIMEOUT 60
|
||||||
|
|
||||||
#define PREF_IPV4 1
|
#define PREF_IPV4 1
|
||||||
#define PREF_IPV6 2
|
#define PREF_IPV6 2
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue