|
|
|
@ -58,6 +58,9 @@ void test_sib_generation()
|
|
|
|
|
rrc_cfg_nr.cell_list[0].phy_cell.carrier.nof_prb = 52;
|
|
|
|
|
rrc_cfg_nr.cell_list[0].duplex_mode = SRSRAN_DUPLEX_MODE_FDD;
|
|
|
|
|
rrc_cfg_nr.is_standalone = true;
|
|
|
|
|
rrc_cfg_nr.enb_id = 0x19B;
|
|
|
|
|
srsran::string_to_mcc("001", &rrc_cfg_nr.mcc);
|
|
|
|
|
srsran::string_to_mnc("01", &rrc_cfg_nr.mnc);
|
|
|
|
|
set_derived_nr_cell_params(rrc_cfg_nr.is_standalone, rrc_cfg_nr.cell_list[0]);
|
|
|
|
|
srsran_assert(check_rrc_nr_cfg_valid(rrc_cfg_nr) == SRSRAN_SUCCESS, "Invalid RRC NR configuration");
|
|
|
|
|
|
|
|
|
@ -111,6 +114,9 @@ int test_rrc_setup()
|
|
|
|
|
rrc_cfg_nr.cell_list[0].band = 78;
|
|
|
|
|
rrc_cfg_nr.cell_list[0].phy_cell.carrier.nof_prb = 52;
|
|
|
|
|
rrc_cfg_nr.is_standalone = false;
|
|
|
|
|
rrc_cfg_nr.enb_id = 0x19B;
|
|
|
|
|
srsran::string_to_mcc("001", &rrc_cfg_nr.mcc);
|
|
|
|
|
srsran::string_to_mnc("01", &rrc_cfg_nr.mnc);
|
|
|
|
|
set_derived_nr_cell_params(rrc_cfg_nr.is_standalone, rrc_cfg_nr.cell_list[0]);
|
|
|
|
|
srsran_assert(check_rrc_nr_cfg_valid(rrc_cfg_nr) == SRSRAN_SUCCESS, "Invalid RRC NR configuration");
|
|
|
|
|
TESTASSERT(rrc_obj.init(rrc_cfg_nr, &phy_obj, &mac_obj, &rlc_obj, &pdcp_obj, nullptr, bearer_mapper, nullptr) ==
|
|
|
|
@ -151,6 +157,9 @@ void test_rrc_sa_connection()
|
|
|
|
|
rrc_cfg_nr.cell_list[0].phy_cell.carrier.nof_prb = 52;
|
|
|
|
|
rrc_cfg_nr.cell_list[0].duplex_mode = SRSRAN_DUPLEX_MODE_FDD;
|
|
|
|
|
rrc_cfg_nr.is_standalone = true;
|
|
|
|
|
rrc_cfg_nr.enb_id = 0x19B;
|
|
|
|
|
srsran::string_to_mcc("001", &rrc_cfg_nr.mcc);
|
|
|
|
|
srsran::string_to_mnc("01", &rrc_cfg_nr.mnc);
|
|
|
|
|
set_derived_nr_cell_params(rrc_cfg_nr.is_standalone, rrc_cfg_nr.cell_list[0]);
|
|
|
|
|
srsran_assert(check_rrc_nr_cfg_valid(rrc_cfg_nr) == SRSRAN_SUCCESS, "Invalid RRC NR configuration");
|
|
|
|
|
|
|
|
|
|