Fix invalid memory access in PHY measurements

master
Ismael Gomez 6 years ago
parent ebe97221da
commit 63794aa2dc

@ -619,7 +619,7 @@ void cc_worker::update_measurements()
// Serving cell RSRP measurements are averaged over DEFAULT_MEAS_PERIOD_MS then sent to RRC // Serving cell RSRP measurements are averaged over DEFAULT_MEAS_PERIOD_MS then sent to RRC
if (std::isnormal(rsrp_dbm)) { if (std::isnormal(rsrp_dbm)) {
if (!(CURRENT_TTI % phy->pcell_report_period) || !phy->avg_rsrp_dbm) { if (!(CURRENT_TTI % phy->pcell_report_period) || !phy->avg_rsrp_dbm[cc_idx]) {
phy->avg_rsrp_dbm[cc_idx] = rsrp_dbm; phy->avg_rsrp_dbm[cc_idx] = rsrp_dbm;
} else { } else {
phy->avg_rsrp_dbm[cc_idx] = phy->avg_rsrp_dbm[cc_idx] =

Loading…
Cancel
Save