NR RRC - Changed for max DRBs per UE in next_available_drb function

This commit is contained in:
Angelo Athanassopoulos
2022-09-28 11:16:58 +02:00
parent 29e17e3cfc
commit ae9764f914
+1 -1
View File
@@ -116,7 +116,7 @@ uint8_t next_available_drb(gNB_RRC_UE_t *rrc_ue, rnti_t rnti, uint8_t pdusession
ue = nr_ue_new(rnti);
uint8_t drb_id;
for (drb_id = 0; drb_id < MAX_DRBS_PER_UE; drb_id++) {
for (drb_id = 0; drb_id < NGAP_MAX_DRBS_PER_UE; drb_id++) {
if(ue->used_drbs[drb_id] == DRB_INACTIVE && ue->pdus->drbs_established < MAX_DRBS_PER_PDUSESSION) {
ue->pdus->pdu_drbs[ue->pdus->drbs_established] = drb_id; /* Store drb_id to pdusession */
ue->used_drbs[drb_id] = pdusession_id; /* Store the pdusession id that is using that drb */