lte: stop radio before stopping stack

This commit is contained in:
Francisco Paisana 2021-09-24 15:20:15 +02:00 committed by Andre Puschmann
parent 593d28fa4d
commit c7e2038904
1 changed files with 4 additions and 4 deletions

View File

@ -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() : "";