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)