wifi: Assign a random variable stream to beacon Txop

This commit is contained in:
Tom Henderson
2024-05-22 06:32:03 -07:00
committed by Stefano Avallone
parent 8b1c21a114
commit e7bcb4cbc1
3 changed files with 5 additions and 4 deletions

View File

@@ -66,7 +66,7 @@ main(int argc, char* argv[])
double maxExpectedThroughput{0};
RngSeedManager::SetSeed(1);
RngSeedManager::SetRun(1);
RngSeedManager::SetRun(7);
CommandLine cmd(__FILE__);
cmd.AddValue("nMpdus", "Number of aggregated MPDUs", nMpdus);

View File

@@ -341,6 +341,7 @@ ApWifiMac::AssignStreams(int64_t stream)
NS_LOG_FUNCTION(this << stream);
m_beaconJitter->SetStream(stream);
auto currentStream = stream + 1;
currentStream += m_beaconTxop->AssignStreams(currentStream);
currentStream += WifiMac::AssignStreams(currentStream);
return (currentStream - stream);
}

View File

@@ -339,17 +339,17 @@ TestInterBssConstantObssPdAlgo::SetupSimulation()
ap_device2,
WifiPhyState::TX);
// All other PHYs should have stay idle until 4us (preamble detection time).
Simulator::Schedule(Seconds(2.0) + MicroSeconds(13),
Simulator::Schedule(Seconds(2.0) + MicroSeconds(11),
&TestInterBssConstantObssPdAlgo::CheckPhyState,
this,
sta_device1,
WifiPhyState::IDLE);
Simulator::Schedule(Seconds(2.0) + MicroSeconds(13),
Simulator::Schedule(Seconds(2.0) + MicroSeconds(11),
&TestInterBssConstantObssPdAlgo::CheckPhyState,
this,
sta_device2,
WifiPhyState::IDLE);
Simulator::Schedule(Seconds(2.0) + MicroSeconds(13),
Simulator::Schedule(Seconds(2.0) + MicroSeconds(11),
&TestInterBssConstantObssPdAlgo::CheckPhyState,
this,
ap_device1,