The HE 6 GHz Band Capabilities (IEEE 802.11ax-2021 9.4.2.263) More...
#include "he-6ghz-band-capabilities.h"
Classes | |
struct | CapabilitiesInfo |
Capabilities Information field. More... | |
Public Member Functions | |
He6GhzBandCapabilities () | |
WifiInformationElementId | ElementId () const override |
Get the wifi information element ID. | |
WifiInformationElementId | ElementIdExt () const override |
Get the wifi information element ID extension. | |
uint32_t | GetMaxAmpduLength () const |
Return the maximum A-MPDU length. | |
uint16_t | GetMaxMpduLength () const |
Get the maximum MPDU length. | |
void | Print (std::ostream &os) const override |
Generate human-readable form of IE. | |
void | SetMaxAmpduLength (uint32_t maxAmpduLength) |
Set the maximum AMPDU length. | |
void | SetMaxMpduLength (uint16_t length) |
Set the maximum MPDU length. | |
Public Member Functions inherited from ns3::WifiInformationElement | |
virtual | ~WifiInformationElement () |
Buffer::Iterator | Deserialize (Buffer::Iterator i) |
Deserialize entire IE (which may possibly be fragmented into multiple elements), which must be present. | |
Buffer::Iterator | DeserializeIfPresent (Buffer::Iterator i) |
Deserialize entire IE (which may possibly be fragmented into multiple elements) if it is present. | |
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). | |
virtual bool | operator== (const WifiInformationElement &a) const |
Compare two IEs for equality by ID & Length, and then through memcmp of serialised version. | |
Buffer::Iterator | Serialize (Buffer::Iterator i) const |
Serialize entire IE including Element ID and length fields. | |
Public Member Functions inherited from ns3::SimpleRefCount< WifiInformationElement > | |
SimpleRefCount () | |
Default constructor. | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. | |
uint32_t | GetReferenceCount () const |
Get the reference count of the object. | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment operator. | |
void | Ref () const |
Increment the reference count. | |
void | Unref () const |
Decrement the reference count. | |
Public Attributes | |
CapabilitiesInfo | m_capabilitiesInfo |
capabilities field | |
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) | |
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. | |
void | SerializeInformationField (Buffer::Iterator start) const override |
Serialize information (i.e., the body of the IE, not including the Element ID and length octets) | |
The HE 6 GHz Band Capabilities (IEEE 802.11ax-2021 9.4.2.263)
Definition at line 22 of file he-6ghz-band-capabilities.h.
ns3::He6GhzBandCapabilities::He6GhzBandCapabilities | ( | ) |
Definition at line 14 of file he-6ghz-band-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 110 of file he-6ghz-band-capabilities.cc.
References m_capabilitiesInfo, ns3::He6GhzBandCapabilities::CapabilitiesInfo::m_maxAmpduLengthExponent, ns3::He6GhzBandCapabilities::CapabilitiesInfo::m_maxMpduLength, ns3::He6GhzBandCapabilities::CapabilitiesInfo::m_minMpduStartSpacing, ns3::He6GhzBandCapabilities::CapabilitiesInfo::m_rdResponder, ns3::He6GhzBandCapabilities::CapabilitiesInfo::m_rxAntennaPatternConsistency, ns3::He6GhzBandCapabilities::CapabilitiesInfo::m_smPowerSave, ns3::He6GhzBandCapabilities::CapabilitiesInfo::m_txAntennaPatternConsistency, and ns3::Buffer::Iterator::ReadLsbtohU16().
|
overridevirtual |
Get the wifi information element ID.
Implements ns3::WifiInformationElement.
Definition at line 20 of file he-6ghz-band-capabilities.cc.
References IE_EXTENSION.
|
overridevirtual |
Get the wifi information element ID extension.
Reimplemented from ns3::WifiInformationElement.
Definition at line 26 of file he-6ghz-band-capabilities.cc.
References IE_EXT_HE_6GHZ_CAPABILITIES.
|
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 32 of file he-6ghz-band-capabilities.cc.
uint32_t ns3::He6GhzBandCapabilities::GetMaxAmpduLength | ( | ) | const |
Return the maximum A-MPDU length.
Definition at line 54 of file he-6ghz-band-capabilities.cc.
References m_capabilitiesInfo, and ns3::He6GhzBandCapabilities::CapabilitiesInfo::m_maxAmpduLengthExponent.
uint16_t ns3::He6GhzBandCapabilities::GetMaxMpduLength | ( | ) | const |
Get the maximum MPDU length.
Definition at line 79 of file he-6ghz-band-capabilities.cc.
References m_capabilitiesInfo, ns3::He6GhzBandCapabilities::CapabilitiesInfo::m_maxMpduLength, and NS_ABORT_MSG.
|
overridevirtual |
Generate human-readable form of IE.
os | output stream |
Reimplemented from ns3::WifiInformationElement.
Definition at line 125 of file he-6ghz-band-capabilities.cc.
References m_capabilitiesInfo, ns3::He6GhzBandCapabilities::CapabilitiesInfo::m_maxAmpduLengthExponent, ns3::He6GhzBandCapabilities::CapabilitiesInfo::m_maxMpduLength, ns3::He6GhzBandCapabilities::CapabilitiesInfo::m_minMpduStartSpacing, ns3::He6GhzBandCapabilities::CapabilitiesInfo::m_rdResponder, ns3::He6GhzBandCapabilities::CapabilitiesInfo::m_rxAntennaPatternConsistency, ns3::He6GhzBandCapabilities::CapabilitiesInfo::m_smPowerSave, and ns3::He6GhzBandCapabilities::CapabilitiesInfo::m_txAntennaPatternConsistency.
|
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 97 of file he-6ghz-band-capabilities.cc.
References m_capabilitiesInfo, ns3::He6GhzBandCapabilities::CapabilitiesInfo::m_maxAmpduLengthExponent, ns3::He6GhzBandCapabilities::CapabilitiesInfo::m_maxMpduLength, ns3::He6GhzBandCapabilities::CapabilitiesInfo::m_minMpduStartSpacing, ns3::He6GhzBandCapabilities::CapabilitiesInfo::m_rdResponder, ns3::He6GhzBandCapabilities::CapabilitiesInfo::m_rxAntennaPatternConsistency, ns3::He6GhzBandCapabilities::CapabilitiesInfo::m_smPowerSave, and ns3::He6GhzBandCapabilities::CapabilitiesInfo::m_txAntennaPatternConsistency.
void ns3::He6GhzBandCapabilities::SetMaxAmpduLength | ( | uint32_t | maxAmpduLength | ) |
Set the maximum AMPDU length.
maxAmpduLength | 2^(13 + x) - 1, x in the range 0 to 7 |
Definition at line 40 of file he-6ghz-band-capabilities.cc.
References m_capabilitiesInfo, ns3::He6GhzBandCapabilities::CapabilitiesInfo::m_maxAmpduLengthExponent, and NS_ABORT_MSG.
Referenced by He6GhzBandCapabilitiesTest::DoRun(), and ns3::WifiMac::GetHe6GhzBandCapabilities().
void ns3::He6GhzBandCapabilities::SetMaxMpduLength | ( | uint16_t | length | ) |
Set the maximum MPDU length.
length | the maximum MPDU length (3895, 7991 or 11454) |
Definition at line 60 of file he-6ghz-band-capabilities.cc.
References m_capabilitiesInfo, ns3::He6GhzBandCapabilities::CapabilitiesInfo::m_maxMpduLength, and NS_ABORT_MSG_IF.
Referenced by He6GhzBandCapabilitiesTest::DoRun(), and ns3::WifiMac::GetHe6GhzBandCapabilities().
CapabilitiesInfo ns3::He6GhzBandCapabilities::m_capabilitiesInfo |
capabilities field
Definition at line 47 of file he-6ghz-band-capabilities.h.
Referenced by DeserializeInformationField(), He6GhzBandCapabilitiesTest::DoRun(), GetMaxAmpduLength(), GetMaxMpduLength(), Print(), SerializeInformationField(), SetMaxAmpduLength(), and SetMaxMpduLength().