From c7e2038904e886ce6e93fdebaf135c0509327910 Mon Sep 17 00:00:00 2001 From: Francisco Paisana Date: Fri, 24 Sep 2021 15:20:15 +0200 Subject: [PATCH] lte: stop radio before stopping stack --- srsenb/src/enb.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/srsenb/src/enb.cc b/srsenb/src/enb.cc index 1ea3c114f..97722f5b2 100644 --- a/srsenb/src/enb.cc +++ b/srsenb/src/enb.cc @@ -148,6 +148,10 @@ void enb::stop() { if (started) { // tear down in reverse order + if (radio) { + radio->stop(); + } + if (phy) { phy->stop(); } @@ -160,10 +164,6 @@ void enb::stop() nr_stack->stop(); } - if (radio) { - radio->stop(); - } - // Now that everything is teared down, log sector stop events. const std::string& sib9_hnb_name = rrc_cfg.sibs[8].sib9().hnb_name_present ? rrc_cfg.sibs[8].sib9().hnb_name.to_string() : "";