From eec5774f0f4f55fd2294eb4820807fb33fbd2624 Mon Sep 17 00:00:00 2001
From: rmagueta <rmagueta@allbesmart.pt>
Date: Thu, 9 Sep 2021 11:18:45 +0100
Subject: [PATCH] Fix infinite loop in fill_dci_search_candidates

---
 openair2/LAYER2/NR_MAC_UE/nr_ue_dci_configuration.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/openair2/LAYER2/NR_MAC_UE/nr_ue_dci_configuration.c b/openair2/LAYER2/NR_MAC_UE/nr_ue_dci_configuration.c
index a1549af7d1..2b529d7537 100644
--- a/openair2/LAYER2/NR_MAC_UE/nr_ue_dci_configuration.c
+++ b/openair2/LAYER2/NR_MAC_UE/nr_ue_dci_configuration.c
@@ -56,7 +56,7 @@ void fill_dci_search_candidates(NR_SearchSpace_t *ss,fapi_nr_dl_config_dci_dl_pd
   uint8_t aggregation;
   uint8_t number_of_candidates=0;
   int i=0;
-  for (int maxL=16;maxL>0;maxL>>1) {
+  for (int maxL=16;maxL>0;maxL>>=1) {
     find_aggregation_candidates(&aggregation,
                                 &number_of_candidates,
                                 ss,maxL);
-- 
2.26.2