From 145dd0c9bf42bf82ef7dc9c1f040b29b741df5cf Mon Sep 17 00:00:00 2001 From: luis_pereira87 Date: Tue, 25 May 2021 12:32:03 +0100 Subject: [PATCH] Update condition to preconfigure DRB in phy-test mode --- openair2/LAYER2/NR_MAC_gNB/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openair2/LAYER2/NR_MAC_gNB/main.c b/openair2/LAYER2/NR_MAC_gNB/main.c index 23a5059355..9974c08a18 100644 --- a/openair2/LAYER2/NR_MAC_gNB/main.c +++ b/openair2/LAYER2/NR_MAC_gNB/main.c @@ -96,12 +96,12 @@ void mac_top_init_gNB(void) // These should be out of here later pdcp_layer_init(); - if(!(get_softmodem_params()->do_ra || get_softmodem_params()->sa) ) + if(IS_SOFTMODEM_NOS1 && get_softmodem_params()->phy_test) nr_DRB_preconfiguration(0x1234); rrc_init_nr_global_param(); - }else { + } else { RC.nrmac = NULL; }