Commit bfb3796a authored by Francesco Mani's avatar Francesco Mani

bugfix for coreset id

parent 09edfdbd
...@@ -418,7 +418,7 @@ void nr_configure_pdcch(gNB_MAC_INST *nr_mac, ...@@ -418,7 +418,7 @@ void nr_configure_pdcch(gNB_MAC_INST *nr_mac,
NR_BWP_Downlink_t *bwp){ NR_BWP_Downlink_t *bwp){
int CCEIndex = -1; int CCEIndex = -1;
int cid;
NR_ControlResourceSet_t *coreset = NULL; NR_ControlResourceSet_t *coreset = NULL;
if (bwp) { // This is not the InitialBWP if (bwp) { // This is not the InitialBWP
...@@ -439,6 +439,7 @@ void nr_configure_pdcch(gNB_MAC_INST *nr_mac, ...@@ -439,6 +439,7 @@ void nr_configure_pdcch(gNB_MAC_INST *nr_mac,
temp_coreset = bwp->bwp_Dedicated->pdcch_Config->choice.setup->controlResourceSetToAddModList->list.array[i]; temp_coreset = bwp->bwp_Dedicated->pdcch_Config->choice.setup->controlResourceSetToAddModList->list.array[i];
if (coresetid==temp_coreset->controlResourceSetId) { if (coresetid==temp_coreset->controlResourceSetId) {
coreset = temp_coreset; coreset = temp_coreset;
cid = i;
break; break;
} }
} }
...@@ -517,7 +518,7 @@ void nr_configure_pdcch(gNB_MAC_INST *nr_mac, ...@@ -517,7 +518,7 @@ void nr_configure_pdcch(gNB_MAC_INST *nr_mac,
CCEIndex = allocate_nr_CCEs(nr_mac, CCEIndex = allocate_nr_CCEs(nr_mac,
1, // bwp_id 1, // bwp_id
coresetid, cid,
aggregation_level, aggregation_level,
ss->searchSpaceType->present-1, // search_space, 0 common, 1 ue-specific ss->searchSpaceType->present-1, // search_space, 0 common, 1 ue-specific
0, // UE-id 0, // UE-id
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment