ue,rrc_nr: fix SSB config warning

first read freqInfoDL then try to build SSB config
master
Andre Puschmann 3 years ago
parent f177a03605
commit ea21232f61

@ -1162,13 +1162,7 @@ bool rrc_nr::apply_sp_cell_cfg(const sp_cell_cfg_s& sp_cell_cfg)
logger.warning("Secondary primary cell ul cfg common not present"); logger.warning("Secondary primary cell ul cfg common not present");
return false; return false;
} }
phy_cfg_nr_t::ssb_cfg_t ssb_cfg = {}; // Read essential DL carrier settings
if (make_phy_ssb_cfg(phy_cfg.carrier, recfg_with_sync.sp_cell_cfg_common, &ssb_cfg) == true) {
phy_cfg.ssb = ssb_cfg;
} else {
logger.warning("Warning while building SSB config structure");
return false;
}
if (recfg_with_sync.sp_cell_cfg_common.dl_cfg_common_present) { if (recfg_with_sync.sp_cell_cfg_common.dl_cfg_common_present) {
if (apply_dl_common_cfg(recfg_with_sync.sp_cell_cfg_common.dl_cfg_common) == false) { if (apply_dl_common_cfg(recfg_with_sync.sp_cell_cfg_common.dl_cfg_common) == false) {
return false; return false;
@ -1177,6 +1171,14 @@ bool rrc_nr::apply_sp_cell_cfg(const sp_cell_cfg_s& sp_cell_cfg)
logger.warning("DL cfg common not present"); logger.warning("DL cfg common not present");
return false; return false;
} }
// Build SSB config
phy_cfg_nr_t::ssb_cfg_t ssb_cfg = {};
if (make_phy_ssb_cfg(phy_cfg.carrier, recfg_with_sync.sp_cell_cfg_common, &ssb_cfg) == true) {
phy_cfg.ssb = ssb_cfg;
} else {
logger.warning("Warning while building SSB config structure");
return false;
}
if (recfg_with_sync.sp_cell_cfg_common.tdd_ul_dl_cfg_common_present) { if (recfg_with_sync.sp_cell_cfg_common.tdd_ul_dl_cfg_common_present) {
logger.info("TDD UL DL config present, using TDD"); logger.info("TDD UL DL config present, using TDD");
srsran_duplex_config_nr_t duplex; srsran_duplex_config_nr_t duplex;

Loading…
Cancel
Save