A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
anonymous_namespace{wifi-ru-allocation-test.cc} Namespace Reference

Functions

WifiRu::RuSpec MakeRuSpec (RuType ruType, std::size_t index, bool primaryOrLow80MHz, std::optional< bool > primary160MHz=std::nullopt)
 Create an HE or an EHT RU Specification.
 

Function Documentation

◆ MakeRuSpec()

WifiRu::RuSpec anonymous_namespace{wifi-ru-allocation-test.cc}::MakeRuSpec ( RuType ruType,
std::size_t index,
bool primaryOrLow80MHz,
std::optional< bool > primary160MHz = std::nullopt )

Create an HE or an EHT RU Specification.

If a primary80 is provided, an HE RU Specification is created, other it is an EHT RU Specification.

Parameters
ruTypethe RU type
indexthe RU index (starting at 1)
primaryOrLow80MHzwhether the RU is allocated in the primary 80MHz channel or in the low 80 MHz if the RU is allocated in the secondary 160 MHz
primary160MHzwhether the RU is allocated in the primary 160MHz channel (only for EHT)
Returns
the created RU Specification.

Definition at line 33 of file wifi-ru-allocation-test.cc.

Referenced by Wifi20MHzIndicesCoveringRuTest::DoRun(), WifiCentral26TonesRusInChannelTest::DoRun(), WifiRuOverlappingTest::DoRun(), and WifiRusOfTypeInChannelTest::DoRun().

+ Here is the caller graph for this function: