From 65e9ad7fdffe0a3cc3691c0934e1be21ddbb39f2 Mon Sep 17 00:00:00 2001 From: Guido Casati Date: Mon, 16 Dec 2024 17:27:27 +0100 Subject: [PATCH] Move get_node_type after init_gNB --- executables/nr-softmodem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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");