Move radio frequency mapping out of the PHY common into the PHY reset method

This commit is contained in:
Xavier Arteaga 2021-06-01 09:29:28 +02:00 committed by Xavier Arteaga
parent d329297151
commit 2d0a21f779
2 changed files with 7 additions and 7 deletions

View File

@ -389,6 +389,13 @@ void phy::reset()
Info("Resetting PHY...");
common.ta.set_base_sec(0);
common.reset();
// Release mapping of secondary cells
if (radio != nullptr) {
for (uint32_t i = 1; i < args.nof_lte_carriers; i++) {
radio->release_freq(i);
}
}
}
uint32_t phy::get_current_tti()

View File

@ -906,13 +906,6 @@ void phy_common::reset()
i = {};
}
}
// Release mapping of secondary cells
if (args != nullptr && radio_h != nullptr) {
for (uint32_t i = 1; i < args->nof_lte_carriers; i++) {
radio_h->release_freq(i);
}
}
}
/* Convert 6-bit maps to 10-element subframe tables