From a0e8cead91619e88f60fca029669341fc5033291 Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Thu, 25 Aug 2016 10:48:35 -0700 Subject: [PATCH] wifi: Assign stream numbers to random variables in bug 2222 test Otherwise, the test may fail if the stream assignment on backoff generation is perturbed. --- src/wifi/test/wifi-test.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/wifi/test/wifi-test.cc b/src/wifi/test/wifi-test.cc index 9d5d1c961..a4397b986 100644 --- a/src/wifi/test/wifi-test.cc +++ b/src/wifi/test/wifi-test.cc @@ -996,8 +996,10 @@ Bug2222TestCase::DoRun (void) m_countInternalCollisions = 0; //Generate same backoff for AC_VI and AC_VO + //The below combination will work RngSeedManager::SetSeed (1); - RngSeedManager::SetRun (31); + RngSeedManager::SetRun (2); + int64_t streamNumber = 100; NodeContainer wifiNodes; wifiNodes.Create (2); @@ -1015,6 +1017,9 @@ Bug2222TestCase::DoRun (void) NetDeviceContainer wifiDevices; wifiDevices = wifi.Install (phy, mac, wifiNodes); + // Assign fixed streams to random variables in use + wifi.AssignStreams (wifiDevices, streamNumber); + MobilityHelper mobility; Ptr positionAlloc = CreateObject ();