Commit 1f313db0 authored by Guido Casati's avatar Guido Casati

RRC: add only DRBs to add/mod in createDRBlist

Do not add PDU Session with status higher than PDU_SESSION_STATUS_TOMODIFY
which means, do not add "failed" or "to release" PDU Sessions.
parent be9e7987
...@@ -366,6 +366,10 @@ NR_DRB_ToAddModList_t *createDRBlist(gNB_RRC_UE_t *ue, bool reestablish, bool do ...@@ -366,6 +366,10 @@ NR_DRB_ToAddModList_t *createDRBlist(gNB_RRC_UE_t *ue, bool reestablish, bool do
LOG_D(NR_RRC, "PDU Session %d not found, skip\n", drb->pdusession_id); LOG_D(NR_RRC, "PDU Session %d not found, skip\n", drb->pdusession_id);
continue; continue;
} }
if (pduSession->status > PDU_SESSION_STATUS_TOMODIFY) {
LOG_D(NR_RRC, "PDU Session %d is not to add/mod\n", drb->pdusession_id);
continue;
}
pdusession_t *session = &pduSession->param; pdusession_t *session = &pduSession->param;
NR_DRB_ToAddMod_t *drb_ToAddMod = calloc_or_fail(1, sizeof(*drb_ToAddMod)); NR_DRB_ToAddMod_t *drb_ToAddMod = calloc_or_fail(1, sizeof(*drb_ToAddMod));
drb_ToAddMod->drb_Identity = drb->drb_id; drb_ToAddMod->drb_Identity = drb->drb_id;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment