mirror of https://github.com/PentHertz/srsLTE.git
add default pcell to ue_cfg in RRC
This commit is contained in:
parent
ce03971ca0
commit
fe3195bb27
|
@ -1055,6 +1055,13 @@ rrc::ue::ue(rrc* outer_rrc, uint16_t rnti_, const sched_interface::ue_cfg_t& sch
|
|||
current_sched_ue_cfg(sched_ue_cfg),
|
||||
phy_rrc_dedicated_list(sched_ue_cfg.supported_cc_list.size())
|
||||
{
|
||||
if (current_sched_ue_cfg.supported_cc_list.empty() or not current_sched_ue_cfg.supported_cc_list[0].active) {
|
||||
parent->rrc_log->warning("No PCell set. Picking eNBccIdx=0 as PCell\n");
|
||||
current_sched_ue_cfg.supported_cc_list.resize(0);
|
||||
current_sched_ue_cfg.supported_cc_list[0].active = true;
|
||||
current_sched_ue_cfg.supported_cc_list[0].enb_cc_idx = 0;
|
||||
}
|
||||
|
||||
activity_timer = outer_rrc->timers->get_unique_timer();
|
||||
set_activity_timeout(MSG3_RX_TIMEOUT); // next UE response is Msg3
|
||||
mobility_handler.reset(new rrc_mobility(this));
|
||||
|
|
|
@ -54,7 +54,11 @@ int test_erab_setup(bool qci_exists)
|
|||
};
|
||||
|
||||
uint16_t rnti = 0x46;
|
||||
rrc.add_user(rnti, {});
|
||||
sched_interface::ue_cfg_t ue_cfg;
|
||||
ue_cfg.supported_cc_list.resize(1);
|
||||
ue_cfg.supported_cc_list[0].active = true;
|
||||
ue_cfg.supported_cc_list[0].enb_cc_idx = 0;
|
||||
rrc.add_user(rnti, ue_cfg);
|
||||
|
||||
rrc_log->set_level(srslte::LOG_LEVEL_NONE); // mute all the startup log
|
||||
|
||||
|
|
Loading…
Reference in New Issue