Add checkings for the best neighbour

This commit is contained in:
Manuel Requena
2013-05-03 11:04:28 +02:00
parent 14ae4b6072
commit 7f9e7150fc

View File

@@ -970,8 +970,13 @@ UeManager::RecvMeasurementReport (LteRrcSap::MeasurementReport msg)
{
if (it->second->m_rsrq > bestNeighbourRsrq)
{
bestNeighbour = it->second;
bestNeighbourRsrq = it->second->m_rsrq;
Ptr<NeighbourRelation> neighbourRelation = m_rrc->m_neighbourRelationTable[it->second->m_cellId];
if ((neighbourRelation->m_noHo == false) &&
(neighbourRelation->m_noX2 == false))
{
bestNeighbour = it->second;
bestNeighbourRsrq = it->second->m_rsrq;
}
}
}