79 start.WriteU16(twoBytes);
80 start.WriteU8(oneByte);
87 uint16_t twoBytes = start.ReadU16();
88 uint8_t oneByte = start.ReadU8();
96 return start.GetDistanceFrom(tmp);
116 start.WriteU8(oneByte);
123 uint8_t oneByte = start.ReadU8();
127 return start.GetDistanceFrom(tmp);
133 os <<
"Primary channel: " << +
m_primCh <<
" Channel Width: " << +
m_chWid
151 start.WriteU8(control);
162 uint8_t control = i.
ReadU8();
175 NS_ASSERT((maxHeMcs >= 7 && maxHeMcs <= 11) && (nss >= 1 && nss <= 8));
183 else if (maxHeMcs >= 9)
193 const uint16_t mask = ~(0x03 << ((nss - 1) * 2));
203 os <<
"HE Operation=[HE Operation Parameters|";
205 os <<
"][BSS Color|";
210 os <<
"[6 GHz Operation Info|";
iterator in a Buffer instance
uint32_t GetDistanceFrom(const Iterator &o) const
The HE Operation Information Element.
OptFieldWithPresenceInd< OpInfo6GHz > m_6GHzOpInfo
6 GHz Operation Information field
void Print(std::ostream &os) const override
Generate human-readable form of IE.
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 pair (ns...
WifiInformationElementId ElementIdExt() const override
Get the wifi information element ID extension.
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 I...
uint16_t m_basicHeMcsAndNssSet
Basic HE-MCS And NSS set (use setter to set value).
WifiInformationElementId ElementId() const override
Get the wifi information element ID.
HeOperation & operator=(const HeOperation &other)
Copy assignment operator.
HeOperationParams m_heOpParams
HE Operation Parameters field.
void SerializeInformationField(Buffer::Iterator start) const override
Serialize information (i.e., the body of the IE, not including the Element ID and length octets).
BssColorInfo m_bssColorInfo
BSS Color Information field.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.
void Serialize(Buffer::Iterator &start) const
Serialize the BSS Color Information field.
uint8_t m_bssColorDisabled
BSS Color Disabled.
void Print(std::ostream &os) const
Print the content of the BSS Color Information field.
uint8_t m_bssColor
BSS Color.
uint16_t Deserialize(Buffer::Iterator &start)
Deserialize the BSS Color Information field.
uint16_t GetSerializedSize() const
uint8_t m_partialBssColor
Partial BSS Color.
uint8_t m_erSuDisable
ER SU Disable.
void Print(std::ostream &os) const
Print the content of the HE Operation Parameters field.
void Serialize(Buffer::Iterator &start) const
Serialize the HE Operation Parameters field.
uint8_t m_vhOpPresent
VHT Operation Information Present (value 1 unsupported).
bool m_6GHzOpPresent
6 GHz Operation Information Present (do not set, it is set by the OptFieldWithPresenceInd)
uint8_t m_coHostedBss
Co-Hosted BSS (value 1 unsupported).
uint16_t GetSerializedSize() const
uint16_t Deserialize(Buffer::Iterator &start)
Deserialize the HE Operation Parameters field.
uint8_t m_defaultPeDuration
Default PE Duration.
uint8_t m_twtRequired
TWT Required.
uint16_t m_txopDurRtsThresh
TXOP Duration RTS Threshold.
6 GHz Operation Information field
uint8_t m_chCntrFreqSeg0
Channel center frequency segment 0.
void Print(std::ostream &os) const
Print the content of the 6 GHz Operation Information field.
uint8_t m_chWid
Channel Width.
uint16_t GetSerializedSize() const
uint8_t m_chCntrFreqSeg1
Channel center frequency segment 1.
uint8_t m_minRate
Minimum Rate.
uint16_t Deserialize(Buffer::Iterator &start)
Deserialize the 6 GHz Operation Information field.
uint8_t m_regInfo
Regulatory Info.
uint8_t m_dupBeacon
Duplicate Beacon.
void Serialize(Buffer::Iterator &start) const
Serialize the 6 GHz Operation Information field.
uint8_t m_primCh
Primary Channel.