From b508f893ed8d1edf6b13d52aa54e3413a5e6cbc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deronne?= Date: Tue, 3 Sep 2024 22:06:49 +0200 Subject: [PATCH] wifi: Fix randomness in TXOP test --- src/wifi/test/wifi-txop-test.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/wifi/test/wifi-txop-test.cc b/src/wifi/test/wifi-txop-test.cc index 8044a7b4e..c48af03c2 100644 --- a/src/wifi/test/wifi-txop-test.cc +++ b/src/wifi/test/wifi-txop-test.cc @@ -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(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 positionAlloc = CreateObject();