Skip to content
Snippets Groups Projects
Commit 26a541e2 authored by Francesco Mani's avatar Francesco Mani
Browse files

removing unnecessary free tdd_UL_DL_ConfigurationCommon

parent bf8a1913
No related branches found
No related tags found
4 merge requests!1757Draft: Use pMAX value in configuration file, instead of hardcoded '23' in asn1_msg.c,!1493fix DL arq errors in UE,!1451integration_2022_wk07_c,!1361Adaptations of the MAC scheduling to support FDD
......@@ -625,10 +625,7 @@ int nr_rrc_mac_config_req_ue(
config_common_ue_sa(mac,module_id,cc_idP);
int num_slots_ul = nr_slots_per_frame[mac->mib->subCarrierSpacingCommon];
if(cfg->cell_config.frame_duplex_type == FDD){
free(mac->scc_SIB->tdd_UL_DL_ConfigurationCommon);
mac->scc_SIB->tdd_UL_DL_ConfigurationCommon = NULL;
} else {
if(cfg->cell_config.frame_duplex_type == TDD){
num_slots_ul = mac->scc_SIB->tdd_UL_DL_ConfigurationCommon->pattern1.nrofUplinkSlots;
if (mac->scc_SIB->tdd_UL_DL_ConfigurationCommon->pattern1.nrofUplinkSymbols > 0) {
num_slots_ul++;
......@@ -653,10 +650,6 @@ int nr_rrc_mac_config_req_ue(
ra->rach_ConfigDedicated = scell_group_config->spCellConfig->reconfigurationWithSync->rach_ConfigDedicated->choice.uplink;
}
mac->scc = scell_group_config->spCellConfig->reconfigurationWithSync->spCellConfigCommon;
if(cfg->cell_config.frame_duplex_type == FDD){
free(mac->scc->tdd_UL_DL_ConfigurationCommon);
mac->scc->tdd_UL_DL_ConfigurationCommon = NULL;
}
mac->physCellId = *mac->scc->physCellId;
config_common_ue(mac,module_id,cc_idP);
mac->crnti = scell_group_config->spCellConfig->reconfigurationWithSync->newUE_Identity;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment