|
|
|
@ -176,11 +176,8 @@ int fill_csi_report_from_enb_cfg(const rrc_nr_cfg_t& cfg, csi_meas_cfg_s& csi_me
|
|
|
|
|
csi_report.cqi_table = asn1::rrc_nr::csi_report_cfg_s::cqi_table_opts::table2;
|
|
|
|
|
csi_report.subband_size = asn1::rrc_nr::csi_report_cfg_s::subband_size_opts::value1;
|
|
|
|
|
|
|
|
|
|
if (cfg.cell_list[0].duplex_mode == SRSRAN_DUPLEX_MODE_FDD) {
|
|
|
|
|
csi_report.report_cfg_type.periodic().report_slot_cfg.slots80() = 9;
|
|
|
|
|
} else {
|
|
|
|
|
csi_report.report_cfg_type.periodic().report_slot_cfg.slots80() = 7;
|
|
|
|
|
}
|
|
|
|
|
if (cfg.cell_list[0].duplex_mode == SRSRAN_DUPLEX_MODE_FDD) {
|
|
|
|
|
csi_report.report_cfg_type.periodic().report_slot_cfg.slots80() = 1;
|
|
|
|
|
} else {
|
|
|
|
|
csi_meas_cfg.csi_report_cfg_to_add_mod_list.resize(1);
|
|
|
|
|
|
|
|
|
@ -215,6 +212,41 @@ int fill_csi_report_from_enb_cfg(const rrc_nr_cfg_t& cfg, csi_meas_cfg_s& csi_me
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// the code below would be for NSA, even though this function was never called for NSA
|
|
|
|
|
#if 0
|
|
|
|
|
csi_meas_cfg.csi_report_cfg_to_add_mod_list_present = true;
|
|
|
|
|
csi_meas_cfg.csi_report_cfg_to_add_mod_list.resize(1);
|
|
|
|
|
|
|
|
|
|
auto& csi_report = csi_meas_cfg.csi_report_cfg_to_add_mod_list[0];
|
|
|
|
|
csi_report.report_cfg_id = 0;
|
|
|
|
|
csi_report.res_for_ch_meas = 0;
|
|
|
|
|
csi_report.csi_im_res_for_interference_present = true;
|
|
|
|
|
csi_report.csi_im_res_for_interference = 1;
|
|
|
|
|
csi_report.report_cfg_type.set_periodic();
|
|
|
|
|
csi_report.report_cfg_type.periodic().report_slot_cfg.set_slots80();
|
|
|
|
|
csi_report.report_cfg_type.periodic().pucch_csi_res_list.resize(1);
|
|
|
|
|
csi_report.report_cfg_type.periodic().pucch_csi_res_list[0].ul_bw_part_id = 0;
|
|
|
|
|
csi_report.report_cfg_type.periodic().pucch_csi_res_list[0].pucch_res = 1; // was 17 in orig PCAP
|
|
|
|
|
csi_report.report_quant.set_cri_ri_pmi_cqi();
|
|
|
|
|
// Report freq config (optional)
|
|
|
|
|
csi_report.report_freq_cfg_present = true;
|
|
|
|
|
csi_report.report_freq_cfg.cqi_format_ind_present = true;
|
|
|
|
|
csi_report.report_freq_cfg.cqi_format_ind = csi_report_cfg_s::report_freq_cfg_s_::cqi_format_ind_opts::wideband_cqi;
|
|
|
|
|
csi_report.time_restrict_for_ch_meass = csi_report_cfg_s::time_restrict_for_ch_meass_opts::not_cfgured;
|
|
|
|
|
csi_report.time_restrict_for_interference_meass =
|
|
|
|
|
asn1::rrc_nr::csi_report_cfg_s::time_restrict_for_interference_meass_opts::not_cfgured;
|
|
|
|
|
csi_report.group_based_beam_report.set_disabled();
|
|
|
|
|
// Skip CQI table (optional)
|
|
|
|
|
csi_report.cqi_table_present = true;
|
|
|
|
|
csi_report.cqi_table = asn1::rrc_nr::csi_report_cfg_s::cqi_table_opts::table2;
|
|
|
|
|
csi_report.subband_size = asn1::rrc_nr::csi_report_cfg_s::subband_size_opts::value1;
|
|
|
|
|
|
|
|
|
|
if (cfg.cell_list[0].duplex_mode == SRSRAN_DUPLEX_MODE_FDD) {
|
|
|
|
|
csi_report.report_cfg_type.periodic().report_slot_cfg.slots80() = 5;
|
|
|
|
|
} else {
|
|
|
|
|
csi_report.report_cfg_type.periodic().report_slot_cfg.slots80() = 7;
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
return SRSRAN_SUCCESS;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -227,11 +259,11 @@ void fill_nzp_csi_rs_from_enb_cfg(const rrc_nr_cfg_t& cfg, csi_meas_cfg_s& csi_m
|
|
|
|
|
auto& nzp_csi_res = csi_meas_cfg.nzp_csi_rs_res_to_add_mod_list;
|
|
|
|
|
// item 0
|
|
|
|
|
nzp_csi_res[0].nzp_csi_rs_res_id = 0;
|
|
|
|
|
nzp_csi_res[0].res_map.freq_domain_alloc.set_other();
|
|
|
|
|
nzp_csi_res[0].res_map.freq_domain_alloc.other().from_number(0b100000);
|
|
|
|
|
nzp_csi_res[0].res_map.nrof_ports.value = asn1::rrc_nr::csi_rs_res_map_s::nrof_ports_opts::p2;
|
|
|
|
|
nzp_csi_res[0].res_map.freq_domain_alloc.set_row2();
|
|
|
|
|
nzp_csi_res[0].res_map.freq_domain_alloc.row2().from_number(0x800);
|
|
|
|
|
nzp_csi_res[0].res_map.nrof_ports.value = asn1::rrc_nr::csi_rs_res_map_s::nrof_ports_opts::p1;
|
|
|
|
|
nzp_csi_res[0].res_map.first_ofdm_symbol_in_time_domain = 4;
|
|
|
|
|
nzp_csi_res[0].res_map.cdm_type.value = asn1::rrc_nr::csi_rs_res_map_s::cdm_type_opts::fd_cdm2;
|
|
|
|
|
nzp_csi_res[0].res_map.cdm_type.value = asn1::rrc_nr::csi_rs_res_map_s::cdm_type_opts::no_cdm;
|
|
|
|
|
nzp_csi_res[0].res_map.density.set_one();
|
|
|
|
|
nzp_csi_res[0].res_map.freq_band.start_rb = 0;
|
|
|
|
|
nzp_csi_res[0].res_map.freq_band.nrof_rbs = 52;
|
|
|
|
@ -249,7 +281,7 @@ void fill_nzp_csi_rs_from_enb_cfg(const rrc_nr_cfg_t& cfg, csi_meas_cfg_s& csi_m
|
|
|
|
|
nzp_csi_res[1] = nzp_csi_res[0];
|
|
|
|
|
nzp_csi_res[1].nzp_csi_rs_res_id = 1;
|
|
|
|
|
nzp_csi_res[1].res_map.freq_domain_alloc.set_row1();
|
|
|
|
|
nzp_csi_res[1].res_map.freq_domain_alloc.row1().from_number(0b0001);
|
|
|
|
|
nzp_csi_res[1].res_map.freq_domain_alloc.row1().from_number(0x1);
|
|
|
|
|
nzp_csi_res[1].res_map.nrof_ports.value = asn1::rrc_nr::csi_rs_res_map_s::nrof_ports_opts::p1;
|
|
|
|
|
nzp_csi_res[1].res_map.cdm_type.value = asn1::rrc_nr::csi_rs_res_map_s::cdm_type_opts::no_cdm;
|
|
|
|
|
nzp_csi_res[1].res_map.density.set_three();
|
|
|
|
@ -428,8 +460,8 @@ void fill_csi_resource_cfg_to_add(const rrc_nr_cfg_t& cfg, csi_meas_cfg_s& csi_m
|
|
|
|
|
csi_meas_cfg.csi_res_cfg_to_add_mod_list[0].res_type.value = csi_res_cfg_s::res_type_opts::periodic;
|
|
|
|
|
|
|
|
|
|
csi_meas_cfg.csi_res_cfg_to_add_mod_list[1].csi_res_cfg_id = 1;
|
|
|
|
|
auto& imres = csi_meas_cfg.csi_res_cfg_to_add_mod_list[1].csi_rs_res_set_list.set_csi_im_res_set_list();
|
|
|
|
|
imres.push_back(0);
|
|
|
|
|
auto& im_res = csi_meas_cfg.csi_res_cfg_to_add_mod_list[1].csi_rs_res_set_list.set_csi_im_res_set_list();
|
|
|
|
|
im_res.push_back(0);
|
|
|
|
|
csi_meas_cfg.csi_res_cfg_to_add_mod_list[1].bwp_id = 0;
|
|
|
|
|
csi_meas_cfg.csi_res_cfg_to_add_mod_list[1].res_type.value = csi_res_cfg_s::res_type_opts::periodic;
|
|
|
|
|
|
|
|
|
@ -1052,7 +1084,7 @@ int fill_master_cell_cfg_from_enb_cfg(const rrc_nr_cfg_t& cfg, uint32_t cc, asn1
|
|
|
|
|
out.sp_cell_cfg.recfg_with_sync_present = false;
|
|
|
|
|
|
|
|
|
|
// The current CSI config make the PUCCH decoding fail. We temporarily disable it until further investigation
|
|
|
|
|
out.sp_cell_cfg.sp_cell_cfg_ded.csi_meas_cfg_present = false;
|
|
|
|
|
// out.sp_cell_cfg.sp_cell_cfg_ded.csi_meas_cfg_present = false;
|
|
|
|
|
|
|
|
|
|
return SRSRAN_SUCCESS;
|
|
|
|
|
}
|
|
|
|
|