21 #ifndef SUPPORTED_RATES_H 22 #define SUPPORTED_RATES_H 59 uint8_t length)
override;
192 uint32_t
GetRate (uint8_t i)
const;
SupportedRates & operator=(const SupportedRates &rates)
Assignment operator.
bool IsBssMembershipSelectorRate(uint64_t bs) const
Check if the given rate is a BSS membership selector value.
uint16_t GetSerializedSize() const override
Get the size of the serialized IE including Element ID and length fields.
void SerializeInformationField(Buffer::Iterator start) const override
Serialize information (i.e., the body of the IE, not including the Element ID and length octets) ...
bool IsSupportedRate(uint64_t bs) const
Check if the given rate is supported.
void SetBasicRate(uint64_t bs)
Set the given rate to basic rates.
uint32_t GetRate(uint8_t i) const
Return the rate at the given index.
bool IsBasicRate(uint64_t bs) const
Check if the given rate is a basic rate.
The Supported Rates Information ElementThis class knows how to serialise and deserialise the Supporte...
uint8_t GetInformationFieldSize() const override
Length of serialized information (i.e., the length of the body of the IE, not including the Element I...
void AddSupportedRate(uint64_t bs)
Add the given rate to the supported rates.
iterator in a Buffer instance
std::ostream & operator<<(std::ostream &os, const Angles &a)
ExtendedSupportedRatesIE extended
extended supported rates info element
WifiInformationElementId ElementId() const
Buffer::Iterator Serialize(Buffer::Iterator start) const override
Serialize entire IE including Element ID and length fields.
uint8_t GetInformationFieldSize() const
Length of serialized information (i.e., the length of the body of the IE, not including the Element I...
void SetSupportedRates(SupportedRates *rates)
Set supported rates.
uint8_t m_nRates
Number of supported rates.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void AddBssMembershipSelectorRate(uint64_t bs)
Add a special value to the supported rate set, corresponding to a BSS membership selector.
ExtendedSupportedRatesIE()
uint8_t DeserializeInformationField(Buffer::Iterator start, uint8_t length) override
Deserialize information (i.e., the body of the IE, not including the Element ID and length octets) ...
The Extended Supported Rates Information ElementThis class knows how to serialise and deserialise the...
uint8_t m_rates[MAX_SUPPORTED_RATES]
List of supported bit rates (divided by 500000)
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) ...
SupportedRates * m_supportedRates
This member points to the SupportedRates object that contains the actual rate details.
void SerializeInformationField(Buffer::Iterator start) const
Serialize information (i.e., the body of the IE, not including the Element ID and length octets) ...
WifiInformationElementId ElementId() const override
uint8_t GetNRates(void) const
Return the number of supported rates.
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.
static const uint8_t MAX_SUPPORTED_RATES
This defines the maximum number of supported rates that a STA is allowed to have. ...