wifi: Fix randomness in TXOP test

This commit is contained in:
Sébastien Deronne
2024-09-03 22:06:49 +02:00
parent e744136b0b
commit b508f893ed

View File

@@ -325,6 +325,7 @@ WifiTxopTest::DoRun()
SsidValue(Ssid("non-existent-ssid")));
m_staDevices = wifi.Install(phy, mac, wifiStaNodes);
streamNumber += WifiHelper::AssignStreams(m_staDevices, streamNumber);
mac.SetType(
"ns3::ApWifiMac",
@@ -349,6 +350,7 @@ WifiTxopTest::DoRun()
mac.SetEdca(AC_BE, "TxopLimits", AttributeContainerValue<TimeValue>(std::list{m_apTxopLimit}));
m_apDevices = wifi.Install(phy, mac, wifiApNode);
streamNumber += WifiHelper::AssignStreams(m_apDevices, streamNumber);
// schedule association requests at different times. One station's SSID is
// set to the correct value before initialization, so that such a station
@@ -365,9 +367,6 @@ WifiTxopTest::DoRun()
Ssid("wifi-txop-ssid"));
}
// Assign fixed streams to random variables in use
WifiHelper::AssignStreams(m_apDevices, streamNumber);
MobilityHelper mobility;
Ptr<ListPositionAllocator> positionAlloc = CreateObject<ListPositionAllocator>();