From df967d95b1e07d685ff5460685523acb1edafeb2 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Mon, 1 Feb 2021 21:32:58 +0100 Subject: [PATCH] rrc_nr: extract new UE identity from RRC reconfig that tell MAC required for contention-free RA on NR carrier --- srsue/src/stack/rrc/rrc_nr.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/srsue/src/stack/rrc/rrc_nr.cc b/srsue/src/stack/rrc/rrc_nr.cc index 4d0828de5..be1e3c13a 100644 --- a/srsue/src/stack/rrc/rrc_nr.cc +++ b/srsue/src/stack/rrc/rrc_nr.cc @@ -554,7 +554,10 @@ bool rrc_nr::apply_mac_cell_group(const mac_cell_group_cfg_s& mac_cell_group_cfg bool rrc_nr::apply_sp_cell_cfg(const sp_cell_cfg_s& sp_cell_cfg) { // TODO Setup PHY @andre and @phy interface? - log_h->warning("Not handling SP Cell config"); + if (sp_cell_cfg.recfg_with_sync_present) { + const recfg_with_sync_s& recfg_with_sync = sp_cell_cfg.recfg_with_sync; + mac->set_crnti(recfg_with_sync.new_ue_id); + } return true; } @@ -572,7 +575,7 @@ bool rrc_nr::apply_cell_group_cfg(const cell_group_cfg_s& cell_group_cfg) log_h->warning("Not handling physical cell group config"); } if (cell_group_cfg.sp_cell_cfg_present) { - // apply_sp_cell_cfg(cell_group_cfg.sp_cell_cfg); + apply_sp_cell_cfg(cell_group_cfg.sp_cell_cfg); } return true; }