22 #include "ns3/assert.h"
30 : m_primaryChannel (0),
31 m_secondaryChannelOffset (0),
32 m_staChannelWidth (0),
34 m_reservedInformationSubset1 (0),
36 m_nonGfHtStasPresent (0),
37 m_reservedInformationSubset2_1 (0),
38 m_obssNonHtStasPresent (0),
39 m_reservedInformationSubset2_2 (0),
40 m_reservedInformationSubset3_1 (0),
42 m_dualCtsProtection (0),
44 m_lSigTxopProtectionFullSupport (0),
47 m_reservedInformationSubset3_2 (0),
48 m_reservedMcsSet1 (0),
49 m_rxHighestSupportedDataRate (0),
50 m_reservedMcsSet2 (0),
51 m_txMcsSetDefined (0),
52 m_txRxMcsSetUnequal (0),
53 m_txMaxNSpatialStreams (0),
54 m_txUnequalModulation (0),
55 m_reservedMcsSet3 (0),
409 for (uint64_t i = 0; i < 77; i++)
434 for (uint64_t i = 63; i > 0; i--)
455 for (uint64_t i = 13; i > 0; i--)
482 uint8_t primarychannel = i.
ReadU8 ();
483 uint8_t informationsubset1 = i.
ReadU8 ();
484 uint8_t informationsubset2 = i.
ReadU16 ();
485 uint8_t informationsubset3 = i.
ReadU16 ();
511 is >> c1 >> c2 >> c3;
Buffer::Iterator Serialize(Buffer::Iterator start) const
This information element is a bit special in that it is only included if the STA is an HT STA...
The HT Operations Information ElementThis class knows how to serialise and deserialise the HT Operati...
std::istream & operator>>(std::istream &is, Angles &a)
initialize a struct Angles from input
uint8_t m_txRxMcsSetUnequal
uint64_t GetBasicMcsSet1(void) const
uint8_t GetStaChannelWidth(void) const
#define MAX_SUPPORTED_MCS
This defines the maximum number of supported MCSs that a STA is allowed to have.
uint8_t m_reservedInformationSubset2_1
uint8_t GetNonGfHtStasPresent(void) const
void SetTxRxMcsSetUnequal(uint8_t txrxmcssetunequal)
uint8_t m_nonGfHtStasPresent
uint8_t m_reservedMcsSet2
void SetStbcBeacon(uint8_t stbcbeacon)
void SetTxMcsSetDefined(uint8_t txmcssetdefined)
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
void SerializeInformationField(Buffer::Iterator start) const
Serialize information (i.e., the body of the IE, not including the Element ID and length octets) ...
uint8_t m_lSigTxopProtectionFullSupport
uint8_t GetTxRxMcsSetUnequal(void) const
void SetStaChannelWidth(uint8_t stachannelwidth)
void SetHtProtection(uint8_t htprotection)
uint8_t GetLSigTxopProtectionFullSupport(void) const
uint8_t GetPcoActive(void) const
void SetLSigTxopProtectionFullSupport(uint8_t lsigtxopprotectionfullsupport)
iterator in a Buffer instance
uint16_t GetSerializedSize() const
Return the serialized size of this HT Operations IE.
bool IsSupportedMcs(uint8_t mcs)
void SetInformationSubset3(uint16_t ctrl)
Set the Information Subset 3 field in the HT Operations information element.
void SetSecondaryChannelOffset(uint8_t secondarychanneloffset)
void SetRxHighestSupportedDataRate(uint16_t maxsupportedrate)
uint8_t GetTxUnequalModulation(void) const
uint8_t m_txMaxNSpatialStreams
void SetTxMaxNSpatialStreams(uint8_t maxtxspatialstreams)
void WriteU16(uint16_t data)
uint8_t GetInformationSubset1(void) const
uint8_t GetDualCtsProtection(void) const
void SetPcoActive(uint8_t pcoactive)
void SetNonGfHtStasPresent(uint8_t nongfhtstaspresent)
uint8_t m_secondaryChannelOffset
uint8_t GetInformationFieldSize() const
Length of serialized information (i.e., the length of the body of the IE, not including the Element I...
WifiInformationElementId ElementId() const
Own unique Element ID.
uint8_t m_reservedInformationSubset1
uint16_t GetInformationSubset3(void) const
void SetRxMcsBitmask(uint8_t index)
uint8_t m_dualCtsProtection
void SetTxUnequalModulation(uint8_t txunequalmodulation)
std::ostream & operator<<(std::ostream &os, const Angles &a)
print a struct Angles to output
uint8_t m_staChannelWidth
uint8_t m_obssNonHtStasPresent
void SetHtSupported(uint8_t htsupported)
uint8_t GetTxMaxNSpatialStreams(void) const
uint8_t m_txMcsSetDefined
void SetDualCtsProtection(uint8_t dualctsprotection)
uint8_t GetPhase(void) const
void SetDualBeacon(uint8_t dualbeacon)
uint8_t m_rxMcsBitmask[MAX_SUPPORTED_MCS]
uint8_t GetPrimaryChannel(void) const
uint8_t m_txUnequalModulation
void WriteU8(uint8_t data)
void SetInformationSubset1(uint8_t ctrl)
Set the Information Subset 1 field in the HT Operations information element.
uint8_t GetStbcBeacon(void) const
uint8_t GetHtProtection(void) const
void WriteHtolsbU64(uint64_t data)
uint8_t m_reservedInformationSubset3_1
uint8_t m_reservedInformationSubset3_2
void SetRifsMode(uint8_t rifsmode)
uint8_t GetRifsMode(void) const
uint32_t m_reservedMcsSet3
void SetPrimaryChannel(uint8_t ctrl)
Set the Primary Channel field in the HT Operations information element.
void SetInformationSubset2(uint16_t ctrl)
Set the Information Subset 2 field in the HT Operations information element.
uint16_t GetRxHighestSupportedDataRate(void) const
void SetBasicMcsSet(uint64_t ctrl1, uint64_t ctrl2)
Set the Basic MCS Set field in the HT Operations information element.
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.
uint16_t GetInformationSubset2(void) const
uint64_t ReadLsbtohU64(void)
uint8_t GetSecondaryChannelOffset(void) const
void SetPhase(uint8_t pcophase)
void SetObssNonHtStasPresent(uint8_t obssnonhtstaspresent)
uint8_t GetObssNonHtStasPresent(void) const
ATTRIBUTE_HELPER_CPP(BleAccessAddress)
uint8_t GetDualBeacon(void) const
uint8_t m_reservedMcsSet1
uint8_t DeserializeInformationField(Buffer::Iterator start, uint8_t length)
Deserialize information (i.e., the body of the IE, not including the Element ID and length octets) ...
uint16_t m_rxHighestSupportedDataRate
uint64_t GetBasicMcsSet2(void) const
uint8_t GetTxMcsSetDefined(void) const