Move get_node_type after init_gNB
This commit is contained in:
@@ -599,8 +599,6 @@ int main( int argc, char **argv ) {
|
|||||||
char *pckg = strdup(OAI_PACKAGE_VERSION);
|
char *pckg = strdup(OAI_PACKAGE_VERSION);
|
||||||
LOG_I(HW, "Version: %s\n", pckg);
|
LOG_I(HW, "Version: %s\n", pckg);
|
||||||
|
|
||||||
// don't create if node doesn't connect to RRC/S1/GTP
|
|
||||||
const ngran_node_t node_type = get_node_type();
|
|
||||||
// Init RAN context
|
// Init RAN context
|
||||||
if (!(CONFIG_ISFLAGSET(CONFIG_ABORT)))
|
if (!(CONFIG_ISFLAGSET(CONFIG_ABORT)))
|
||||||
NRRCConfig();
|
NRRCConfig();
|
||||||
@@ -615,6 +613,9 @@ int main( int argc, char **argv ) {
|
|||||||
RCconfig_nr_prs();
|
RCconfig_nr_prs();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// don't create if node doesn't connect to RRC/S1/GTP
|
||||||
|
const ngran_node_t node_type = get_node_type();
|
||||||
|
|
||||||
if (NFAPI_MODE != NFAPI_MODE_PNF) {
|
if (NFAPI_MODE != NFAPI_MODE_PNF) {
|
||||||
int ret = create_gNB_tasks(node_type, uniqCfg);
|
int ret = create_gNB_tasks(node_type, uniqCfg);
|
||||||
AssertFatal(ret == 0, "cannot create ITTI tasks\n");
|
AssertFatal(ret == 0, "cannot create ITTI tasks\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user