wifi: Assign a random variable stream to beacon Txop
This commit is contained in:
committed by
Stefano Avallone
parent
8b1c21a114
commit
e7bcb4cbc1
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user