From fe78d8a08f8228028ad29a8c366eaa2cb8ca3b0e Mon Sep 17 00:00:00 2001 From: Melissa Elkadi Date: Fri, 15 Oct 2021 09:13:36 -0700 Subject: [PATCH] Only calling rlc_module_init for NSA mode In develop, this function call was commented out. It is necessary for NSA mode so we have modified the logic for this case. --- executables/nr-uesoftmodem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/executables/nr-uesoftmodem.c b/executables/nr-uesoftmodem.c index cef324db34..329abb97ef 100644 --- a/executables/nr-uesoftmodem.c +++ b/executables/nr-uesoftmodem.c @@ -397,7 +397,7 @@ void init_pdcp(int ue_id) { if (IS_SOFTMODEM_NOKRNMOD) { pdcp_initmask = pdcp_initmask | UE_NAS_USE_TUN_BIT; } - if (rlc_module_init(0) != 0) { + if (get_softmodem_params()->nsa && rlc_module_init(0) != 0) { LOG_I(RLC, "Problem at RLC initiation \n"); } pdcp_layer_init();