From 1e63fa41cfa26e417c5f868a8c59edb189822d2f Mon Sep 17 00:00:00 2001 From: Francisco Paisana Date: Tue, 10 Mar 2020 11:57:15 +0000 Subject: [PATCH] made ue_cc_idx int to set to -1 for rar and bc allocs --- lib/include/srslte/phy/phch/dci.h | 4 ++-- srsenb/src/stack/mac/scheduler_grid.cc | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/include/srslte/phy/phch/dci.h b/lib/include/srslte/phy/phch/dci.h index ba977b97d..f57f2d87c 100644 --- a/lib/include/srslte/phy/phch/dci.h +++ b/lib/include/srslte/phy/phch/dci.h @@ -82,7 +82,7 @@ typedef struct SRSLTE_API { uint16_t rnti; srslte_dci_format_t format; srslte_dci_location_t location; - uint32_t ue_cc_idx; + int ue_cc_idx; // Resource Allocation srslte_ra_type_t alloc_type; @@ -133,7 +133,7 @@ typedef struct SRSLTE_API { uint16_t rnti; srslte_dci_format_t format; srslte_dci_location_t location; - uint32_t ue_cc_idx; + int ue_cc_idx; srslte_ra_type2_t type2_alloc; /* 36.213 Table 8.4-2: SRSLTE_RA_PUSCH_HOP_HALF is 0 for < 10 Mhz and 10 for > 10 Mhz. diff --git a/srsenb/src/stack/mac/scheduler_grid.cc b/srsenb/src/stack/mac/scheduler_grid.cc index 301479c2d..4d83bc1ed 100644 --- a/srsenb/src/stack/mac/scheduler_grid.cc +++ b/srsenb/src/stack/mac/scheduler_grid.cc @@ -1000,6 +1000,7 @@ int sf_sched::generate_format1a(uint32_t rb_start, dci->tb[0].rv = rv; dci->format = SRSLTE_DCI_FORMAT1A; dci->rnti = rnti; + dci->ue_cc_idx = -1; return tbs; }