mirror of https://github.com/PentHertz/srsLTE.git
Minor UE aesthetical changes
This commit is contained in:
parent
44b6a2b55f
commit
5c55ff24ec
|
@ -56,7 +56,7 @@ public:
|
|||
* @param cc_idx CC index
|
||||
* @param phy_cfg Actual PHY configuration
|
||||
*/
|
||||
void set_config_unlocked(uint32_t cc_idx, srsran::phy_cfg_t phy_cfg);
|
||||
void set_config(uint32_t cc_idx, const srsran::phy_cfg_t& phy_cfg);
|
||||
};
|
||||
|
||||
} // namespace lte
|
||||
|
|
|
@ -268,10 +268,10 @@ private:
|
|||
float dl_freq = -1;
|
||||
float ul_freq = -1;
|
||||
|
||||
const static int MIN_TTI_JUMP = 1; // Time gap reported to stack after receiving subframe
|
||||
const static int MAX_TTI_JUMP = 1000; // Maximum time gap tolerance in RF stream metadata
|
||||
|
||||
const uint8_t SYNC_CC_IDX = 0; ///< From the sync POV, the CC idx is always the first
|
||||
const static int MIN_TTI_JUMP = 1; ///< Time gap reported to stack after receiving subframe
|
||||
const static int MAX_TTI_JUMP = 1000; ///< Maximum time gap tolerance in RF stream metadata
|
||||
const uint8_t SYNC_CC_IDX = 0; ///< From the sync POV, the CC idx is always the first
|
||||
const uint32_t TIMEOUT_TO_IDLE_MS = 2; ///< Timeout in milliseconds for transitioning to IDLE
|
||||
};
|
||||
|
||||
} // namespace srsue
|
||||
|
|
|
@ -95,7 +95,7 @@ void worker_pool::stop()
|
|||
pool.stop();
|
||||
}
|
||||
|
||||
void worker_pool::set_config_unlocked(uint32_t cc_idx, srsran::phy_cfg_t phy_cfg)
|
||||
void worker_pool::set_config(uint32_t cc_idx, const srsran::phy_cfg_t& phy_cfg)
|
||||
{
|
||||
// Protect CC index bounds
|
||||
if (cc_idx >= SRSRAN_MAX_CARRIERS) {
|
||||
|
|
|
@ -448,7 +448,7 @@ bool phy::set_config(const srsran::phy_cfg_t& config_, uint32_t cc_idx)
|
|||
// Apply configurations asynchronously to avoid race conditions
|
||||
cmd_worker.add_cmd([this, config_, cc_idx]() {
|
||||
logger_phy.info("Setting new PHY configuration cc_idx=%d...", cc_idx);
|
||||
lte_workers.set_config_unlocked(cc_idx, config_);
|
||||
lte_workers.set_config(cc_idx, config_);
|
||||
|
||||
// It is up to the PRACH component to detect whether the cell or the configuration have changed to reconfigure
|
||||
configure_prach_params();
|
||||
|
|
|
@ -220,8 +220,8 @@ rrc_interface_phy_lte::cell_search_ret_t sync::cell_search_start(phy_cell_t* fou
|
|||
rrc_proc_state = PROC_SEARCH_RUNNING;
|
||||
|
||||
// Wait for SYNC thread to transition to IDLE (max. 2000ms)
|
||||
if (not phy_state.wait_idle(2)) {
|
||||
Error("SYNC: Can not search while not in IDLE");
|
||||
if (not phy_state.wait_idle(TIMEOUT_TO_IDLE_MS)) {
|
||||
Error("SYNC: Error transitioning to IDLE. Cell search cannot start.");
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -795,7 +795,7 @@ void sync::set_ue_sync_opts(srsran_ue_sync_t* q, float cfo)
|
|||
bool sync::set_cell(float cfo)
|
||||
{
|
||||
// Wait for SYNC thread to transition to IDLE (max. 2000ms)
|
||||
if (not phy_state.wait_idle(2)) {
|
||||
if (not phy_state.wait_idle(TIMEOUT_TO_IDLE_MS)) {
|
||||
Error("SYNC: Can not change Cell while not in IDLE");
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue