From 4a518335bb3b9bf1d05640bf79cab6eccad7af5f Mon Sep 17 00:00:00 2001 From: luis_pereira87 Date: Thu, 22 Dec 2022 18:15:48 +0000 Subject: [PATCH] Prevent Msg3 to be scheduled in downlink slot when nrofUplinkSymbols = 0 and DDDSU --- openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c index 35850a1a2d..a44eb36c1f 100644 --- a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c +++ b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c @@ -894,11 +894,13 @@ void nr_get_Msg3alloc(module_id_t module_id, uint8_t k2 = 0; if (frame_type == TDD) { int msg3_slot = get_first_ul_slot(tdd->nrofDownlinkSlots, tdd->nrofDownlinkSymbols, tdd->nrofUplinkSymbols); - if (tdd->nrofUplinkSymbols < 3) - msg3_slot++; // we can't trasmit msg3 in mixed slot if there are less than 3 symbols - else { - Msg3maxsymb = tdd->nrofUplinkSymbols; - Msg3start = 14 - tdd->nrofUplinkSymbols; + if (tdd->nrofUplinkSymbols != 0) { + if (tdd->nrofUplinkSymbols < 3) + msg3_slot++; // we can't trasmit msg3 in mixed slot if there are less than 3 symbols + else { + Msg3maxsymb = tdd->nrofUplinkSymbols; + Msg3start = 14 - tdd->nrofUplinkSymbols; + } } const int nb_periods_per_frame = get_nb_periods_per_frame(tdd->dl_UL_TransmissionPeriodicity); const int nb_slots_per_period = ((1<