mirror of https://github.com/ARMmbed/mbed-os.git
Cellular: Fix PPP to wait until connected event from (LWIP) PPP
parent
2bde6581a6
commit
90d7748514
|
@ -119,12 +119,14 @@ void CellularContext::do_connect_with_retry()
|
||||||
}
|
}
|
||||||
do_connect();
|
do_connect();
|
||||||
if (_cb_data.error == NSAPI_ERROR_OK) {
|
if (_cb_data.error == NSAPI_ERROR_OK) {
|
||||||
|
#if !NSAPI_PPP_AVAILABLE
|
||||||
// Some modems don't get the ip address right after connect so we must
|
// Some modems don't get the ip address right after connect so we must
|
||||||
// validate it but even if we don't get ip we still send NSAPI_STATUS_GLOBAL_UP
|
// validate it but even if we don't get ip we still send NSAPI_STATUS_GLOBAL_UP
|
||||||
if (!_nonip_req && !_cp_in_use) { // don't validate if non-ip case
|
if (!_nonip_req && !_cp_in_use) { // don't validate if non-ip case
|
||||||
validate_ip_address();
|
validate_ip_address();
|
||||||
}
|
}
|
||||||
call_network_cb(NSAPI_STATUS_GLOBAL_UP);
|
call_network_cb(NSAPI_STATUS_GLOBAL_UP);
|
||||||
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue