From 460ab5014b12fed56aec02a4cf13b9513c4bfde7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deronne?= Date: Sun, 31 Mar 2024 16:26:57 +0200 Subject: [PATCH] wifi: Random seed and run of RAA example can be changed by command-line arguments --- src/wifi/examples/wifi-manager-example.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wifi/examples/wifi-manager-example.cc b/src/wifi/examples/wifi-manager-example.cc index e5d289e71..7776f1e88 100644 --- a/src/wifi/examples/wifi-manager-example.cc +++ b/src/wifi/examples/wifi-manager-example.cc @@ -230,6 +230,9 @@ main(int argc, char* argv[]) uint32_t maxSlrc = 7; uint32_t maxSsrc = 7; + RngSeedManager::SetSeed(1); + RngSeedManager::SetRun(2); + CommandLine cmd(__FILE__); cmd.AddValue("maxSsrc", "The maximum number of retransmission attempts for a RTS packet", @@ -673,10 +676,8 @@ main(int argc, char* argv[]) clientDevice = wifi.Install(wifiPhy, wifiMac, clientNode); } - RngSeedManager::SetSeed(1); - RngSeedManager::SetRun(2); wifi.AssignStreams(serverDevice, 100); - wifi.AssignStreams(clientDevice, 100); + wifi.AssignStreams(clientDevice, 200); Config::Set("/NodeList/*/DeviceList/*/$ns3::WifiNetDevice/Mac/BE_MaxAmpduSize", UintegerValue(maxAmpduSize));