diff --git a/executables/nr-softmodem.c b/executables/nr-softmodem.c index a8ab55087a..084a2a8aae 100644 --- a/executables/nr-softmodem.c +++ b/executables/nr-softmodem.c @@ -599,8 +599,6 @@ int main( int argc, char **argv ) { char *pckg = strdup(OAI_PACKAGE_VERSION); 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 if (!(CONFIG_ISFLAGSET(CONFIG_ABORT))) NRRCConfig(); @@ -615,6 +613,9 @@ int main( int argc, char **argv ) { 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) { int ret = create_gNB_tasks(node_type, uniqCfg); AssertFatal(ret == 0, "cannot create ITTI tasks\n");