From f63ac3f1e4a836476ee85eeb76fb3763e9c5f990 Mon Sep 17 00:00:00 2001 From: francescomani Date: Wed, 23 Apr 2025 17:48:33 +0200 Subject: [PATCH 1/2] asserting if the SIB1 slot is not downlink --- openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_bch.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_bch.c b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_bch.c index 71ebc7d8a9..722fd439d8 100644 --- a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_bch.c +++ b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_bch.c @@ -604,6 +604,9 @@ void schedule_nr_sib1(module_id_t module_idP, (type0_PDCCH_CSS_config->num_rbs > 0) && (type0_PDCCH_CSS_config->active == true)) { + AssertFatal(is_dl_slot(slotP, &gNB_mac->frame_structure), + "Trying to schedule SIB1 in slot %d which is not DL. Check searchSpaceZero configuration.\n", + slotP); const int n_slots_frame = gNB_mac->frame_structure.numb_slots_frame; int beam_index = get_fapi_beamforming_index(gNB_mac, i); NR_beam_alloc_t beam = beam_allocation_procedure(&gNB_mac->beam_info, frameP, slotP, beam_index, n_slots_frame); From 2e9f5a77898fbc8606e2a2183be8d9e70087c93a Mon Sep 17 00:00:00 2001 From: francescomani Date: Wed, 23 Apr 2025 18:14:43 +0200 Subject: [PATCH 2/2] asserting if the otherSIB slot is not downlink --- openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_bch.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_bch.c b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_bch.c index 722fd439d8..5213854a16 100644 --- a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_bch.c +++ b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_bch.c @@ -708,6 +708,9 @@ static void other_sib_sched_control(module_id_t module_idP, int payload_idx) { gNB_MAC_INST *gNB_mac = RC.nrmac[module_idP]; + AssertFatal(is_dl_slot(slot, &gNB_mac->frame_structure), + "Trying to schedule otherSIB in slot %d which is not DL. Wrong Configuration\n", + slot); NR_ServingCellConfigCommon_t *scc = gNB_mac->common_channels[0].ServingCellConfigCommon; int n_slots_frame = gNB_mac->frame_structure.numb_slots_frame; NR_beam_alloc_t beam = beam_allocation_procedure(&gNB_mac->beam_info, frame, slot, beam_index, n_slots_frame);