Increased timeout for lwip waiting netif_is_link_up

Cellular PPP connect fails too often if timeout is 15s so increased to 60 seconds.
Tested to be enough with BG96 and MTB_MTS_DRAGONFLY.
pull/9935/head
Teppo Järvelin 2019-03-05 12:08:35 +02:00
parent 5c24ffefa4
commit 5680ce5f56
2 changed files with 2 additions and 1 deletions

View File

@ -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 (blocking) {
if (osSemaphoreAcquire(linked, 15000) != osOK) {
if (osSemaphoreAcquire(linked, LINK_TIMEOUT * 1000) != osOK) {
if (ppp) {
(void) ppp_lwip_disconnect(hw);
}

View File

@ -58,6 +58,7 @@
#endif
#define DHCP_TIMEOUT 60
#define LINK_TIMEOUT 60
#define PREF_IPV4 1
#define PREF_IPV6 2