|
|
|
@ -470,7 +470,10 @@ int rrc_nr::sgnb_reconfiguration_complete(uint16_t eutra_rnti, asn1::dyn_octstri
|
|
|
|
|
Every function in UE class is called from a mutex environment thus does not
|
|
|
|
|
need extra protection.
|
|
|
|
|
*******************************************************************************/
|
|
|
|
|
rrc_nr::ue::ue(rrc_nr* parent_, uint16_t rnti_) : parent(parent_), rnti(rnti_) {}
|
|
|
|
|
rrc_nr::ue::ue(rrc_nr* parent_, uint16_t rnti_) : parent(parent_), rnti(rnti_)
|
|
|
|
|
{
|
|
|
|
|
uecfg.ue_bearers[0].direction = mac_lc_ch_cfg_t::BOTH;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void rrc_nr::ue::send_connection_setup()
|
|
|
|
|
{
|
|
|
|
@ -1033,7 +1036,6 @@ int rrc_nr::ue::pack_secondary_cell_group_config_common(asn1::rrc_nr::cell_group
|
|
|
|
|
// Helper for the RRC Reconfiguration sender to pack hard-coded config
|
|
|
|
|
int rrc_nr::ue::pack_secondary_cell_group_config_fdd(asn1::dyn_octstring& packed_secondary_cell_config)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
auto& cell_group_cfg_pack = cell_group_cfg;
|
|
|
|
|
pack_secondary_cell_group_config_common(cell_group_cfg);
|
|
|
|
|
|
|
|
|
@ -1115,7 +1117,6 @@ int rrc_nr::ue::pack_secondary_cell_group_config_fdd(asn1::dyn_octstring& packed
|
|
|
|
|
// Helper for the RRC Reconfiguration sender to pack hard-coded config
|
|
|
|
|
int rrc_nr::ue::pack_secondary_cell_group_config_tdd(asn1::dyn_octstring& packed_secondary_cell_config)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
auto& cell_group_cfg_pack = cell_group_cfg;
|
|
|
|
|
pack_secondary_cell_group_config_common(cell_group_cfg);
|
|
|
|
|
|
|
|
|
@ -1182,7 +1183,6 @@ int rrc_nr::ue::pack_secondary_cell_group_config_tdd(asn1::dyn_octstring& packed
|
|
|
|
|
pdcch_cfg_common.set_setup();
|
|
|
|
|
pdcch_cfg_common.setup().ext = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// RACH config
|
|
|
|
|
cell_group_cfg_pack.sp_cell_cfg.recfg_with_sync.sp_cell_cfg_common.ul_cfg_common.init_ul_bwp.rach_cfg_common_present =
|
|
|
|
|
true;
|
|
|
|
@ -1392,6 +1392,10 @@ int rrc_nr::ue::add_drb()
|
|
|
|
|
srsran::pdcp_config_t pdcp_cnfg = srsran::make_drb_pdcp_config_t(drb_item.drb_id, false, drb_item.pdcp_cfg);
|
|
|
|
|
parent->pdcp->add_bearer(rnti, rlc.lc_ch_id, pdcp_cnfg);
|
|
|
|
|
|
|
|
|
|
// Add DRB1 to MAC
|
|
|
|
|
uecfg.ue_bearers[rlc.lc_ch_id].direction = mac_lc_ch_cfg_t::BOTH;
|
|
|
|
|
parent->mac->ue_cfg(rnti, uecfg);
|
|
|
|
|
|
|
|
|
|
return SRSRAN_SUCCESS;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|