lte: Do not generate CQI reports & UE measurements if the UE is not in synch with any cell

We do not generate the CQI report when the UE is not synchronized to any cell. Also, the RLF is detected after the DL CTRL is received by the UE,therefore, we do not need to generate the CQI reports and the UE measurements for a CTRL for which the RLF has been detected.
This commit is contained in:
ZorazeAli
2019-04-16 14:24:08 +02:00
parent 7f096c544b
commit 643192fd07

View File

@@ -506,6 +506,19 @@ void
LteUePhy::GenerateCtrlCqiReport (const SpectrumValue& sinr)
{
NS_LOG_FUNCTION (this);
/**
* We do not generate the CQI report
* when the UE is not synchronized to any cell.
*
* Also, the RLF is detected after the DL CTRL
* is received by the UE,therefore, we do not need
* to generate the CQI reports and the UE measurements
* for a CTRL for which the RLF has been detected.
*/
if (m_cellId == 0)
{
return;
}
GenerateCqiRsrpRsrq (sinr);
}
@@ -652,8 +665,21 @@ LteUePhy::GenerateMixedCqiReport (const SpectrumValue& sinr)
{
NS_LOG_FUNCTION (this);
/**
* We do not generate the CQI report
* when the UE is not synchronized to any cell.
*
* Also, the RLF is detected after the DL CTRL
* is received by the UE,therefore, we do not need
* to generate the CQI reports and the UE measurements
* for a CTRL for which the RLF has been detected.
*/
if (m_cellId == 0)
{
return;
}
NS_ASSERT (m_state != CELL_SEARCH);
NS_ASSERT (m_cellId > 0);
SpectrumValue mixedSinr = (m_rsReceivedPower * m_paLinear);
if (m_dataInterferencePowerUpdated)