initialization of pdcp only in nos1

This commit is contained in:
francescomani
2021-08-04 11:21:07 +02:00
parent 8bb80c9ef0
commit 8cc1d0a2de
+4 -3
View File
@@ -60,9 +60,10 @@ NR_UE_MAC_INST_t * nr_l2_init_ue(NR_UE_RRC_INST_t* rrc_inst) {
nr_rrc_mac_config_req_ue(0,0,0,NULL,NULL,NULL,rrc_inst->scell_group_config); nr_rrc_mac_config_req_ue(0,0,0,NULL,NULL,NULL,rrc_inst->scell_group_config);
AssertFatal(rlc_module_init(0) == 0, "%s: Could not initialize RLC layer\n", __FUNCTION__); AssertFatal(rlc_module_init(0) == 0, "%s: Could not initialize RLC layer\n", __FUNCTION__);
pdcp_layer_init(); if (IS_SOFTMODEM_NOS1){
nr_DRB_preconfiguration(nr_ue_mac_inst->crnti); pdcp_layer_init();
nr_DRB_preconfiguration(nr_ue_mac_inst->crnti);
}
// Allocate memory for ul_config_request in the mac instance. This is now a pointer and will // Allocate memory for ul_config_request in the mac instance. This is now a pointer and will
// point to a list of structures (one for each UL slot) to store PUSCH scheduling parameters // point to a list of structures (one for each UL slot) to store PUSCH scheduling parameters
// received from UL DCI. // received from UL DCI.