File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
connectivity/cellular/source/framework/AT Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -544,6 +544,7 @@ nsapi_error_t AT_CellularContext::find_and_activate_context()
544
544
delete_current_context ();
545
545
} else if (err == NSAPI_ERROR_OK) {
546
546
_is_context_active = true ;
547
+ _is_context_activated = true ;
547
548
}
548
549
549
550
_at.unlock ();
@@ -755,8 +756,9 @@ void AT_CellularContext::check_and_deactivate_context()
755
756
rat = reg_params._act ;
756
757
// 3GPP TS 27.007:
757
758
// For EPS, if an attempt is made to disconnect the last PDN connection, then the MT responds with ERROR
758
- if (_is_context_active && (rat < CellularNetwork::RAT_E_UTRAN || active_contexts_count > 1 )) {
759
+ if (_is_context_active && (rat < CellularNetwork::RAT_E_UTRAN || rat == CellularNetwork::RAT_NB1 || active_contexts_count > 1 )) {
759
760
_at.clear_error ();
761
+
760
762
deactivate_context ();
761
763
}
762
764
You can’t perform that action at this time.
0 commit comments