diff --git a/src/lte/examples/lena-x2-handover.cc b/src/lte/examples/lena-x2-handover.cc index be7b4decf..b867bd4ac 100644 --- a/src/lte/examples/lena-x2-handover.cc +++ b/src/lte/examples/lena-x2-handover.cc @@ -39,8 +39,6 @@ NS_LOG_COMPONENT_DEFINE ("EpcX2HandoverExample"); int main (int argc, char *argv[]) { - Config::SetDefault ("ns3::LteSpectrumPhy::CtrlErrorModelEnabled", BooleanValue (false)); - Config::SetDefault ("ns3::LteSpectrumPhy::DataErrorModelEnabled", BooleanValue (false)); // LogLevel logLevel = (LogLevel)(LOG_PREFIX_FUNC | LOG_PREFIX_TIME | LOG_LEVEL_ALL); // LogComponentEnable ("LteHelper", logLevel); @@ -108,6 +106,10 @@ main (int argc, char *argv[]) { positionAlloc->Add (Vector(distance * 2*i - distance, 0, 0)); } + for (uint16_t i = 0; i < numberOfUes; i++) + { + positionAlloc->Add (Vector(0, 0, 0)); + } MobilityHelper mobility; mobility.SetMobilityModel("ns3::ConstantPositionMobilityModel"); mobility.SetPositionAllocator(positionAlloc);