AssertFatal(RC.nrrrc[Mod_idP]->carrier.pdsch_AntennaPorts>8,"Number of antennas %d are out of range",RC.nrrrc[Mod_idP]->carrier.pdsch_AntennaPorts);
AssertFatal(RC.nrmac[Mod_idP]->config[0].carrier_config.num_tx_ant.value>8,"Number of antennas %d are out of range",RC.nrmac[Mod_idP]->config[0].carrier_config.num_tx_ant.value);
AssertFatal(RC.nrrrc[Mod_idP]->carrier.pdsch_AntennaPorts>8,"Number of antennas %d are out of range",RC.nrrrc[Mod_idP]->carrier.pdsch_AntennaPorts);
AssertFatal(RC.nrmac[Mod_idP]->config[0].carrier_config.num_tx_ant.value>8,"Number of antennas %d are out of range",RC.nrmac[Mod_idP]->config[0].carrier_config.num_tx_ant.value);
AssertFatal(RC.nrrrc[Mod_idP]->carrier.pdsch_AntennaPorts>8,"Number of antennas %d are out of range",RC.nrrrc[Mod_idP]->carrier.pdsch_AntennaPorts);
AssertFatal(RC.nrmac[Mod_idP]->config[0].carrier_config.num_tx_ant.value>8,"Number of antennas %d are out of range",RC.nrmac[Mod_idP]->config[0].carrier_config.num_tx_ant.value);
CSI_report_bitlen=&(UE_info->csi_report_template[UE_id][csi_report_id].CSI_report_bitlen);//This might need to be moodif for Aperiodic CSI-RS measurements
intbetter_rsrp_reported=-140-(-0);/*minimum_measured_RSRP_value - minimum_differntail_RSRP_value*///considering the minimum RSRP value as better RSRP initially
intbetter_rsrp_reported=-140-(-0);/*minimum_measured_RSRP_value - minimum_differntail_RSRP_value*///considering the minimum RSRP value as better RSRP initially
uint8_tdiff_rsrp_idx=0;
uint8_ti,j;
if(n_dl_bwp<4)
pdsch_bwp_id=bwp_id;
else
pdsch_bwp_id=bwp_id-1;// as per table 7.3.1.1.2-1 in 38.212
/*Example:
CRI_SSBRI: 1 2 3 4| 5 6 7 8| 9 10 1 2|
nb_of_csi_ssb_report = 3 //3 sets as above
nr_ssbri_cri = 4 //each set has 4 elements
storing ssb indexes in ssb_index array as ssb_index[0] = 1 .. ssb_index[4] = 5
ssb_rsrp[0] = strongest rsrp in first set, ssb_rsrp[4] = strongest rsrp in second set, ..