diff --git a/src/lte/model/lte-ue-phy.cc b/src/lte/model/lte-ue-phy.cc index 1b2426d64..7a6427525 100644 --- a/src/lte/model/lte-ue-phy.cc +++ b/src/lte/model/lte-ue-phy.cc @@ -457,6 +457,8 @@ LteUePhy::GenerateCtrlCqiReport (const SpectrumValue& sinr) } double rsrp = sum / (double)rbNum; // averaged SINR among RBs + sum = 0.0; + rbNum = 0; for (it = sinr.ConstValuesBegin (); it != sinr.ConstValuesEnd (); it++) { sum += (*it);