Commit 6e5511b2 authored by Cedric Roux's avatar Cedric Roux

bugfix: use an array of size NGAP_MAX_DRBS_PER_UE for drb_priority

It may happen that the drb to configure is not 1, so we may need
this array in rrc_gNB_generate_dedicatedRRCReconfiguration().

Not tested, this commit is mostly to harmonize with other places in
openair2/RRC/NR/rrc_gNB.c
parent bf102301
...@@ -669,7 +669,7 @@ rrc_gNB_generate_dedicatedRRCReconfiguration( ...@@ -669,7 +669,7 @@ rrc_gNB_generate_dedicatedRRCReconfiguration(
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
{ {
gNB_RRC_INST *rrc = RC.nrrrc[ctxt_pP->module_id]; gNB_RRC_INST *rrc = RC.nrrrc[ctxt_pP->module_id];
long drb_priority[1] = {13}; // For now, we assume only one drb per pdu sessions with a default preiority (will be dynamique in future) long drb_priority[NGAP_MAX_DRBS_PER_UE];
NR_CellGroupConfig_t *cellGroupConfig = NULL; NR_CellGroupConfig_t *cellGroupConfig = NULL;
int xid = -1; int xid = -1;
...@@ -701,6 +701,7 @@ rrc_gNB_generate_dedicatedRRCReconfiguration( ...@@ -701,6 +701,7 @@ rrc_gNB_generate_dedicatedRRCReconfiguration(
} }
xid = ue_p->pduSession[j].xid; xid = ue_p->pduSession[j].xid;
drb_priority[DRB_config->drb_Identity - 1] = 13; // For now, we assume only one drb per pdu sessions with a default preiority (will be dynamique in future)
} }
/* If list is empty free the list and reset the address */ /* If list is empty free the list and reset the address */
......
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