From e6ce34c7284404bcff2e38f02f6d566ec41b37d6 Mon Sep 17 00:00:00 2001 From: Nicola Baldo Date: Fri, 18 May 2012 15:38:30 +0200 Subject: [PATCH] fixed attachment of home UEs in lena-dual-stripe --- src/lte/examples/lena-dual-stripe.cc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/lte/examples/lena-dual-stripe.cc b/src/lte/examples/lena-dual-stripe.cc index 62212f8a5..d365078b8 100644 --- a/src/lte/examples/lena-dual-stripe.cc +++ b/src/lte/examples/lena-dual-stripe.cc @@ -415,7 +415,17 @@ main (int argc, char *argv[]) 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)