Skip to content

Commit 90d7748

Browse files
author
Ari Parkkila
committed
Cellular: Fix PPP to wait until connected event from (LWIP) PPP
1 parent 2bde658 commit 90d7748

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

features/cellular/framework/device/CellularContext.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,14 @@ void CellularContext::do_connect_with_retry()
119119
}
120120
do_connect();
121121
if (_cb_data.error == NSAPI_ERROR_OK) {
122+
#if !NSAPI_PPP_AVAILABLE
122123
// Some modems don't get the ip address right after connect so we must
123124
// validate it but even if we don't get ip we still send NSAPI_STATUS_GLOBAL_UP
124125
if (!_nonip_req && !_cp_in_use) { // don't validate if non-ip case
125126
validate_ip_address();
126127
}
127128
call_network_cb(NSAPI_STATUS_GLOBAL_UP);
129+
#endif
128130
return;
129131
}
130132

0 commit comments

Comments
 (0)