Fix invalid memory access in PHY measurements

This commit is contained in:
Ismael Gomez 2019-06-19 17:01:46 +02:00
parent ebe97221da
commit 63794aa2dc
1 changed files with 1 additions and 1 deletions

View File

@ -619,7 +619,7 @@ void cc_worker::update_measurements()
// Serving cell RSRP measurements are averaged over DEFAULT_MEAS_PERIOD_MS then sent to RRC
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;
} else {
phy->avg_rsrp_dbm[cc_idx] =