EHT Operation Information Element. More...
#include "eht-operation.h"
Classes | |
struct | EhtBasicMcsNssSet |
Basic EHT-MCS and NSS Set subfield IEEE 802.11be D2.0 Figure 9-1002ai. More... | |
struct | EhtOpControl |
EHT Operation Information Control subfield IEEE 802.11be D2.0 Figure 9-1002D. More... | |
struct | EhtOpInfo |
EHT Operation Information subfield IEEE 802.11be D2.0 Figure 9-1002c. More... | |
struct | EhtOpParams |
EHT Operation Parameters subfield IEEE 802.11be D2.0 Figure 9-1002b. More... | |
Public Member Functions | |
EhtOperation () | |
WifiInformationElementId | ElementId () const override |
Get the wifi information element ID. | |
WifiInformationElementId | ElementIdExt () const override |
Get the wifi information element ID extension. | |
void | Print (std::ostream &os) const override |
Generate human-readable form of IE. | |
void | SetMaxRxNss (uint8_t maxNss, uint8_t mcsStart, uint8_t mcsEnd) |
Set the max Rx NSS for input MCS index range. | |
void | SetMaxTxNss (uint8_t maxNss, uint8_t mcsStart, uint8_t mcsEnd) |
Set the max Tx NSS for input MCS index range. | |
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 | |
EhtBasicMcsNssSet | m_mcsNssSet |
Basic EHT-MCS and NSS set. | |
std::optional< EhtOpInfo > | m_opInfo |
EHT Operation Information. | |
EhtOpParams | m_params |
EHT Operation Parameters. | |
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) | |
EHT Operation Information Element.
This class serializes and deserializes the EHT Operation Information Element IEEE 802.11be D2.0 9.4.2.311
Definition at line 54 of file eht-operation.h.
ns3::EhtOperation::EhtOperation | ( | ) |
Definition at line 177 of file eht-operation.cc.
References m_mcsNssSet, ns3::EhtOperation::EhtBasicMcsNssSet::maxRxNss, ns3::EhtOperation::EhtBasicMcsNssSet::maxTxNss, ns3::WIFI_DEFAULT_EHT_MAX_NSS, and ns3::WIFI_EHT_MAX_MCS_INDEX.
|
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 251 of file eht-operation.cc.
References ns3::EhtOperation::EhtBasicMcsNssSet::Deserialize(), ns3::EhtOperation::EhtOpParams::Deserialize(), ns3::EhtOperation::EhtOpParams::disabledSubchBmPresent, m_mcsNssSet, m_opInfo, m_params, NS_ABORT_MSG_IF, NS_ASSERT_MSG, and ns3::EhtOperation::EhtOpParams::opInfoPresent.
|
overridevirtual |
Get the wifi information element ID.
Implements ns3::WifiInformationElement.
Definition at line 184 of file eht-operation.cc.
References IE_EXTENSION.
|
overridevirtual |
Get the wifi information element ID extension.
Reimplemented from ns3::WifiInformationElement.
Definition at line 190 of file eht-operation.cc.
References IE_EXT_EHT_OPERATION.
|
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 196 of file eht-operation.cc.
References ns3::EhtOperation::EhtOpParams::disabledSubchBmPresent, m_params, ns3::EhtOperation::EhtOpParams::opInfoPresent, ns3::WIFI_EHT_BASIC_MCS_NSS_SET_SIZE_B, ns3::WIFI_EHT_DISABLED_SUBCH_BM_SIZE_B, ns3::WIFI_EHT_OP_INFO_BASIC_SIZE_B, ns3::WIFI_EHT_OP_PARAMS_SIZE_B, and ns3::WIFI_IE_ELEMENT_ID_EXT_SIZE.
|
overridevirtual |
Generate human-readable form of IE.
os | output stream |
Reimplemented from ns3::WifiInformationElement.
Definition at line 19 of file eht-operation.cc.
References ns3::EhtOperation::EhtOpParams::defaultPeDur, ns3::EhtOperation::EhtOpParams::disabledSubchBmPresent, ns3::EhtOperation::EhtOpParams::grpBuExp, ns3::EhtOperation::EhtOpParams::grpBuIndLimit, m_mcsNssSet, m_opInfo, m_params, ns3::EhtOperation::EhtBasicMcsNssSet::maxRxNss, ns3::EhtOperation::EhtBasicMcsNssSet::maxTxNss, and ns3::EhtOperation::EhtOpParams::opInfoPresent.
|
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 232 of file eht-operation.cc.
References ns3::EhtOperation::EhtOpParams::disabledSubchBmPresent, m_mcsNssSet, m_opInfo, m_params, NS_ASSERT_MSG, ns3::EhtOperation::EhtOpParams::opInfoPresent, ns3::EhtOperation::EhtBasicMcsNssSet::Serialize(), and ns3::EhtOperation::EhtOpParams::Serialize().
void ns3::EhtOperation::SetMaxRxNss | ( | uint8_t | maxNss, |
uint8_t | mcsStart, | ||
uint8_t | mcsEnd ) |
Set the max Rx NSS for input MCS index range.
maxNss | the maximum supported Rx NSS for MCS group |
mcsStart | MCS index start |
mcsEnd | MCS index end |
Definition at line 214 of file eht-operation.cc.
References m_mcsNssSet, ns3::EhtOperation::EhtBasicMcsNssSet::maxRxNss, NS_ASSERT, ns3::SetMaxNss(), ns3::WIFI_EHT_MAX_MCS_INDEX, and ns3::WIFI_EHT_MAX_NSS_CONFIGURABLE.
Referenced by EhtOperationElementTest::EhtOperationElementTest(), and ns3::ApWifiMac::GetEhtOperation().
void ns3::EhtOperation::SetMaxTxNss | ( | uint8_t | maxNss, |
uint8_t | mcsStart, | ||
uint8_t | mcsEnd ) |
Set the max Tx NSS for input MCS index range.
maxNss | the maximum supported Rx NSS for MCS group |
mcsStart | MCS index start |
mcsEnd | MCS index end |
Definition at line 223 of file eht-operation.cc.
References m_mcsNssSet, ns3::EhtOperation::EhtBasicMcsNssSet::maxTxNss, NS_ASSERT, ns3::SetMaxNss(), ns3::WIFI_EHT_MAX_MCS_INDEX, and ns3::WIFI_EHT_MAX_NSS_CONFIGURABLE.
Referenced by EhtOperationElementTest::EhtOperationElementTest(), and ns3::ApWifiMac::GetEhtOperation().
EhtBasicMcsNssSet ns3::EhtOperation::m_mcsNssSet |
Basic EHT-MCS and NSS set.
Definition at line 170 of file eht-operation.h.
Referenced by EhtOperation(), DeserializeInformationField(), Print(), SerializeInformationField(), SetMaxRxNss(), and SetMaxTxNss().
std::optional<EhtOpInfo> ns3::EhtOperation::m_opInfo |
EHT Operation Information.
Definition at line 171 of file eht-operation.h.
Referenced by EhtOperationElementTest::EhtOperationElementTest(), DeserializeInformationField(), Print(), and SerializeInformationField().
EhtOpParams ns3::EhtOperation::m_params |
EHT Operation Parameters.
Definition at line 169 of file eht-operation.h.
Referenced by EhtOperationElementTest::EhtOperationElementTest(), DeserializeInformationField(), GetInformationFieldSize(), Print(), and SerializeInformationField().