SRSENB: phy_ue_db returns default configuration for non User C-RNTI

This commit is contained in:
Xavier Arteaga 2020-03-10 17:57:38 +01:00 committed by Andre Puschmann
parent 47b7c1b72b
commit d585cf14f3
1 changed files with 6 additions and 0 deletions

View File

@ -323,6 +323,12 @@ srslte::phy_cfg_t phy_ue_db::get_config(uint16_t rnti, uint32_t enb_cc_idx) cons
default_cfg.ul_cfg.pusch.rnti = rnti;
default_cfg.ul_cfg.pucch.rnti = rnti;
// Use default configuration for non-user C-RNTI
if (not SRSLTE_RNTI_ISUSER(rnti)) {
return default_cfg;
}
// Make sure the C-RNTI exists and the cell is active for the user
if (_assert_active_enb_cc(rnti, enb_cc_idx) != SRSLTE_SUCCESS) {
return default_cfg;
}