A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
wifi-phy-cca-test.cc File Reference
#include "ns3/constant-obss-pd-algorithm.h"
#include "ns3/he-phy.h"
#include "ns3/he-ppdu.h"
#include "ns3/ht-ppdu.h"
#include "ns3/interference-helper.h"
#include "ns3/log.h"
#include "ns3/multi-model-spectrum-channel.h"
#include "ns3/nist-error-rate-model.h"
#include "ns3/non-communicating-net-device.h"
#include "ns3/ofdm-ppdu.h"
#include "ns3/pointer.h"
#include "ns3/rng-seed-manager.h"
#include "ns3/spectrum-wifi-helper.h"
#include "ns3/spectrum-wifi-phy.h"
#include "ns3/test.h"
#include "ns3/threshold-preamble-detection-model.h"
#include "ns3/vht-configuration.h"
#include "ns3/vht-ppdu.h"
#include "ns3/waveform-generator.h"
#include "ns3/wifi-mac-header.h"
#include "ns3/wifi-net-device.h"
#include "ns3/wifi-phy-listener.h"
#include "ns3/wifi-psdu.h"
#include "ns3/wifi-spectrum-value-helper.h"
#include "ns3/wifi-utils.h"
#include <memory>
#include <vector>
+ Include dependency graph for wifi-phy-cca-test.cc:

Go to the source code of this file.

Classes

struct  WifiPhyCcaIndicationTest::CcaCheckPoint
 structure that holds information to perform CCA check More...
 
class  CcaTestPhyListener
 PHY listener for CCA tests. More...
 
struct  WifiPhyCcaIndicationTest::StateCheckPoint
 structure that holds information to perform PHY state check More...
 
struct  WifiPhyCcaIndicationTest::TxPpduInfo
 structure that holds information to generate PPDUs More...
 
struct  WifiPhyCcaIndicationTest::TxSignalInfo
 structure that holds information to generate signals More...
 
class  WifiPhyCcaIndicationTest
 Wifi Phy Threshold Test base class. More...
 
class  WifiPhyCcaTestSuite
 Wi-Fi PHY CCA Test Suite. More...
 
class  WifiPhyCcaThresholdsTest
 PHY CCA thresholds test. More...
 

Variables

const Time aCcaTime = MicroSeconds(4) + smallDelta
 
constexpr MHz_u P160_CENTER_FREQUENCY = P80_CENTER_FREQUENCY + 40
 
constexpr MHz_u P20_CENTER_FREQUENCY = 5180
 
constexpr MHz_u P40_CENTER_FREQUENCY = P20_CENTER_FREQUENCY + 10
 
constexpr MHz_u P80_CENTER_FREQUENCY = P40_CENTER_FREQUENCY + 20
 
const std::map< MHz_u, TimePpduDurations
 
constexpr MHz_u S20_CENTER_FREQUENCY = P20_CENTER_FREQUENCY + 20
 
constexpr MHz_u S40_CENTER_FREQUENCY = P40_CENTER_FREQUENCY + 40
 
constexpr MHz_u S80_CENTER_FREQUENCY = P80_CENTER_FREQUENCY + 80
 
const Time smallDelta = NanoSeconds(1)
 
static WifiPhyCcaTestSuite WifiPhyCcaTestSuite
 the test suite
 

Variable Documentation

◆ aCcaTime

const Time aCcaTime = MicroSeconds(4) + smallDelta

Definition at line 51 of file wifi-phy-cca-test.cc.

Referenced by WifiPhyCcaIndicationTest::RunOne().

◆ P160_CENTER_FREQUENCY

MHz_u P160_CENTER_FREQUENCY = P80_CENTER_FREQUENCY + 40
constexpr

Definition at line 48 of file wifi-phy-cca-test.cc.

Referenced by WifiPhyCcaIndicationTest::RunOne().

◆ P20_CENTER_FREQUENCY

MHz_u P20_CENTER_FREQUENCY = 5180
constexpr

Definition at line 42 of file wifi-phy-cca-test.cc.

Referenced by WifiPhyCcaIndicationTest::RunOne().

◆ P40_CENTER_FREQUENCY

MHz_u P40_CENTER_FREQUENCY = P20_CENTER_FREQUENCY + 10
constexpr

Definition at line 44 of file wifi-phy-cca-test.cc.

Referenced by WifiPhyCcaIndicationTest::RunOne().

◆ P80_CENTER_FREQUENCY

MHz_u P80_CENTER_FREQUENCY = P40_CENTER_FREQUENCY + 20
constexpr

Definition at line 46 of file wifi-phy-cca-test.cc.

Referenced by WifiPhyCcaIndicationTest::RunOne().

◆ PpduDurations

const std::map<MHz_u, Time> PpduDurations
Initial value:
= {
{20, NanoSeconds(1009600)},
{40, NanoSeconds(533600)},
{80, NanoSeconds(275200)},
}
Time NanoSeconds(uint64_t value)
Construct a Time in the indicated unit.
Definition nstime.h:1380

Definition at line 52 of file wifi-phy-cca-test.cc.

Referenced by WifiPhyCcaIndicationTest::RunOne().

◆ S20_CENTER_FREQUENCY

MHz_u S20_CENTER_FREQUENCY = P20_CENTER_FREQUENCY + 20
constexpr

Definition at line 43 of file wifi-phy-cca-test.cc.

Referenced by WifiPhyCcaIndicationTest::RunOne().

◆ S40_CENTER_FREQUENCY

MHz_u S40_CENTER_FREQUENCY = P40_CENTER_FREQUENCY + 40
constexpr

Definition at line 45 of file wifi-phy-cca-test.cc.

Referenced by WifiPhyCcaIndicationTest::RunOne().

◆ S80_CENTER_FREQUENCY

MHz_u S80_CENTER_FREQUENCY = P80_CENTER_FREQUENCY + 80
constexpr

Definition at line 47 of file wifi-phy-cca-test.cc.

Referenced by WifiPhyCcaIndicationTest::RunOne().

◆ smallDelta

const Time smallDelta = NanoSeconds(1)

Definition at line 49 of file wifi-phy-cca-test.cc.

Referenced by WifiPhyCcaIndicationTest::RunOne().

◆ WifiPhyCcaTestSuite

WifiPhyCcaTestSuite WifiPhyCcaTestSuite
static

the test suite

Definition at line 2975 of file wifi-phy-cca-test.cc.