merge
authorMarco Miozzo <marco.miozzo@cttc.es>
Mon, 06 May 2013 11:29:00 +0200
changeset 10054 3092666e5494
parent 10053 64f68f494c27 (current diff)
parent 10052 f64dd38d2228 (diff)
child 10056 dabc522cd191
merge
--- 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;
+                    }
                 }
             }