Add checkings for the best neighbour
authorManuel Requena <manuel.requena@cttc.es>
Fri, 03 May 2013 11:04:28 +0200
changeset 10052 f64dd38d2228
parent 10051 abcf7a86df4b
child 10054 3092666e5494
Add checkings for the best neighbour
src/lte/model/lte-enb-rrc.cc
--- a/src/lte/model/lte-enb-rrc.cc	Tue Apr 30 14:03:44 2013 +0100
+++ b/src/lte/model/lte-enb-rrc.cc	Fri May 03 11:04:28 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;
+                    }
                 }
             }