From 0ac3f8b2427f1d14226a7c6423e589abd8aca13b Mon Sep 17 00:00:00 2001 From: Francisco Date: Thu, 4 Nov 2021 14:24:41 +0000 Subject: [PATCH] nr: fix ngap initialization in case of NR SA --- srsenb/src/stack/gnb_stack_nr.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srsenb/src/stack/gnb_stack_nr.cc b/srsenb/src/stack/gnb_stack_nr.cc index d325d4b5b..cbd145c58 100644 --- a/srsenb/src/stack/gnb_stack_nr.cc +++ b/srsenb/src/stack/gnb_stack_nr.cc @@ -77,7 +77,8 @@ int gnb_stack_nr::init(const gnb_stack_args_t& args_, ngap_logger.set_hex_dump_max_size(args.log.s1ap_hex_limit); gtpu_logger.set_hex_dump_max_size(args.log.gtpu_hex_limit); - if (x2_ != nullptr) { + if (x2_ == nullptr) { + // SA mode ngap.reset(new srsenb::ngap(&task_sched, ngap_logger, &srsran::get_rx_io_manager())); gtpu.reset(new srsenb::gtpu(&task_sched, gtpu_logger, &srsran::get_rx_io_manager())); }