The HE Operation Information Element. More...
#include "he-operation.h"
Public Member Functions | |
HeOperation () | |
WifiInformationElementId | ElementId () const override |
Get the wifi information element ID. More... | |
WifiInformationElementId | ElementIdExt () const override |
Get the wifi information element ID extension. More... | |
uint16_t | GetBasicHeMcsAndNssSet () const |
Return the Basic HE-MCS And Nss field in the HE Operation information element. More... | |
uint8_t | GetBssColor () const |
Get the BSS color. More... | |
uint32_t | GetHeOperationParameters () const |
Return the HE Operation Parameters field in the HE Operation information element. More... | |
void | Print (std::ostream &os) const override |
Generate human-readable form of IE. More... | |
void | SetBssColor (uint8_t bssColor) |
Set the BSS color. More... | |
void | SetHeOperationParameters (uint32_t ctrl) |
Set the HE Operation Parameters field in the HE Operation information element. More... | |
void | SetMaxHeMcsPerNss (uint8_t nss, uint8_t maxHeMcs) |
Set the Basic HE-MCS and NSS field in the HE Operation information element by specifying the tuple (nss, maxMcs). More... | |
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. More... | |
Buffer::Iterator | DeserializeIfPresent (Buffer::Iterator i) |
Deserialize entire IE (which may possibly be fragmented into multiple elements) if it is 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... | |
Buffer::Iterator | Serialize (Buffer::Iterator i) const |
Serialize entire IE including Element ID and length fields. More... | |
Public Member Functions inherited from ns3::SimpleRefCount< WifiInformationElement > | |
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... | |
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 | |
uint16_t | m_basicHeMcsAndNssSet |
basic HE MCS NSS set More... | |
uint8_t | m_bssColor |
BSS color. More... | |
uint8_t | m_bssColorDisabled |
BSS color disabled. More... | |
uint8_t | m_defaultPEDuration |
default PE duration More... | |
uint8_t | m_dualBeacon |
Dual Beacon. More... | |
uint16_t | m_heDurationBasedRtsThreshold |
HE duration based RTS threshold. More... | |
uint8_t | m_maxBssidIndicator |
max BSSID indicator More... | |
uint8_t | m_partialBssColor |
partial BSS color More... | |
uint8_t | m_twtRequired |
TWT required. More... | |
uint8_t | m_txBssidIndicator |
TX BSSID indicator. More... | |
The HE Operation Information Element.
This class knows how to serialise and deserialise the HE Operation Information Element
Definition at line 35 of file he-operation.h.
ns3::HeOperation::HeOperation | ( | ) |
Definition at line 25 of file he-operation.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 151 of file he-operation.cc.
References m_basicHeMcsAndNssSet, ns3::Buffer::Iterator::ReadLsbtohU32(), ns3::Buffer::Iterator::ReadU16(), SetHeOperationParameters(), and two-ray-to-three-gpp-ch-calibration::start.
|
overridevirtual |
Get the wifi information element ID.
Implements ns3::WifiInformationElement.
Definition at line 40 of file he-operation.cc.
References IE_EXTENSION.
|
overridevirtual |
Get the wifi information element ID extension.
Reimplemented from ns3::WifiInformationElement.
Definition at line 46 of file he-operation.cc.
References IE_EXT_HE_OPERATION.
uint16_t ns3::HeOperation::GetBasicHeMcsAndNssSet | ( | ) | const |
Return the Basic HE-MCS And Nss field in the HE Operation information element.
Definition at line 122 of file he-operation.cc.
References m_basicHeMcsAndNssSet.
Referenced by Print(), and SerializeInformationField().
uint8_t ns3::HeOperation::GetBssColor | ( | ) | const |
Get the BSS color.
Definition at line 136 of file he-operation.cc.
References m_bssColor.
uint32_t ns3::HeOperation::GetHeOperationParameters | ( | ) | const |
Return the HE Operation Parameters field in the HE Operation information element.
Definition at line 78 of file he-operation.cc.
References m_bssColor, m_bssColorDisabled, m_defaultPEDuration, m_dualBeacon, m_heDurationBasedRtsThreshold, m_maxBssidIndicator, m_partialBssColor, m_twtRequired, and m_txBssidIndicator.
Referenced by Print(), and SerializeInformationField().
|
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 58 of file he-operation.cc.
|
overridevirtual |
Generate human-readable form of IE.
os | output stream |
Reimplemented from ns3::WifiInformationElement.
Definition at line 52 of file he-operation.cc.
References GetBasicHeMcsAndNssSet(), and GetHeOperationParameters().
|
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 142 of file he-operation.cc.
References GetBasicHeMcsAndNssSet(), GetHeOperationParameters(), and two-ray-to-three-gpp-ch-calibration::start.
void ns3::HeOperation::SetBssColor | ( | uint8_t | bssColor | ) |
Set the BSS color.
bssColor | the BSS color value |
Definition at line 128 of file he-operation.cc.
References m_bssColor, m_bssColorDisabled, and NS_ABORT_UNLESS.
Referenced by ns3::ApWifiMac::GetHeOperation().
void ns3::HeOperation::SetHeOperationParameters | ( | uint32_t | ctrl | ) |
Set the HE Operation Parameters field in the HE Operation information element.
ctrl | the HE Operation Parameters field in the HE Operation information element |
Definition at line 64 of file he-operation.cc.
References m_bssColor, m_bssColorDisabled, m_defaultPEDuration, m_dualBeacon, m_heDurationBasedRtsThreshold, m_maxBssidIndicator, m_partialBssColor, m_twtRequired, and m_txBssidIndicator.
Referenced by DeserializeInformationField().
void ns3::HeOperation::SetMaxHeMcsPerNss | ( | uint8_t | nss, |
uint8_t | maxHeMcs | ||
) |
Set the Basic HE-MCS and NSS field in the HE Operation information element by specifying the tuple (nss, maxMcs).
nss | the NSS |
maxHeMcs | the maximum supported HE-MCS value corresponding to that NSS |
Definition at line 94 of file he-operation.cc.
References m_basicHeMcsAndNssSet, and NS_ASSERT.
Referenced by ns3::ApWifiMac::GetHeOperation().
|
private |
basic HE MCS NSS set
Definition at line 100 of file he-operation.h.
Referenced by DeserializeInformationField(), GetBasicHeMcsAndNssSet(), and SetMaxHeMcsPerNss().
|
private |
BSS color.
Definition at line 89 of file he-operation.h.
Referenced by GetBssColor(), GetHeOperationParameters(), SetBssColor(), and SetHeOperationParameters().
|
private |
BSS color disabled.
Definition at line 96 of file he-operation.h.
Referenced by GetHeOperationParameters(), SetBssColor(), and SetHeOperationParameters().
|
private |
default PE duration
Definition at line 90 of file he-operation.h.
Referenced by GetHeOperationParameters(), and SetHeOperationParameters().
|
private |
Dual Beacon.
Definition at line 97 of file he-operation.h.
Referenced by GetHeOperationParameters(), and SetHeOperationParameters().
|
private |
HE duration based RTS threshold.
Definition at line 92 of file he-operation.h.
Referenced by GetHeOperationParameters(), and SetHeOperationParameters().
|
private |
max BSSID indicator
Definition at line 94 of file he-operation.h.
Referenced by GetHeOperationParameters(), and SetHeOperationParameters().
|
private |
partial BSS color
Definition at line 93 of file he-operation.h.
Referenced by GetHeOperationParameters(), and SetHeOperationParameters().
|
private |
TWT required.
Definition at line 91 of file he-operation.h.
Referenced by GetHeOperationParameters(), and SetHeOperationParameters().
|
private |
TX BSSID indicator.
Definition at line 95 of file he-operation.h.
Referenced by GetHeOperationParameters(), and SetHeOperationParameters().