|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
28 #define BSS_MEMBERSHIP_SELECTOR_HT_PHY 127
29 #define BSS_MEMBERSHIP_SELECTOR_VHT_PHY 126
30 #define BSS_MEMBERSHIP_SELECTOR_HE_PHY 125
78 uint8_t rate =
static_cast<uint8_t
> (bs / 500000);
79 for (uint8_t i = 0; i <
m_nRates; i++)
81 if ((rate | 0x80) ==
m_rates[i])
103 "Value " << bs <<
" not a BSS Membership Selector");
104 uint8_t rate =
static_cast<uint8_t
> (bs / 500000);
105 for (uint8_t i = 0; i <
m_nRates; i++)
113 NS_LOG_DEBUG (
"add BSS membership selector rate " << bs <<
" as rate " << +rate);
121 uint8_t rate =
static_cast<uint8_t
> (bs / 500000) | 0x80;
122 for (uint8_t i = 0; i <
m_nRates; i++)
136 uint8_t rate =
static_cast<uint8_t
> (bs / 500000);
137 for (uint8_t i = 0; i <
m_nRates; i++)
140 || (rate | 0x80) ==
m_rates[i])
170 return (
m_rates[i] & 0x7f) * 500000;
300 for (uint8_t i = 0; i < rates.
GetNRates (); i++)
302 uint32_t rate = rates.
GetRate (i);
307 os << rate / 1000000 <<
"mbs";
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
uint8_t m_rates[MAX_SUPPORTED_RATES]
List of supported bit rates (divided by 500000)
bool IsBssMembershipSelectorRate(uint64_t bs) const
Check if the given rate is a BSS membership selector value.
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)
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
WifiInformationElementId ElementId() const
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)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
SupportedRates * m_supportedRates
This member points to the SupportedRates object that contains the actual rate details.
uint8_t m_nRates
Number of supported rates.
void SetSupportedRates(SupportedRates *rates)
Set supported rates.
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.
void SetBasicRate(uint64_t bs)
Set the given rate to basic rates.
#define BSS_MEMBERSHIP_SELECTOR_VHT_PHY
bool IsSupportedRate(uint64_t bs) const
Check if the given rate is supported.
The Supported Rates Information Element.
uint16_t GetSerializedSize() const override
Get the size of the serialized IE including Element ID and length fields.
SupportedRates & operator=(const SupportedRates &rates)
Assignment operator.
ExtendedSupportedRatesIE()
#define BSS_MEMBERSHIP_SELECTOR_HT_PHY
bool IsBasicRate(uint64_t bs) const
Check if the given rate is a basic rate.
uint8_t GetNRates(void) const
Return the number of supported rates.
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
uint8_t GetInformationFieldSize() const
Length of serialized information (i.e., the length of the body of the IE, not including the Element I...
iterator in a Buffer instance
ExtendedSupportedRatesIE extended
extended supported rates info element
uint32_t GetRate(uint8_t i) const
Return the rate at the given index.
uint8_t GetInformationFieldSize() const override
Length of serialized information (i.e., the length of the body of the IE, not including the Element I...
static const uint8_t MAX_SUPPORTED_RATES
This defines the maximum number of supported rates that a STA is allowed to have.
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
void SerializeInformationField(Buffer::Iterator start) const override
Serialize information (i.e., the body of the IE, not including the Element ID and length octets)
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
void SerializeInformationField(Buffer::Iterator start) const
Serialize information (i.e., the body of the IE, not including the Element ID and length octets)
void AddSupportedRate(uint64_t bs)
Add the given rate to the supported rates.
#define BSS_MEMBERSHIP_SELECTOR_HE_PHY
void AddBssMembershipSelectorRate(uint64_t bs)
Add a special value to the supported rate set, corresponding to a BSS membership selector.
std::ostream & operator<<(std::ostream &os, const Angles &a)
Buffer::Iterator Serialize(Buffer::Iterator start) const override
Serialize entire IE including Element ID and length fields.
WifiInformationElementId ElementId() const override