mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
5c24ffefa4
commit
5680ce5f56
|
|
@ -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