From 878bbc65ad0083ca0ff0d5a9acc7a262355b60bc Mon Sep 17 00:00:00 2001
From: francescomani <email@francescomani.it>
Date: Mon, 2 Dec 2024 10:11:28 +0100
Subject: [PATCH] assertion for handling of RO mask

---
 openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c b/openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c
index 7996980884d..df9290ec3b4 100644
--- a/openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c
+++ b/openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c
@@ -418,6 +418,9 @@ static void ra_resource_selection(NR_UE_MAC_INST_t *mac)
   // setting the RA ssb value as the progressive number of SSB transmitted
   // non-transmitted SSBs are not taken into account
   ra->ra_ssb = mac->ssb_list.nb_ssb_per_index[ssb];
+
+  // TODO not sure how to handle the RO mask when it is limiting the RO occasions
+  AssertFatal(ra->ro_mask_index <= 0, "Handling of RACH occasion masking indication not implemented\n");
 }
 
 static bool check_mixed_slot_prach(frame_structure_t *fs, int slot, int start_prach, int end_prach)
-- 
GitLab