From c92899f70482043812ffc13d5ef0ec8d2a4acfb6 Mon Sep 17 00:00:00 2001
From: Raymond Knopp <raymond.knopp@eurecom.fr>
Date: Wed, 13 Oct 2021 15:54:27 +0200
Subject: [PATCH] blacklisting modification in ULSCH scheduler.

---
 openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
index f3494fc3d57..e6ad25ade54 100644
--- a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
+++ b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
@@ -1285,8 +1285,10 @@ bool nr_fr1_ulsch_preprocessor(module_id_t module_id, frame_t frame, sub_frame_t
   const uint16_t symb = ((1 << nrOfSymbols) - 1) << startSymbolIndex;
 
   int st = 0, e = 0, len = 0;
+  for (int i = 0; i < bwpSize; i++) 
+    if (RC.nrmac[module_id]->ulprbbl[i] == 1) vrb_map_UL[i]=1;
+
   for (int i = 0; i < bwpSize; i++) {
-    if (RC.nrmac[module_id]->ulprbbl[i] == 1) vrb_map_UL[i]=1;	  
     while ((vrb_map_UL[i] & symb) != 0 && i < bwpSize)
       i++;
     st = i;
-- 
GitLab