Skip to content

Commit 0604c49

Browse files
committed
Apply suggestion from review
1 parent 9f24c04 commit 0604c49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

connectivity/cellular/source/framework/AT/AT_CellularContext.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -756,11 +756,11 @@ void AT_CellularContext::check_and_deactivate_context()
756756
rat = reg_params._act;
757757
// 3GPP TS 27.007:
758758
// For EPS, if an attempt is made to disconnect the last PDN connection, then the MT responds with ERROR
759-
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)) {
760760
_at.clear_error();
761-
}
762761

763-
deactivate_context();
762+
deactivate_context();
763+
}
764764

765765
if (_new_context_set) {
766766
delete_current_context();

0 commit comments

Comments
 (0)