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.
This commit is contained in:
Tom Henderson
2016-08-25 10:48:35 -07:00
parent 5d3f2d42ae
commit a0e8cead91

View File

@@ -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<ListPositionAllocator> positionAlloc = CreateObject<ListPositionAllocator> ();