SRSUE: minor RRC/PHY fixes

This commit is contained in:
Xavier Arteaga 2019-11-19 16:42:02 +01:00 committed by Xavier Arteaga
parent f37a096f10
commit dbdb699a78
2 changed files with 5 additions and 4 deletions

View File

@ -423,7 +423,7 @@ void phy::enable_pregen_signals(bool enable)
}
}
void phy::set_config(srslte::phy_cfg_t& config, uint32_t cc_idx, uint32_t earfcn, srslte_cell_t* cell_info)
void phy::set_config(srslte::phy_cfg_t& config_, uint32_t cc_idx, uint32_t earfcn, srslte_cell_t* cell_info)
{
if (!is_initiated()) {
fprintf(stderr, "Error calling set_config(): PHY not initialized\n");
@ -439,11 +439,11 @@ void phy::set_config(srslte::phy_cfg_t& config, uint32_t cc_idx, uint32_t earfcn
if (cell_info) {
workers[i]->set_cell(cc_idx, *cell_info);
}
workers[i]->set_config(cc_idx, config);
workers[i]->set_config(cc_idx, config_);
}
if (cc_idx == 0) {
prach_cfg = config.prach_cfg;
prach_cfg = config_.prach_cfg;
} else if (cell_info) {
// If SCell does not share synchronism with PCell ...
if (m->radio_idx > 0) {

View File

@ -1348,7 +1348,7 @@ void rrc::stop_timers()
void rrc::start_con_restablishment(asn1::rrc::reest_cause_e cause)
{
if (not connection_reest.launch(cause)) {
rrc_log->info("Failed to launch connection re-establishment pocedure\n");
rrc_log->info("Failed to launch connection re-establishment procedure\n");
}
callback_list.add_proc(connection_reest);
@ -2740,6 +2740,7 @@ void rrc::set_rrc_default()
N310 = 1;
N311 = 1;
auto timer_expire_func = [this](uint32_t tid) { timer_expired(tid); };
t304.set(1000, timer_expire_func);
t310.set(1000, timer_expire_func);
t311.set(1000, timer_expire_func);
}