schedule conres ce when pcell changes

This commit is contained in:
Francisco Paisana 2020-04-17 12:57:29 +01:00 committed by Francisco Paisana
parent d183d64409
commit 6de7b644ec
1 changed files with 6 additions and 1 deletions

View File

@ -140,9 +140,14 @@ void sched_ue::set_cfg(const sched_interface::ue_cfg_t& cfg_)
// New carrier needs to be added
carriers.emplace_back(cfg, (*cell_params_list)[cc_cfg.enb_cc_idx], rnti, ue_idx);
} else if (cc_cfg.enb_cc_idx != prev_supported_cc_list[ue_idx].enb_cc_idx) {
// TODO: Check if this will ever happen.
// One carrier was added in the place of another
carriers[ue_idx] = sched_ue_carrier{cfg, (*cell_params_list)[cc_cfg.enb_cc_idx], rnti, ue_idx};
if (ue_idx == 0) {
// PCell was changed possibly due to handover. Schedule a new ConRes CE to be transmitted after the Msg3
conres_ce_pending = true;
lch[0].buf_tx = std::max(lch[0].buf_tx, 1); // TODO: find a cleaner way to schedule conres CE
log_h->info("SCHED: PCell has changed. ConRes CE scheduled\n");
}
} else {
// The SCell internal configuration may have changed
carriers[ue_idx].set_cfg(cfg);