--- a/src/lte/model/lte-enb-rrc.cc Mon May 06 11:28:10 2013 +0200
+++ b/src/lte/model/lte-enb-rrc.cc Mon May 06 11:29:00 2013 +0200
@@ -970,8 +970,13 @@
{
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;
+ }
}
}