9#include "ns3/constant-obss-pd-algorithm.h"
10#include "ns3/he-phy.h"
11#include "ns3/he-ppdu.h"
12#include "ns3/ht-ppdu.h"
13#include "ns3/interference-helper.h"
15#include "ns3/multi-model-spectrum-channel.h"
16#include "ns3/nist-error-rate-model.h"
17#include "ns3/non-communicating-net-device.h"
18#include "ns3/ofdm-ppdu.h"
19#include "ns3/pointer.h"
20#include "ns3/rng-seed-manager.h"
21#include "ns3/spectrum-wifi-helper.h"
22#include "ns3/spectrum-wifi-phy.h"
24#include "ns3/threshold-preamble-detection-model.h"
25#include "ns3/vht-configuration.h"
26#include "ns3/vht-ppdu.h"
27#include "ns3/waveform-generator.h"
28#include "ns3/wifi-mac-header.h"
29#include "ns3/wifi-net-device.h"
30#include "ns3/wifi-phy-listener.h"
31#include "ns3/wifi-psdu.h"
32#include "ns3/wifi-spectrum-value-helper.h"
33#include "ns3/wifi-utils.h"
72 void DoRun()
override;
124 dBm_u expectedCcaThreshold);
143 :
TestCase(
"Wi-Fi PHY CCA thresholds test"),
144 m_CcaEdThreshold{-62.0},
145 m_CcaSensitivity{-82.0},
146 m_secondaryCcaSensitivityThresholds{-72.0, -72.0, -69.0},
230 dBm_u expectedCcaThreshold)
233 const auto actualThreshold = phy->GetCcaThreshold(ppdu, channelType);
234 NS_LOG_INFO((ppdu ==
nullptr ?
"any signal" :
"a PPDU")
235 <<
" in " << channelType <<
" channel: " << actualThreshold <<
"dBm");
237 expectedCcaThreshold,
239 "Actual CCA threshold for "
240 << (ppdu ==
nullptr ?
"any signal" :
"a PPDU") <<
" in "
241 << channelType <<
" channel " << actualThreshold
242 <<
"dBm does not match expected threshold "
243 << expectedCcaThreshold <<
"dBm");
639 const std::vector<Time>& per20MhzDurations)
override
641 NS_LOG_FUNCTION(
this << duration << channelType << per20MhzDurations.size());
700 void DoRun()
override;
746 const std::vector<Time>& expectedPer20MhzDurations);
808 const std::vector<TxSignalInfo>& generatedSignals,
809 const std::vector<TxPpduInfo>& generatedPpdus,
810 const std::vector<StateCheckPoint>& stateCheckpoints,
811 const std::vector<CcaCheckPoint>& ccaCheckpoints);
830 std::shared_ptr<CcaTestPhyListener>
838 :
TestCase(
"Wi-Fi PHY CCA indication test"),
839 m_numSignalGenerators(2),
852 NS_LOG_FUNCTION(
this << signalGenerator << txPower << frequency << bandwidth << duration);
855 bandInfo.
fc = frequency * 1e6;
856 bandInfo.
fl = bandInfo.
fc - ((bandwidth / 2) * 1e6);
857 bandInfo.
fh = bandInfo.
fc + ((bandwidth / 2) * 1e6);
859 bands.push_back(bandInfo);
863 *signalPsd =
DbmToW(txPower) / (bandwidth * 1e6);
865 signalGenerator->SetTxPowerSpectralDensity(signalPsd);
866 signalGenerator->SetPeriod(duration);
867 signalGenerator->Start();
875 signalGenerator->Stop();
908 m_txPhy->SetTxPowerStart(txPower);
909 m_txPhy->SetTxPowerEnd(txPower);
927 m_rxPhy->GetAttribute(
"State", ptr);
929 currentState = state->GetState();
932 "PHY State " << currentState <<
" does not match expected state "
938 Time expectedEndTime,
940 const std::vector<Time>& expectedPer20MhzDurations)
945 <<
" does not match expected time " << expectedEndTime
950 <<
" does not match expected channel type "
953 expectedPer20MhzDurations.size(),
954 "PHY CCA-BUSY per-20 MHz durations does not match expected vector"
956 for (std::size_t i = 0; i < expectedPer20MhzDurations.size(); ++i)
959 expectedPer20MhzDurations.at(i),
960 "PHY CCA-BUSY per-20 MHz duration at index "
961 << i <<
" does not match expected duration at "
974 const std::vector<TxSignalInfo>& generatedSignals,
975 const std::vector<TxPpduInfo>& generatedPpdus,
976 const std::vector<StateCheckPoint>& stateCheckpoints,
977 const std::vector<CcaCheckPoint>& ccaCheckpoints)
979 for (
const auto& generatedPpdu : generatedPpdus)
985 generatedPpdu.centerFreq,
986 generatedPpdu.bandwidth);
989 std::size_t index = 0;
990 for (
const auto& generatedSignal : generatedSignals)
996 generatedSignal.power,
997 generatedSignal.centerFreq,
998 generatedSignal.bandwidth,
999 generatedSignal.duration);
1002 for (
const auto& checkpoint : ccaCheckpoints)
1008 checkpoint.expectedChannelListType,
1009 checkpoint.expectedPer20MhzDurations);
1012 for (
const auto& checkpoint : stateCheckpoints)
1017 checkpoint.expectedPhyState);
1041 rxDev->SetVhtConfiguration(vhtConfiguration);
1046 m_rxPhy->SetInterferenceHelper(rxInterferenceHelper);
1048 m_rxPhy->SetErrorRateModel(rxErrorModel);
1051 m_rxPhy->SetPreambleDetectionModel(preambleDetectionModel);
1052 m_rxPhy->AddChannel(spectrumChannel);
1056 rxNode->AddDevice(rxDev);
1063 m_txPhy->SetInterferenceHelper(txInterferenceHelper);
1065 m_txPhy->SetErrorRateModel(txErrorModel);
1066 m_txPhy->AddChannel(spectrumChannel);
1070 txNode->AddDevice(txDev);
1078 signalGenerator->SetDevice(signalGeneratorDev);
1079 signalGenerator->SetChannel(spectrumChannel);
1080 signalGenerator->SetDutyCycle(1);
1081 signalGeneratorNode->AddDevice(signalGeneratorDev);
1091 int64_t streamNumber = 0;
1092 m_rxPhy->AssignStreams(streamNumber);
1093 m_txPhy->AssignStreams(streamNumber);
1107 std::vector<Time> expectedPer20MhzCcaBusyDurations{};
1118 "Reception of a signal that occupies P20 below ED threshold");
1125 WifiPhyState::IDLE},
1138 "Reception of signal that occupies P20 above ED threshold");
1143 {
aCcaTime, WifiPhyState::CCA_BUSY},
1145 WifiPhyState::CCA_BUSY},
1167 : std::vector<Time>{})}});
1176 "Reception of two 20 MHz signals that occupies P20 below ED threshold with "
1177 "sum above ED threshold");
1186 WifiPhyState::CCA_BUSY},
1208 : std::vector<Time>{})}});
1218 "Reception of a 20 MHz HE PPDU that occupies P20 below CCA sensitivity threshold");
1225 WifiPhyState::IDLE},
1240 "Reception of a 20 MHz HE PPDU that occupies P20 above CCA sensitivity threshold");
1246 {
aCcaTime, WifiPhyState::CCA_BUSY},
1258 ? std::vector<Time>{
Seconds(0),
1268 : std::vector<Time>{})}});
1278 "Reception of a 40 MHz HE PPDU that occupies P20 below CCA sensitivity threshold");
1285 WifiPhyState::IDLE},
1300 "Reception of a 40 MHz HE PPDU that occupies P40 above CCA sensitivity threshold");
1306 {
aCcaTime, WifiPhyState::CCA_BUSY},
1310 : WifiPhyState::CCA_BUSY},
1320 ? std::vector<Time>{
Seconds(0),
1330 : std::vector<Time>{})}});
1341 "Reception of a 20 MHz signal that occupies S20 below ED threshold");
1348 WifiPhyState::IDLE},
1361 "Reception of a 20 MHz signal that occupies S20 above ED threshold");
1369 WifiPhyState::IDLE},
1397 "Reception of a 40 MHz signal that occupies P40 above ED threshold");
1403 {
aCcaTime, WifiPhyState::CCA_BUSY},
1405 WifiPhyState::CCA_BUSY},
1433 "Reception of a signal that occupies S20 followed by the reception of "
1434 "another signal that occupies P20");
1443 WifiPhyState::CCA_BUSY},
1446 WifiPhyState::CCA_BUSY},
1490 "Reception of a signal that occupies P20 followed by the reception of "
1491 "another signal that occupies S20");
1498 {
aCcaTime, WifiPhyState::CCA_BUSY},
1500 WifiPhyState::CCA_BUSY},
1503 WifiPhyState::CCA_BUSY},
1548 "Reception of a 20 MHz HE PPDU that occupies S20 below CCA sensitivity threshold");
1555 WifiPhyState::IDLE},
1569 "Reception of a 20 MHz HE PPDU that occupies S20 above CCA sensitivity threshold");
1576 WifiPhyState::IDLE},
1607 "Reception of a 20 MHz signal that occupies S20 above ED threshold followed by a 40 "
1608 "MHz HE PPDU that occupies P40 below CCA sensitivity threshold");
1638 : std::vector<Time>{})},
1666 "Reception of a 20 MHz signal that occupies the first subchannel of "
1667 "S40 below ED threshold");
1674 WifiPhyState::IDLE},
1689 "Reception of a 20 MHz signal that occupies the first subchannel of "
1690 "S40 above ED threshold");
1697 WifiPhyState::IDLE},
1724 "Reception of a 20 MHz signal that occupies the second subchannel of "
1725 "S40 below ED threshold");
1732 WifiPhyState::IDLE},
1747 "Reception of a 20 MHz signal that occupies the second subchannel of "
1748 "S40 above ED threshold");
1755 WifiPhyState::IDLE},
1782 "Reception of a 40 MHz signal that occupies S40 below ED threshold");
1789 WifiPhyState::IDLE},
1804 "Reception of a 20 MHz signal that occupies the second subchannel of "
1805 "S40 above ED threshold");
1812 WifiPhyState::IDLE},
1839 "Reception of a 80 MHz signal that occupies P80 above ED threshold");
1844 {
aCcaTime, WifiPhyState::CCA_BUSY},
1846 WifiPhyState::CCA_BUSY},
1873 "Reception of a 20 MHz signal that occupies S40 followed by the "
1874 "reception of another 20 MHz signal that occupies P20");
1883 WifiPhyState::CCA_BUSY},
1886 WifiPhyState::CCA_BUSY},
1928 "Reception of a signal that occupies S40 followed by the reception of "
1929 "another signal that occupies S20");
1939 WifiPhyState::IDLE},
1982 "Reception of a 40 MHz HE PPDU that occupies S40 below CCA sensitivity threshold");
1989 WifiPhyState::IDLE},
2003 "Reception of a 40 MHz HE PPDU that occupies S40 above CCA sensitivity threshold");
2010 WifiPhyState::IDLE},
2039 "Reception of a 40 MHz signal that occupies S40 above ED threshold followed by a 80 "
2040 "MHz HE PPDU that occupies P80 below CCA sensitivity threshold");
2093 "Reception of a 80 MHz HE PPDU that occupies the 40 MHz band above CCA "
2094 "sensitivity threshold");
2099 {
aCcaTime, WifiPhyState::CCA_BUSY},
2101 WifiPhyState::CCA_BUSY},
2118 : std::vector<Time>{
Seconds(0),
2123 : std::vector<Time>{})},
2137 : std::vector<Time>{
Seconds(0),
2142 : std::vector<Time>{})}});
2152 "Reception of a 80 MHz HE PPDU that occupies the 40 MHz band above CCA "
2153 "sensitivity threshold");
2159 {
aCcaTime, WifiPhyState::CCA_BUSY},
2161 WifiPhyState::CCA_BUSY},
2183 : std::vector<Time>{})},
2202 : std::vector<Time>{})}});
2212 "Reception of a 40 MHz HE PPDU that does not occupy the operational channel");
2219 WifiPhyState::IDLE},
2235 "Reception of a 20 MHz signal that occupies the first subchannel of "
2236 "S80 below ED threshold");
2243 WifiPhyState::IDLE},
2257 "Reception of a 20 MHz signal that occupies the first subchannel of "
2258 "S80 above ED threshold");
2265 WifiPhyState::IDLE},
2288 "Reception of a 20 MHz signal that occupies the second subchannel of "
2289 "S80 below ED threshold");
2296 WifiPhyState::IDLE},
2310 "Reception of a 20 MHz signal that occupies the second subchannel of "
2311 "S80 above ED threshold");
2318 WifiPhyState::IDLE},
2341 "Reception of a 20 MHz signal that occupies the third subchannel of "
2342 "S80 below ED threshold");
2349 WifiPhyState::IDLE},
2363 "Reception of a 20 MHz signal that occupies the third subchannel of "
2364 "S80 above ED threshold");
2371 WifiPhyState::IDLE},
2394 "Reception of a 20 MHz signal that occupies the fourth subchannel of "
2395 "S80 below ED threshold");
2402 WifiPhyState::IDLE},
2416 "Reception of a 20 MHz signal that occupies the fourth subchannel of "
2417 "S80 above ED threshold");
2424 WifiPhyState::IDLE},
2447 "Reception of a 40 MHz signal that occupies the first and second "
2448 "subchannels of S80 below ED threshold");
2455 WifiPhyState::IDLE},
2469 "Reception of a 40 MHz signal that occupies the first and second "
2470 "subchannels of S80 above ED threshold");
2477 WifiPhyState::IDLE},
2500 "Reception of a 40 MHz signal that occupies the third and fourth "
2501 "subchannels of S80 below ED threshold");
2508 WifiPhyState::IDLE},
2522 "Reception of a 40 MHz signal that occupies the third and fourth "
2523 "subchannels of S80 above ED threshold");
2530 WifiPhyState::IDLE},
2553 "Reception of a 80 MHz signal that occupies S80 below ED threshold");
2560 WifiPhyState::IDLE},
2574 "Reception of a 80 MHz signal that occupies S80 above ED threshold");
2581 WifiPhyState::IDLE},
2605 "Reception of a 160 MHz signal that occupies the whole band below ED threshold");
2612 WifiPhyState::IDLE},
2627 "Reception of a 160 MHz signal that occupies the whole band above ED threshold");
2632 {
aCcaTime, WifiPhyState::CCA_BUSY},
2634 WifiPhyState::CCA_BUSY},
2657 "Reception of a 20 MHz signal that occupies S80 followed by the "
2658 "reception of another 20 MHz signal that occupies P20");
2667 WifiPhyState::CCA_BUSY},
2670 WifiPhyState::CCA_BUSY},
2704 "Reception of a signal that occupies S80 followed by the reception of "
2705 "another signal that occupies S40");
2715 WifiPhyState::IDLE},
2749 "Reception of a signal that occupies S80 followed by the reception of "
2750 "another signal that occupies S20");
2760 WifiPhyState::IDLE},
2795 "Reception of a 40 MHz HE PPDU that occupies S40 below CCA sensitivity threshold");
2802 WifiPhyState::IDLE},
2816 "Reception of a 80 MHz HE PPDU that occupies S80 above CCA sensitivity threshold");
2823 WifiPhyState::IDLE},
2846 "Reception of a 20 MHz signal that generates a per20bitmap parameter "
2847 "change when previous CCA indication reports IDLE");
2854 WifiPhyState::IDLE},
2878 "Reception of a 20 MHz signal that generates a per20bitmap parameter change when "
2879 "previous CCA indication reports BUSY for the primary channel");
2886 {
aCcaTime, WifiPhyState::CCA_BUSY},
2888 WifiPhyState::CCA_BUSY},
2951 signalGenerator->Dispose();
2952 signalGenerator =
nullptr;
PHY listener for CCA tests.
void NotifyOn() override
Notify listeners that we went to switch on.
WifiChannelListType m_lastCcaBusyChannelType
Channel type indication for the last CCA-BUSY notification.
void NotifyRxEndError() override
We have received the last bit of a packet for which NotifyRxStart was invoked first and,...
void NotifyTxStart(Time duration, dBm_u txPower) override
void NotifyCcaBusyStart(Time duration, WifiChannelListType channelType, const std::vector< Time > &per20MhzDurations) override
void NotifySleep() override
Notify listeners that we went to sleep.
void NotifyRxEndOk() override
We have received the last bit of a packet for which NotifyRxStart was invoked first and,...
CcaTestPhyListener()=default
void NotifyOff() override
Notify listeners that we went to switch off.
std::size_t m_notifications
Number of CCA notifications.
void NotifyRxStart(Time duration) override
Time m_endCcaBusy
End of the CCA-BUSY duration.
void Reset()
Reset function.
void NotifyWakeup() override
Notify listeners that we woke up.
std::vector< Time > m_lastPer20MhzCcaBusyDurations
End of the CCA-BUSY durations per 20 MHz.
void NotifySwitchingStart(Time duration) override
Wifi Phy Threshold Test base class.
MHz_u m_channelWidth
Operating channel width.
std::size_t m_numSignalGenerators
The number of non-wifi signals generators needed for the test.
void CheckPhyState(WifiPhyState expectedState)
Check the PHY state.
void DoTeardown() override
Implementation to do any local setup required for this TestCase.
void CheckLastCcaBusyNotification(Time expectedEndTime, WifiChannelListType expectedChannelType, const std::vector< Time > &expectedPer20MhzDurations)
Check the last CCA-BUSY notification.
MHz_u m_frequency
Operating frequency.
void StartSignal(Ptr< WaveformGenerator > signalGenerator, dBm_u txPower, MHz_u frequency, MHz_u bandwidth, Time duration)
Start to generate a signal.
void RunOne()
Run one function.
void SendHeSuPpdu(dBm_u txPower, MHz_u frequency, MHz_u bandwidth)
Send an HE SU PPDU.
void DoCheckPhyState(WifiPhyState expectedState)
Check the PHY state.
std::shared_ptr< CcaTestPhyListener > m_rxPhyStateListener
Listener for PHY state transitions.
std::vector< Ptr< WaveformGenerator > > m_signalGenerators
Generators of non-wifi signals.
void ScheduleTest(Time delay, const std::vector< TxSignalInfo > &generatedSignals, const std::vector< TxPpduInfo > &generatedPpdus, const std::vector< StateCheckPoint > &stateCheckpoints, const std::vector< CcaCheckPoint > &ccaCheckpoints)
Schedule test to perform.
void DoSetup() override
Implementation to do any local setup required for this TestCase.
void DoRun() override
Implementation to actually run this TestCase.
void LogScenario(const std::string &log) const
Log scenario description.
void Reset()
Reset function.
Ptr< SpectrumWifiPhy > m_rxPhy
PHY object of the receiver.
Ptr< SpectrumWifiPhy > m_txPhy
PHY object of the transmitter.
void StopSignal(Ptr< WaveformGenerator > signalGenerator)
Stop to generate a signal.
WifiPhyCcaIndicationTest()
Wi-Fi PHY CCA Test Suite.
void VerifyCcaThreshold(const Ptr< PhyEntity > phy, const Ptr< const WifiPpdu > ppdu, WifiChannelListType channelType, dBm_u expectedCcaThreshold)
Function to verify the CCA threshold that is being reported by a given PHY entity upon reception of a...
Ptr< WifiNetDevice > m_device
The WifiNetDevice.
void DoSetup() override
Implementation to do any local setup required for this TestCase.
void DoTeardown() override
Implementation to do any local setup required for this TestCase.
Ptr< SpectrumWifiPhy > m_phy
The spectrum PHY.
Ptr< ObssPdAlgorithm > m_obssPdAlgorithm
The OBSS-PD algorithm.
dBm_u m_obssPdLevel
The current OBSS-PD level.
Ptr< WifiPsdu > CreateDummyPsdu()
Create a dummy PSDU whose payload is 1000 bytes.
VhtConfiguration::SecondaryCcaSensitivityThresholds m_secondaryCcaSensitivityThresholds
The current CCA sensitivity thresholds for signals that do not occupy the primary 20 MHz channel.
void RunOne()
Run tests for given CCA attributes.
Ptr< VhtConfiguration > m_vhtConfiguration
The VHT configuration.
void DoRun() override
Implementation to actually run this TestCase.
Ptr< VhtPpdu > CreateDummyVhtPpdu(MHz_u bandwidth, const WifiPhyOperatingChannel &channel)
Create a VHT PPDU.
Ptr< HtPpdu > CreateDummyHtPpdu(MHz_u bandwidth, const WifiPhyOperatingChannel &channel)
Create a HT PPDU.
Ptr< OfdmPpdu > CreateDummyNonHtPpdu(const WifiPhyOperatingChannel &channel)
Create a non-HT PPDU.
dBm_u m_CcaEdThreshold
The current CCA-ED threshold for a 20 MHz subchannel.
WifiPhyCcaThresholdsTest()
dBm_u m_CcaSensitivity
The current CCA sensitivity threshold for signals that occupy the primary 20 MHz channel.
Ptr< HePpdu > CreateDummyHePpdu(MHz_u bandwidth, const WifiPhyOperatingChannel &channel)
Create a HE PPDU.
static WifiMode GetHeMcs0()
Return MCS 0 from HE MCS values.
static WifiMode GetHtMcs0()
Return MCS 0 from HT MCS values.
static WifiMode GetOfdmRate6Mbps()
Return a WifiMode for OFDM at 6 Mbps.
AttributeValue implementation for Pointer.
Smart pointer class similar to boost::intrusive_ptr.
static void SetRun(uint64_t run)
Set the run number of simulation.
static void SetSeed(uint32_t seed)
Set the seed.
static EventId Schedule(const Time &delay, FUNC f, Ts &&... args)
Schedule an event to expire after delay.
static void Destroy()
Execute the events scheduled with ScheduleDestroy().
static Time Now()
Return the current simulation virtual time.
static void Run()
Run the simulation.
static EventId ScheduleNow(FUNC f, Ts &&... args)
Schedule an event to expire Now.
void AddTestCase(TestCase *testCase, Duration duration=Duration::QUICK)
Add an individual child TestCase to this test suite.
Simulation virtual time values and global simulation resolution.
std::tuple< dBm_u, dBm_u, dBm_u > SecondaryCcaSensitivityThresholds
Tuple identifying CCA sensitivity thresholds for secondary channels.
static WifiMode GetVhtMcs0()
Return MCS 0 from VHT MCS values.
std::tuple< uint8_t, MHz_u, WifiPhyBand, uint8_t > ChannelTuple
Tuple identifying a segment of an operating channel.
receive notifications about PHY events.
Class that keeps track of all information about the current PHY operating channel.
static ConstIterator FindFirst(uint8_t number, MHz_u frequency, MHz_u width, WifiStandard standard, WifiPhyBand band, ConstIterator start=m_frequencyChannels.begin())
Find the first frequency segment matching the specified parameters.
This objects implements the PHY state machine of the Wifi device.
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
Ptr< T > CreateObject(Args &&... args)
Create an object by type, with varying number of constructor parameters.
Ptr< T > Create(Ts &&... args)
Create class instances by constructors with varying numbers of arguments and return them by Ptr.
#define NS_TEST_ASSERT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report and abort if not.
#define NS_TEST_EXPECT_MSG_EQ_TOL(actual, limit, tol, msg)
Test that actual and expected (limit) values are equal to plus or minus some tolerance and report if ...
Time MicroSeconds(uint64_t value)
Construct a Time in the indicated unit.
Time NanoSeconds(uint64_t value)
Construct a Time in the indicated unit.
Time Seconds(double value)
Construct a Time in the indicated unit.
WifiChannelListType
Enumeration of the possible channel-list parameter elements defined in Table 8-5 of IEEE 802....
@ WIFI_PHY_BAND_5GHZ
The 5 GHz band.
@ WIFI_MOD_CLASS_OFDM
OFDM (Clause 17)
@ WIFI_MOD_CLASS_HT
HT (Clause 19)
@ WIFI_MOD_CLASS_VHT
VHT (Clause 22)
@ WIFI_MOD_CLASS_HE
HE (Clause 27)
@ WIFI_CHANLIST_SECONDARY40
@ WIFI_CHANLIST_SECONDARY
@ WIFI_CHANLIST_SECONDARY80
Every class exported by the ns3 library is enclosed in the ns3 namespace.
WifiPhyState
The state of the PHY layer.
std::vector< BandInfo > Bands
Container of BandInfo.
Ptr< T1 > DynamicCast(const Ptr< T2 > &p)
Cast a Ptr.
Watt_u DbmToW(dBm_u val)
Convert from dBm to Watts.
structure that holds information to perform CCA check
Time expectedCcaEndTime
expected CCA_BUSY end time
Time timePoint
time at which the check will performed
std::vector< Time > expectedPer20MhzDurations
expected per-20 MHz CCA duration
WifiChannelListType expectedChannelListType
expected channel list type
structure that holds information to perform PHY state check
WifiPhyState expectedPhyState
expected PHY state
Time timePoint
time at which the check will performed
structure that holds information to generate PPDUs
dBm_u power
transmit power to use
Time startTime
time at which transmission will be started
MHz_u centerFreq
center frequency to use
MHz_u bandwidth
bandwidth to use
structure that holds information to generate signals
MHz_u centerFreq
center frequency to use
Time startTime
time at which transmission will be started
MHz_u bandwidth
bandwidth to use
Time duration
the duration of the transmission
dBm_u power
transmit power to use
The building block of a SpectrumModel.
double fc
center frequency
double fl
lower limit of subband
double fh
upper limit of subband
constexpr MHz_u S80_CENTER_FREQUENCY
static WifiPhyCcaTestSuite WifiPhyCcaTestSuite
the test suite
constexpr MHz_u S20_CENTER_FREQUENCY
constexpr MHz_u P20_CENTER_FREQUENCY
constexpr MHz_u S40_CENTER_FREQUENCY
constexpr MHz_u P160_CENTER_FREQUENCY
constexpr MHz_u P80_CENTER_FREQUENCY
constexpr MHz_u P40_CENTER_FREQUENCY
const std::map< MHz_u, Time > PpduDurations