From ef52f7c584a3ba49c65b7b16769ff754ebe9dead Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deronne?= Date: Mon, 13 Apr 2020 19:58:54 +0200 Subject: [PATCH] wifi: Remove workarounds in Issue40TestCase and Issue169TestCase --- src/wifi/test/wifi-test.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/wifi/test/wifi-test.cc b/src/wifi/test/wifi-test.cc index 9af138d89..d83a448c3 100644 --- a/src/wifi/test/wifi-test.cc +++ b/src/wifi/test/wifi-test.cc @@ -2293,7 +2293,7 @@ Issue40TestCase::RunOne (bool useAmpdu) MobilityHelper mobility; Ptr positionAlloc = CreateObject (); positionAlloc->Add (Vector (0.0, 0.0, 0.0)); - positionAlloc->Add (Vector (1.0, 0.0, 0.0)); + positionAlloc->Add (Vector (10.0, 0.0, 0.0)); mobility.SetPositionAllocator (positionAlloc); mobility.SetMobilityModel ("ns3::ConstantPositionMobilityModel"); @@ -2304,10 +2304,9 @@ Issue40TestCase::RunOne (bool useAmpdu) Config::Connect ("/NodeList/*/DeviceList/*/RemoteStationManager/MacTxFinalDataFailed", MakeCallback (&Issue40TestCase::TxFinalDataFailedCallback, this)); Config::Connect ("/NodeList/*/DeviceList/*/$ns3::WifiNetDevice/Mac/$ns3::WifiMac/MacRx", MakeCallback (&Issue40TestCase::RxSuccessCallback, this)); - Config::Set ("/NodeList/*/DeviceList/*/$ns3::WifiNetDevice/Phy/ChannelWidth", UintegerValue (20)); //see issue #159 Ptr staWaypointMobility = DynamicCast(wifiStaNode.Get(0)->GetObject()); - staWaypointMobility->AddWaypoint (Waypoint (Seconds(1.0), Vector (1.0, 0.0, 0.0))); + staWaypointMobility->AddWaypoint (Waypoint (Seconds(1.0), Vector (10.0, 0.0, 0.0))); staWaypointMobility->AddWaypoint (Waypoint (Seconds(1.5), Vector (50.0, 0.0, 0.0))); if (useAmpdu) @@ -2376,7 +2375,7 @@ public: private: /** - * Triggers the arrival of 1000 Byte-long packets in the source device + * Triggers the transmission of a 1000 Byte-long data packet from the source device * \param numPackets number of packets in burst * \param sourceDevice pointer to the source NetDevice * \param destination address of the destination device @@ -2467,8 +2466,6 @@ Issue169TestCase::DoRun (void) mobility.Install (wifiApNode); mobility.Install (wifiStaNode); - Config::Set ("/NodeList/*/DeviceList/*/$ns3::WifiNetDevice/Phy/ChannelWidth", UintegerValue (20)); //see issue #159 - Config::Connect ("/NodeList/*/DeviceList/*/$ns3::WifiNetDevice/Phy/$ns3::WifiPhy/PhyTxPsduBegin", MakeCallback (&Issue169TestCase::TxCallback, this)); //Send best-effort packet (i.e. priority 0)