fixed attachment of home UEs in lena-dual-stripe

This commit is contained in:
Nicola Baldo
2012-05-18 15:38:30 +02:00
parent d82b773baf
commit e6ce34c728

View File

@@ -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)