From db0901f421d9985f4168d63d859de47d8ce40aa3 Mon Sep 17 00:00:00 2001 From: Florian Kaltenberger Date: Mon, 13 Jan 2020 22:21:01 +0100 Subject: [PATCH] initializing mod_id and cc_id --- openair2/LAYER2/NR_MAC_UE/config_ue.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/openair2/LAYER2/NR_MAC_UE/config_ue.c b/openair2/LAYER2/NR_MAC_UE/config_ue.c index c9d04d81b5..214414ed39 100755 --- a/openair2/LAYER2/NR_MAC_UE/config_ue.c +++ b/openair2/LAYER2/NR_MAC_UE/config_ue.c @@ -143,12 +143,17 @@ int set_tdd_config_nr_ue(fapi_nr_config_request_t *cfg, } -void config_common_ue(NR_UE_MAC_INST_t *mac) { +void config_common_ue(NR_UE_MAC_INST_t *mac, + module_id_t module_id, + int cc_idP) { fapi_nr_config_request_t *cfg = &mac->phy_config.config_req; NR_ServingCellConfigCommon_t *scc = mac->scc; int i; + mac->phy_config.Mod_id = module_id; + mac->phy_config.CC_id = cc_idP; + // carrier config LOG_I(MAC,"UE Config Common\n"); @@ -290,7 +295,7 @@ int nr_rrc_mac_config_req_ue( mac->servCellIndex = *spCell_ConfigP->servCellIndex; if (spCell_ConfigP->reconfigurationWithSync) { mac->scc = spCell_ConfigP->reconfigurationWithSync->spCellConfigCommon; - config_common_ue(mac); + config_common_ue(mac,module_id,cc_idP); mac->crnti = spCell_ConfigP->reconfigurationWithSync->newUE_Identity; LOG_I(MAC,"Configuring CRNTI %x\n",mac->crnti); }