conditions for configuration in DU
This commit is contained in:
@@ -675,8 +675,14 @@ int RCconfig_RRC(uint32_t i, eNB_RRC_INST *rrc, int macrlc_has_f1) {
|
||||
else {
|
||||
// set to ngran_eNB for now, it will get set to ngran_eNB_DU if macrlc entity which uses F1 is present
|
||||
// Note: we will have to handle the case of ngran_ng_eNB_DU
|
||||
if (macrlc_has_f1 == 0) rrc->node_type = ngran_eNB;
|
||||
else rrc->node_type = ngran_eNB_DU;
|
||||
if (macrlc_has_f1 == 0) {
|
||||
rrc->node_type = ngran_eNB;
|
||||
LOG_I(RRC,"Setting node_type to ngran_eNB\n");
|
||||
}
|
||||
else {
|
||||
rrc->node_type = ngran_eNB_DU;
|
||||
LOG_I(RRC,"Setting node_type to ngran_eNB_DU\n");
|
||||
}
|
||||
}
|
||||
|
||||
// MCC and MNC
|
||||
|
||||
@@ -169,9 +169,8 @@ init_SI(
|
||||
PROTOCOL_RRC_CTXT_ARGS(ctxt_pP));
|
||||
|
||||
LOG_I(RRC,"[eNB %d] Node type %d \n ", ctxt_pP->module_id, rrc->node_type);
|
||||
if ((rrc->node_type != ngran_eNB_CU) ||
|
||||
(rrc->node_type != ngran_ng_eNB_CU) ||
|
||||
(rrc->node_type != ngran_gNB_CU) ) {
|
||||
if ((rrc->node_type == ngran_eNB_DU) ||
|
||||
(rrc->node_type == ngran_eNB) ) {
|
||||
// copy basic Cell parameters
|
||||
carrier->physCellId = configuration->Nid_cell[CC_id];
|
||||
carrier->p_eNB = configuration->nb_antenna_ports[CC_id];
|
||||
@@ -207,8 +206,9 @@ init_SI(
|
||||
AssertFatal(carrier->sizeof_SIB1 != 255,"FATAL, RC.rrc[enb_mod_idP].carrier[CC_id].sizeof_SIB1 == 255");
|
||||
|
||||
}
|
||||
if ((rrc->node_type != ngran_eNB_DU) ||
|
||||
(rrc->node_type != ngran_gNB_DU)) {
|
||||
if ((rrc->node_type == ngran_eNB_CU) ||
|
||||
(rrc->node_type == ngran_ng_eNB_CU) ||
|
||||
(rrc->node_type == ngran_eNB)) {
|
||||
carrier->SIB23 = (uint8_t*) malloc16(64);
|
||||
AssertFatal(carrier->SIB23!=NULL,"cannot allocate memory for SIB");
|
||||
carrier->sizeof_SIB23 = do_SIB23(
|
||||
|
||||
Reference in New Issue
Block a user