From 384300336125ba6ad931409dbbf9285578dc7c36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deronne?= Date: Mon, 14 Aug 2023 19:19:20 +0200 Subject: [PATCH] wifi: Cleanup trick in SpectrumWifiPhyMultipleInterfacesTest to have all interfaces active --- src/wifi/test/spectrum-wifi-phy-test.cc | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/wifi/test/spectrum-wifi-phy-test.cc b/src/wifi/test/spectrum-wifi-phy-test.cc index e6a5023c4..e571d60ef 100644 --- a/src/wifi/test/spectrum-wifi-phy-test.cc +++ b/src/wifi/test/spectrum-wifi-phy-test.cc @@ -1202,29 +1202,6 @@ SpectrumWifiPhyMultipleInterfacesTest::DoRun() ///< in time the transmission is ongoing Time delay{0}; - // make sure all interfaces got active once for all RX PHYs to have them monitored - for (std::size_t rxPhyIndex = 0; rxPhyIndex < m_rxPhys.size(); ++rxPhyIndex) - { - for (std::size_t txPhyIndex = 0; txPhyIndex < m_txPhys.size(); ++txPhyIndex) - { - if (txPhyIndex == rxPhyIndex) - { - // handled at end - continue; - } - auto txPhy = m_txPhys.at(txPhyIndex); - Simulator::Schedule(delay + Seconds((rxPhyIndex + rxPhyIndex) * 0.1), - &SpectrumWifiPhyMultipleInterfacesTest::SwitchChannel, - this, - rxPhyIndex, - txPhy->GetPhyBand(), - txPhy->GetChannelNumber(), - txPhy->GetChannelWidth()); - } - Simulator::Schedule(delay + flushResultsDelay, - &SpectrumWifiPhyMultipleInterfacesTest::Reset, - this); - } // default channels active for all PHYs: each PHY only receives from its associated TX std::vector expectedConnectedPhysPerChannel =