fixed attachment of home UEs in lena-dual-stripe
authorNicola Baldo <nbaldo@cttc.es>
Fri, 18 May 2012 15:38:30 +0200
changeset 8780 49aec2f435c9
parent 8779 4d8f6e172656
child 8782 406ee7fcd79d
fixed attachment of home UEs in lena-dual-stripe
src/lte/examples/lena-dual-stripe.cc
--- a/src/lte/examples/lena-dual-stripe.cc	Fri May 18 14:06:10 2012 +0200
+++ b/src/lte/examples/lena-dual-stripe.cc	Fri May 18 15:38:30 2012 +0200
@@ -415,7 +415,17 @@
   mobility.SetPositionAllocator (positionAlloc);
   mobility.Install (homeUes);
   NetDeviceContainer homeUeDevs = lteHelper->InstallUeDevice (homeUes);
-  lteHelper->AttachToClosestEnb (homeUeDevs, homeEnbDevs);
+
+  NetDeviceContainer::Iterator ueDevIt;
+  NetDeviceContainer::Iterator enbDevIt;
+  // attach explicitly each home UE to its home eNB
+  for (ueDevIt = homeUeDevs.Begin (), 
+          enbDevIt = homeEnbDevs.Begin (); 
+       ueDevIt != homeUeDevs.End () && enbDevIt != homeEnbDevs.End (); 
+       ++ueDevIt, ++enbDevIt)
+    {
+      lteHelper->Attach (*ueDevIt, *enbDevIt);
+    }
 
 
   if (epc)