prevent assertion in case of no measurements configured for CSI-RS at UE
This commit is contained in:
@@ -905,6 +905,11 @@ void nr_ue_csi_rs_procedures(PHY_VARS_NR_UE *ue,
|
|||||||
rxdataF);
|
rxdataF);
|
||||||
|
|
||||||
|
|
||||||
|
if (csirs_config_pdu->measurement_bitmap == 0) {
|
||||||
|
LOG_D(NR_PHY, "No CSI-RS measurements configured\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
uint32_t noise_power = 0;
|
uint32_t noise_power = 0;
|
||||||
int16_t log2_re = 0;
|
int16_t log2_re = 0;
|
||||||
int16_t log2_maxh = 0;
|
int16_t log2_maxh = 0;
|
||||||
|
|||||||
@@ -1918,7 +1918,6 @@ uint8_t set_csirs_measurement_bitmap(NR_CSI_MeasConfig_t *csi_measconfig, NR_CSI
|
|||||||
AssertFatal(false, "Unexpected measurement report type %d\n", report_config->reportQuantity.present);
|
AssertFatal(false, "Unexpected measurement report type %d\n", report_config->reportQuantity.present);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
AssertFatal(meas_bitmap > 0, "Expected to have at least 1 measurement configured for CSI-RS\n");
|
|
||||||
return meas_bitmap;
|
return meas_bitmap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user