From 2a9cb35348a4f5e9b5415016851db73fecd95dff Mon Sep 17 00:00:00 2001 From: Guido Casati Date: Thu, 17 Oct 2024 12:42:18 +0200 Subject: [PATCH] Do L1 configuration right after gNB initialization * do always gNB init for L1 instance and also for CU and CU-CP * do L1 config only for L1 instances --- executables/nr-softmodem.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/executables/nr-softmodem.c b/executables/nr-softmodem.c index 47548239b9..fe0b0503f0 100644 --- a/executables/nr-softmodem.c +++ b/executables/nr-softmodem.c @@ -631,8 +631,12 @@ int main( int argc, char **argv ) { // don't create if node doesn't connect to RRC/S1/GTP const ngran_node_t node_type = get_node_type(); - if (RC.nb_nr_L1_inst > 0) + if (RC.nb_nr_L1_inst > 0) { + // Initialize gNB structure in RAN context + init_gNB(wait_for_sync); + // Initialize L1 RCconfig_NR_L1(); + } if (NFAPI_MODE != NFAPI_MODE_PNF) { int ret = create_gNB_tasks(node_type, uniqCfg); @@ -651,10 +655,6 @@ int main( int argc, char **argv ) { // start the main threads number_of_cards = 1; - if (RC.nb_nr_L1_inst > 0) { - init_gNB(wait_for_sync); - } - wait_gNBs(); int sl_ahead = NFAPI_MODE == NFAPI_MODE_AERIAL ? 0 : 6; if (RC.nb_RU >0) {