Skip to content

Commit 9ca5383

Browse files
authored
Merge pull request #15311 from skazemi/fix/missing-global-up-callback
Fix missing global up callback in CellularContext
2 parents e6e5083 + 19fddbf commit 9ca5383

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

connectivity/cellular/source/framework/device/CellularContext.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,12 @@ void CellularContext::do_connect_with_retry()
156156
rtos::ThisThread::sleep_for(_retry_timeout_array[_retry_count] * 1s);
157157
do_connect();
158158
if (_cb_data.error == NSAPI_ERROR_OK) {
159+
#if !NSAPI_PPP_AVAILABLE
160+
if (!_nonip_req && !_cp_in_use) { // don't validate if non-ip case
161+
validate_ip_address();
162+
}
163+
call_network_cb(NSAPI_STATUS_GLOBAL_UP);
164+
#endif
159165
return;
160166
}
161167
_retry_count++;

0 commit comments

Comments
 (0)