From a0135f76634f038edd334787e554f93b4bb0aa05 Mon Sep 17 00:00:00 2001 From: francescomani Date: Thu, 8 Sep 2022 18:47:16 +0200 Subject: [PATCH] fix for RA beam id --- openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c index 72b7f2a565..f8c50416ad 100644 --- a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c +++ b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c @@ -636,7 +636,7 @@ void nr_initiate_ra_proc(module_id_t module_idP, ra->RA_rnti = ra_rnti; ra->preamble_index = preamble_index; - ra->beam_id = beam_index; + ra->beam_id = cc->ssb_index[beam_index]; LOG_I(NR_MAC, "[gNB %d][RAPROC] CC_id %d Frame %d Activating Msg2 generation in frame %d, slot %d using RA rnti %x SSB, new rnti %04x " @@ -647,7 +647,7 @@ void nr_initiate_ra_proc(module_id_t module_idP, ra->Msg2_frame, ra->Msg2_slot, ra->RA_rnti, - ra->rnti, + ra->rnti, cc->ssb_index[beam_index], i);