mirror of https://github.com/PentHertz/srsLTE.git
Move radio frequency mapping out of the PHY common into the PHY reset method
This commit is contained in:
parent
d329297151
commit
2d0a21f779
|
@ -389,6 +389,13 @@ void phy::reset()
|
||||||
Info("Resetting PHY...");
|
Info("Resetting PHY...");
|
||||||
common.ta.set_base_sec(0);
|
common.ta.set_base_sec(0);
|
||||||
common.reset();
|
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()
|
uint32_t phy::get_current_tti()
|
||||||
|
|
|
@ -906,13 +906,6 @@ void phy_common::reset()
|
||||||
i = {};
|
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
|
/* Convert 6-bit maps to 10-element subframe tables
|
||||||
|
|
Loading…
Reference in New Issue