The IEEE 802.11be EHT Capabilities. More...
#include "eht-capabilities.h"
Public Member Functions | |
EhtCapabilities () | |
Constructor. More... | |
EhtCapabilities (bool is2_4Ghz, const std::optional< HeCapabilities > &heCapabilities) | |
Constructor. More... | |
WifiInformationElementId | ElementId () const override |
Get the wifi information element ID. More... | |
WifiInformationElementId | ElementIdExt () const override |
Get the wifi information element ID extension. More... | |
uint8_t | GetHighestSupportedRxMcs (EhtMcsAndNssSet::EhtMcsMapType mapType) |
Get the highest supported RX MCS for a given EHT-MCS map type. More... | |
uint8_t | GetHighestSupportedTxMcs (EhtMcsAndNssSet::EhtMcsMapType mapType) |
Get the highest supported TX MCS for a given EHT-MCS map type. More... | |
uint32_t | GetMaxAmpduLength () const |
Return the maximum A-MPDU length. More... | |
uint16_t | GetMaxMpduLength () const |
Get the maximum MPDU length. More... | |
void | SetMaxAmpduLength (uint32_t maxAmpduLength) |
Set the maximum A-MPDU length. More... | |
void | SetMaxMpduLength (uint16_t length) |
Set the maximum MPDU length. More... | |
void | SetPpeThresholds (uint8_t nssPe, uint8_t ruIndexBitmask, const std::vector< std::pair< uint8_t, uint8_t >> &ppeThresholds) |
Set the EHT PPE threshold info subfield. More... | |
void | SetSupportedRxEhtMcsAndNss (EhtMcsAndNssSet::EhtMcsMapType mapType, uint8_t upperMcs, uint8_t maxNss) |
Set a subfield of the Supported EHT-MCS And NSS Set. More... | |
void | SetSupportedTxEhtMcsAndNss (EhtMcsAndNssSet::EhtMcsMapType mapType, uint8_t upperMcs, uint8_t maxNss) |
Set a subfield of the Supported EHT-MCS And NSS Set. More... | |
![]() | |
virtual | ~WifiInformationElement () |
Buffer::Iterator | Deserialize (Buffer::Iterator i) |
Deserialize entire IE (which may possibly be fragmented into multiple elements), which must be present. More... | |
uint16_t | GetSerializedSize () const |
Get the size of the serialized IE including Element ID and length fields (for every element this IE is possibly fragmented into). More... | |
virtual bool | operator== (const WifiInformationElement &a) const |
Compare two IEs for equality by ID & Length, and then through memcmp of serialised version. More... | |
virtual void | Print (std::ostream &os) const |
Generate human-readable form of IE. More... | |
Buffer::Iterator | Serialize (Buffer::Iterator i) const |
Serialize entire IE including Element ID and length fields. More... | |
![]() | |
SimpleRefCount () | |
Default constructor. More... | |
SimpleRefCount (const SimpleRefCount &o[[maybe_unused]]) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount () const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o[[maybe_unused]]) |
Assignment operator. More... | |
void | Ref () const |
Increment the reference count. More... | |
void | Unref () const |
Decrement the reference count. More... | |
Public Attributes | |
EhtMacCapabilities | m_macCapabilities |
EHT MAC Capabilities Info subfield. More... | |
EhtPhyCapabilities | m_phyCapabilities |
EHT PHY Capabilities Info subfield. More... | |
EhtPpeThresholds | m_ppeThresholds |
EHT PPE Threshold Info subfield. More... | |
EhtMcsAndNssSet | m_supportedEhtMcsAndNssSet |
Supported EHT-MCS And NSS Set subfield. More... | |
Private Member Functions | |
uint16_t | DeserializeInformationField (Buffer::Iterator start, uint16_t length) override |
Deserialize information (i.e., the body of the IE, not including the Element ID and length octets) More... | |
uint16_t | GetInformationFieldSize () const override |
Length of serialized information (i.e., the length of the body of the IE, not including the Element ID and length octets. More... | |
void | SerializeInformationField (Buffer::Iterator start) const override |
Serialize information (i.e., the body of the IE, not including the Element ID and length octets) More... | |
Private Attributes | |
std::optional< HeCapabilities > | m_heCapabilities |
HE capabilities contained in the same management frame if present. More... | |
bool | m_is2_4Ghz |
flag indicating whether PHY is operating in 2.4 GHz based on other IEs contained in the same management frame More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const EhtCapabilities &ehtCapabilities) |
output stream output operator More... | |
Additional Inherited Members | |
![]() | |
template<typename IE , typename... Args> | |
static Buffer::Iterator | DeserializeIfPresent (std::optional< IE > &optElem, Buffer::Iterator i, Args &&... args) |
Deserialize an entire IE (which may possibly be fragmented into multiple elements) that is optionally present. More... | |
The IEEE 802.11be EHT Capabilities.
Definition at line 247 of file eht-capabilities.h.
ns3::EhtCapabilities::EhtCapabilities | ( | ) |
Constructor.
Definition at line 394 of file eht-capabilities.cc.
ns3::EhtCapabilities::EhtCapabilities | ( | bool | is2_4Ghz, |
const std::optional< HeCapabilities > & | heCapabilities | ||
) |
Constructor.
is2_4Ghz | indicating whether PHY is operating in 2.4 GHz based on previously serialized IEs |
heCapabilities | the optional HE capabilities contained in the same management frame |
Definition at line 404 of file eht-capabilities.cc.
|
overrideprivatevirtual |
Deserialize information (i.e., the body of the IE, not including the Element ID and length octets)
start | an iterator which points to where the information should be written. |
length | the expected number of bytes to read |
Implements ns3::WifiInformationElement.
Definition at line 700 of file eht-capabilities.cc.
References ns3::EhtMacCapabilities::Deserialize(), ns3::EhtPhyCapabilities::Deserialize(), ns3::EhtPpeThresholds::Deserialize(), ns3::EhtMcsAndNssSet::Deserialize(), m_heCapabilities, m_is2_4Ghz, m_macCapabilities, m_phyCapabilities, m_ppeThresholds, m_supportedEhtMcsAndNssSet, ns3::Buffer::Iterator::Next(), NS_ASSERT, ns3::EhtPhyCapabilities::ppeThresholdsPresent, two-ray-to-three-gpp-ch-calibration::start, and ns3::EhtPhyCapabilities::support320MhzIn6Ghz.
|
overridevirtual |
Get the wifi information element ID.
Implements ns3::WifiInformationElement.
Definition at line 415 of file eht-capabilities.cc.
References IE_EXTENSION.
|
overridevirtual |
Get the wifi information element ID extension.
Reimplemented from ns3::WifiInformationElement.
Definition at line 421 of file eht-capabilities.cc.
References IE_EXT_EHT_CAPABILITIES.
uint8_t ns3::EhtCapabilities::GetHighestSupportedRxMcs | ( | EhtMcsAndNssSet::EhtMcsMapType | mapType | ) |
Get the highest supported RX MCS for a given EHT-MCS map type.
mapType | the EHT-MCS map type |
Definition at line 602 of file eht-capabilities.cc.
References ns3::EhtMcsAndNssSet::EHT_MCS_MAP_TYPE_20_MHZ_ONLY, m_supportedEhtMcsAndNssSet, NS_ASSERT, NS_ASSERT_MSG, and ns3::EhtMcsAndNssSet::supportedEhtMcsAndNssSet.
Referenced by ns3::WifiRemoteStationManager::AddStationEhtCapabilities(), and WifiEhtCapabilitiesIeTest::DoRun().
uint8_t ns3::EhtCapabilities::GetHighestSupportedTxMcs | ( | EhtMcsAndNssSet::EhtMcsMapType | mapType | ) |
Get the highest supported TX MCS for a given EHT-MCS map type.
mapType | the EHT-MCS map type |
Definition at line 637 of file eht-capabilities.cc.
References ns3::EhtMcsAndNssSet::EHT_MCS_MAP_TYPE_20_MHZ_ONLY, m_supportedEhtMcsAndNssSet, NS_ASSERT, NS_ASSERT_MSG, and ns3::EhtMcsAndNssSet::supportedEhtMcsAndNssSet.
Referenced by WifiEhtCapabilitiesIeTest::DoRun().
|
overrideprivatevirtual |
Length of serialized information (i.e., the length of the body of the IE, not including the Element ID and length octets.
This is the value that will appear in the second octet of the entire IE - the length field - if the IE is not fragmented)
Implements ns3::WifiInformationElement.
Definition at line 427 of file eht-capabilities.cc.
References ns3::EhtMacCapabilities::GetSize(), ns3::EhtPhyCapabilities::GetSize(), ns3::EhtMcsAndNssSet::GetSize(), ns3::EhtPpeThresholds::GetSize(), m_macCapabilities, m_phyCapabilities, m_ppeThresholds, m_supportedEhtMcsAndNssSet, and ns3::EhtPhyCapabilities::ppeThresholdsPresent.
uint32_t ns3::EhtCapabilities::GetMaxAmpduLength | ( | ) | const |
Return the maximum A-MPDU length.
Definition at line 490 of file eht-capabilities.cc.
References m_macCapabilities, and ns3::EhtMacCapabilities::maxAmpduLengthExponentExtension.
uint16_t ns3::EhtCapabilities::GetMaxMpduLength | ( | ) | const |
Get the maximum MPDU length.
Definition at line 459 of file eht-capabilities.cc.
References m_macCapabilities, ns3::EhtMacCapabilities::maxMpduLength, and NS_ABORT_MSG.
|
overrideprivatevirtual |
Serialize information (i.e., the body of the IE, not including the Element ID and length octets)
start | an iterator which points to where the information should be written. |
Implements ns3::WifiInformationElement.
Definition at line 688 of file eht-capabilities.cc.
References m_macCapabilities, m_phyCapabilities, m_ppeThresholds, m_supportedEhtMcsAndNssSet, ns3::EhtPhyCapabilities::ppeThresholdsPresent, ns3::EhtMacCapabilities::Serialize(), ns3::EhtPhyCapabilities::Serialize(), ns3::EhtMcsAndNssSet::Serialize(), ns3::EhtPpeThresholds::Serialize(), and two-ray-to-three-gpp-ch-calibration::start.
void ns3::EhtCapabilities::SetMaxAmpduLength | ( | uint32_t | maxAmpduLength | ) |
Set the maximum A-MPDU length.
maxAmpduLength | 2^(23 + x) - 1, x in the range 0 to 3 |
Definition at line 476 of file eht-capabilities.cc.
References m_macCapabilities, ns3::EhtMacCapabilities::maxAmpduLengthExponentExtension, and NS_ABORT_MSG.
Referenced by WifiEhtCapabilitiesIeTest::GetEhtCapabilities(), and ns3::WifiMac::GetEhtCapabilities().
void ns3::EhtCapabilities::SetMaxMpduLength | ( | uint16_t | length | ) |
Set the maximum MPDU length.
length | the maximum MPDU length (3895, 7991 or 11454) |
Definition at line 440 of file eht-capabilities.cc.
References m_macCapabilities, ns3::EhtMacCapabilities::maxMpduLength, and NS_ABORT_MSG.
Referenced by WifiEhtCapabilitiesIeTest::GetEhtCapabilities(), and ns3::WifiMac::GetEhtCapabilities().
void ns3::EhtCapabilities::SetPpeThresholds | ( | uint8_t | nssPe, |
uint8_t | ruIndexBitmask, | ||
const std::vector< std::pair< uint8_t, uint8_t >> & | ppeThresholds | ||
) |
Set the EHT PPE threshold info subfield.
nssPe | the NSS_PE subfield |
ruIndexBitmask | the RU Index Bitmask subfield |
ppeThresholds | the PPE thresholds made of pairs (PPETmax, PPET8) |
Definition at line 672 of file eht-capabilities.cc.
References m_phyCapabilities, m_ppeThresholds, NS_ASSERT, ns3::EhtPpeThresholds::nssPe, ns3::EhtPpeThresholds::ppeThresholdsInfo, ns3::EhtPhyCapabilities::ppeThresholdsPresent, and ns3::EhtPpeThresholds::ruIndexBitmask.
Referenced by WifiEhtCapabilitiesIeTest::DoRun().
void ns3::EhtCapabilities::SetSupportedRxEhtMcsAndNss | ( | EhtMcsAndNssSet::EhtMcsMapType | mapType, |
uint8_t | upperMcs, | ||
uint8_t | maxNss | ||
) |
Set a subfield of the Supported EHT-MCS And NSS Set.
mapType | the type of the subfield |
upperMcs | the upper MCS of the range |
maxNss | the maximum NSS supported for reception in the MCS range |
Definition at line 497 of file eht-capabilities.cc.
References ns3::EhtMcsAndNssSet::EHT_MCS_MAP_TYPE_160_MHZ, ns3::EhtMcsAndNssSet::EHT_MCS_MAP_TYPE_20_MHZ_ONLY, ns3::EhtMcsAndNssSet::EHT_MCS_MAP_TYPE_320_MHZ, ns3::EhtMcsAndNssSet::EHT_MCS_MAP_TYPE_NOT_LARGER_THAN_80_MHZ, m_supportedEhtMcsAndNssSet, NS_ASSERT, NS_ASSERT_MSG, and ns3::EhtMcsAndNssSet::supportedEhtMcsAndNssSet.
Referenced by WifiEhtCapabilitiesIeTest::GetEhtCapabilities(), and ns3::WifiMac::GetEhtCapabilities().
void ns3::EhtCapabilities::SetSupportedTxEhtMcsAndNss | ( | EhtMcsAndNssSet::EhtMcsMapType | mapType, |
uint8_t | upperMcs, | ||
uint8_t | maxNss | ||
) |
Set a subfield of the Supported EHT-MCS And NSS Set.
mapType | the type of the subfield |
upperMcs | the upper MCS of the range |
maxNss | the maximum NSS supported for transmission in the MCS range |
Definition at line 549 of file eht-capabilities.cc.
References ns3::EhtMcsAndNssSet::EHT_MCS_MAP_TYPE_160_MHZ, ns3::EhtMcsAndNssSet::EHT_MCS_MAP_TYPE_20_MHZ_ONLY, ns3::EhtMcsAndNssSet::EHT_MCS_MAP_TYPE_320_MHZ, ns3::EhtMcsAndNssSet::EHT_MCS_MAP_TYPE_NOT_LARGER_THAN_80_MHZ, m_supportedEhtMcsAndNssSet, NS_ASSERT, NS_ASSERT_MSG, and ns3::EhtMcsAndNssSet::supportedEhtMcsAndNssSet.
Referenced by WifiEhtCapabilitiesIeTest::GetEhtCapabilities(), and ns3::WifiMac::GetEhtCapabilities().
|
friend |
output stream output operator
os | the output stream |
ehtCapabilities | the EHT capabilities |
Definition at line 729 of file eht-capabilities.cc.
|
private |
HE capabilities contained in the same management frame if present.
Definition at line 355 of file eht-capabilities.h.
Referenced by DeserializeInformationField().
|
private |
flag indicating whether PHY is operating in 2.4 GHz based on other IEs contained in the same management frame
Definition at line 352 of file eht-capabilities.h.
Referenced by DeserializeInformationField().
EhtMacCapabilities ns3::EhtCapabilities::m_macCapabilities |
EHT MAC Capabilities Info subfield.
Definition at line 340 of file eht-capabilities.h.
Referenced by DeserializeInformationField(), GetInformationFieldSize(), GetMaxAmpduLength(), GetMaxMpduLength(), SerializeInformationField(), SetMaxAmpduLength(), and SetMaxMpduLength().
EhtPhyCapabilities ns3::EhtCapabilities::m_phyCapabilities |
EHT PHY Capabilities Info subfield.
Definition at line 341 of file eht-capabilities.h.
Referenced by DeserializeInformationField(), WifiEhtCapabilitiesIeTest::GetEhtCapabilities(), ns3::WifiMac::GetEhtCapabilities(), GetInformationFieldSize(), SerializeInformationField(), and SetPpeThresholds().
EhtPpeThresholds ns3::EhtCapabilities::m_ppeThresholds |
EHT PPE Threshold Info subfield.
Definition at line 343 of file eht-capabilities.h.
Referenced by DeserializeInformationField(), GetInformationFieldSize(), SerializeInformationField(), and SetPpeThresholds().
EhtMcsAndNssSet ns3::EhtCapabilities::m_supportedEhtMcsAndNssSet |
Supported EHT-MCS And NSS Set subfield.
Definition at line 342 of file eht-capabilities.h.
Referenced by DeserializeInformationField(), GetHighestSupportedRxMcs(), GetHighestSupportedTxMcs(), GetInformationFieldSize(), SerializeInformationField(), SetSupportedRxEhtMcsAndNss(), and SetSupportedTxEhtMcsAndNss().