Check state of the UE

This commit is contained in:
Manuel Requena
2013-05-06 11:02:15 +02:00
parent d9d8ea3ee4
commit 0b58e7b0b6

View File

@@ -985,7 +985,8 @@ UeManager::RecvMeasurementReport (LteRrcSap::MeasurementReport msg)
{
uint16_t targetCellId = bestNeighbour->m_cellId;
NS_LOG_LOGIC ("Best neighbour cellId " << targetCellId);
if (bestNeighbour->m_rsrq - m_servingCellMeasures->m_rsrq >= m_rrc->m_neighbourCellHandoverOffset)
if ( (bestNeighbour->m_rsrq - m_servingCellMeasures->m_rsrq >= m_rrc->m_neighbourCellHandoverOffset) &&
(m_state == CONNECTED_NORMALLY) )
{
NS_LOG_LOGIC ("Trigger Handover to cellId " << targetCellId);
NS_LOG_LOGIC ("target cell RSRQ " << (uint16_t) bestNeighbour->m_rsrq);