From 9286f0cd90e866c62858b35c95740492bf12d31c Mon Sep 17 00:00:00 2001 From: Angelo Athanassopoulos Date: Tue, 6 Sep 2022 19:16:16 +0200 Subject: [PATCH] NR RRC - Removal of the active drb assignment in next_available_drb function --- openair2/RRC/NR/rrc_gNB_drbs.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/openair2/RRC/NR/rrc_gNB_drbs.c b/openair2/RRC/NR/rrc_gNB_drbs.c index 876342ec40..b272dc2be8 100644 --- a/openair2/RRC/NR/rrc_gNB_drbs.c +++ b/openair2/RRC/NR/rrc_gNB_drbs.c @@ -108,11 +108,8 @@ NR_DRB_ToAddMod_t *generateDRB(gNB_RRC_UE_t *ue, uint8_t next_available_drb(gNB_RRC_UE_t *ue, uint8_t pdusession_id) { uint8_t drb_id; for (drb_id = 0; drb_id < NGAP_MAX_DRBS_PER_UE; drb_id++) { - if(ue->DRB_active[drb_id] == DRB_INACTIVE) { - ue->pduSession[pdusession_id].param.used_drbs[drb_id] = DRB_ACTIVE; - ue->DRB_active[drb_id] = DRB_ACTIVE; + if(ue->DRB_active[drb_id] == DRB_INACTIVE) return drb_id+1; - } } /* From this point, we handle the case that all DRBs are already used by the UE. */ LOG_E(RRC, "Error - All the DRBs are used - Handle this\n");