diff --git a/srsgnb/src/stack/rrc/cell_asn1_config.cc b/srsgnb/src/stack/rrc/cell_asn1_config.cc index d0362f2e6..d53f2ff3b 100644 --- a/srsgnb/src/stack/rrc/cell_asn1_config.cc +++ b/srsgnb/src/stack/rrc/cell_asn1_config.cc @@ -1008,6 +1008,17 @@ void fill_rach_cfg_common(const rrc_cell_cfg_nr_t& cell_cfg, rach_cfg_common_s& void fill_ul_cfg_common_sib(const rrc_cell_cfg_nr_t& cell_cfg, ul_cfg_common_sib_s& cfg) { + srsran::srsran_band_helper band_helper; + + cfg.freq_info_ul.freq_band_list_present = true; + cfg.freq_info_ul.freq_band_list.resize(1); + cfg.freq_info_ul.freq_band_list[0].freq_band_ind_nr_present = true; + cfg.freq_info_ul.freq_band_list[0].freq_band_ind_nr = cell_cfg.band; + + cfg.freq_info_ul.absolute_freq_point_a_present = true; + cfg.freq_info_ul.absolute_freq_point_a = + band_helper.get_abs_freq_point_a_arfcn(cell_cfg.phy_cell.carrier.nof_prb, cell_cfg.ul_arfcn); + cfg.freq_info_ul.scs_specific_carrier_list.resize(1); cfg.freq_info_ul.scs_specific_carrier_list[0].offset_to_carrier = 0; cfg.freq_info_ul.scs_specific_carrier_list[0].subcarrier_spacing = diff --git a/srsgnb/src/stack/rrc/test/rrc_nr_test.cc b/srsgnb/src/stack/rrc/test/rrc_nr_test.cc index 8500996c2..14911d33f 100644 --- a/srsgnb/src/stack/rrc/test/rrc_nr_test.cc +++ b/srsgnb/src/stack/rrc/test/rrc_nr_test.cc @@ -180,8 +180,8 @@ int main(int argc, char** argv) } argparse::parse_args(argc, argv); - TESTASSERT(srsenb::test_rrc_setup() == SRSRAN_SUCCESS); srsenb::test_sib_generation(); + TESTASSERT(srsenb::test_rrc_setup() == SRSRAN_SUCCESS); srsenb::test_rrc_sa_connection(); return SRSRAN_SUCCESS;