From 4246b538c946a3015b29d6243e7b729d23714265 Mon Sep 17 00:00:00 2001 From: francescomani Date: Wed, 14 May 2025 17:12:01 +0200 Subject: [PATCH] do not perform beam switching procedures if there is no beam information --- openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c index 03ec701880..5c4ee88a06 100644 --- a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c +++ b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c @@ -3261,6 +3261,9 @@ void reset_beam_status(NR_beam_info_t *beam_info, int frame, int slot, int beam_ void beam_selection_procedures(gNB_MAC_INST *mac, NR_UE_info_t *UE) { + // do not perform beam procedures if there is no beam information + if (!mac->beam_info.beam_allocation) + return; RSRP_report_t *rsrp_report = &UE->UE_sched_ctrl.CSI_report.ssb_rsrp_report; // simple beam switching algorithm -> we select beam with highest RSRP from CSI report int new_bf_index = get_fapi_beamforming_index(mac, rsrp_report->resource_id[0]);