Capability information. More...
#include "capability-information.h"
Collaboration diagram for ns3::CapabilityInformation:Public Member Functions | |
| CapabilityInformation () | |
| Buffer::Iterator | Deserialize (Buffer::Iterator start) |
| Deserialize capability information from the given buffer. | |
| uint32_t | GetSerializedSize () const |
| Return the serialized size of capability information. | |
| bool | IsCfPollable () const |
| Check if the CF-Pollable bit in the capability information field is set to 1. | |
| bool | IsCriticalUpdate () const |
| Check if Critical Update bit is set to 1. | |
| bool | IsEss () const |
| Check if the Extended Service Set (ESS) bit in the capability information field is set to 1. | |
| bool | IsIbss () const |
| Check if the Independent BSS (IBSS) bit in the capability information field is set to 1. | |
| bool | IsShortPreamble () const |
| Check if the short preamble bit in the capability information field is set to 1. | |
| bool | IsShortSlotTime () const |
| Check if the short slot time in the capability information field is set to 1. | |
| Buffer::Iterator | Serialize (Buffer::Iterator start) const |
| Serialize capability information to the given buffer. | |
| void | SetCfPollable () |
| Set the CF-Pollable bit in the capability information field. | |
| void | SetCriticalUpdate (bool flag) |
| Set Critical Update flag (see IEEE 802.11be D5.0 9.4.1.4) | |
| void | SetEss () |
| Set the Extended Service Set (ESS) bit in the capability information field. | |
| void | SetIbss () |
| Set the Independent BSS (IBSS) bit in the capability information field. | |
| void | SetShortPreamble (bool shortPreamble) |
| Set the short preamble bit in the capability information field. | |
| void | SetShortSlotTime (bool shortSlotTime) |
| Set the short slot time bit in the capability information field. | |
Private Member Functions | |
| void | Clear (uint8_t n) |
| Set bit n to 0. | |
| bool | Is (uint8_t n) const |
| Check if bit n is set to 1. | |
| void | Set (uint8_t n) |
| Set bit n to 1. | |
Private Attributes | |
| uint16_t | m_capability |
| capability | |
Capability information.
Definition at line 22 of file capability-information.h.
| ns3::CapabilityInformation::CapabilityInformation | ( | ) |
Definition at line 14 of file capability-information.cc.
References m_capability.
|
private |
Set bit n to 0.
| n | the bit position |
Definition at line 110 of file capability-information.cc.
References m_capability.
Referenced by SetEss(), and SetIbss().
Here is the caller graph for this function:| Buffer::Iterator ns3::CapabilityInformation::Deserialize | ( | Buffer::Iterator | start | ) |
Deserialize capability information from the given buffer.
| start | an iterator to a buffer |
Definition at line 137 of file capability-information.cc.
References m_capability.
Referenced by BasicMultiLinkElementTest::DoRun().
Here is the caller graph for this function:| uint32_t ns3::CapabilityInformation::GetSerializedSize | ( | ) | const |
Return the serialized size of capability information.
Definition at line 124 of file capability-information.cc.
|
private |
Check if bit n is set to 1.
| n | the bit position |
Definition at line 117 of file capability-information.cc.
References m_capability.
Referenced by IsCfPollable(), IsCriticalUpdate(), IsEss(), IsIbss(), IsShortPreamble(), and IsShortSlotTime().
Here is the caller graph for this function:| bool ns3::CapabilityInformation::IsCfPollable | ( | ) | const |
Check if the CF-Pollable bit in the capability information field is set to 1.
Definition at line 91 of file capability-information.cc.
References Is().
Here is the call graph for this function:| bool ns3::CapabilityInformation::IsCriticalUpdate | ( | ) | const |
Check if Critical Update bit is set to 1.
Definition at line 97 of file capability-information.cc.
References Is().
Here is the call graph for this function:| bool ns3::CapabilityInformation::IsEss | ( | ) | const |
Check if the Extended Service Set (ESS) bit in the capability information field is set to 1.
Definition at line 67 of file capability-information.cc.
References Is().
Here is the call graph for this function:| bool ns3::CapabilityInformation::IsIbss | ( | ) | const |
Check if the Independent BSS (IBSS) bit in the capability information field is set to 1.
Definition at line 73 of file capability-information.cc.
References Is().
Here is the call graph for this function:| bool ns3::CapabilityInformation::IsShortPreamble | ( | ) | const |
Check if the short preamble bit in the capability information field is set to 1.
Definition at line 79 of file capability-information.cc.
References Is().
Referenced by ns3::ApWifiMac::ReceiveAssocRequest().
Here is the call graph for this function:
Here is the caller graph for this function:| bool ns3::CapabilityInformation::IsShortSlotTime | ( | ) | const |
Check if the short slot time in the capability information field is set to 1.
Definition at line 85 of file capability-information.cc.
References Is().
Referenced by ns3::ApWifiMac::ReceiveAssocRequest().
Here is the call graph for this function:
Here is the caller graph for this function:| Buffer::Iterator ns3::CapabilityInformation::Serialize | ( | Buffer::Iterator | start | ) | const |
Serialize capability information to the given buffer.
| start | an iterator to a buffer |
Definition at line 130 of file capability-information.cc.
References m_capability.
|
private |
Set bit n to 1.
| n | the bit position |
Definition at line 103 of file capability-information.cc.
References m_capability.
Referenced by SetCfPollable(), SetCriticalUpdate(), SetEss(), SetIbss(), SetShortPreamble(), and SetShortSlotTime().
Here is the caller graph for this function:| void ns3::CapabilityInformation::SetCfPollable | ( | ) |
Set the CF-Pollable bit in the capability information field.
Definition at line 52 of file capability-information.cc.
References Set().
Here is the call graph for this function:| void ns3::CapabilityInformation::SetCriticalUpdate | ( | bool | flag | ) |
Set Critical Update flag (see IEEE 802.11be D5.0 9.4.1.4)
| flag | critical update bit |
Definition at line 58 of file capability-information.cc.
References Set().
Here is the call graph for this function:| void ns3::CapabilityInformation::SetEss | ( | ) |
Set the Extended Service Set (ESS) bit in the capability information field.
Definition at line 20 of file capability-information.cc.
References Clear(), and Set().
Referenced by ns3::ApWifiMac::GetCapabilities().
Here is the call graph for this function:
Here is the caller graph for this function:| void ns3::CapabilityInformation::SetIbss | ( | ) |
Set the Independent BSS (IBSS) bit in the capability information field.
Definition at line 27 of file capability-information.cc.
References Clear(), and Set().
Here is the call graph for this function:| void ns3::CapabilityInformation::SetShortPreamble | ( | bool | shortPreamble | ) |
Set the short preamble bit in the capability information field.
| shortPreamble | the short preamble bit |
Definition at line 34 of file capability-information.cc.
References Set().
Referenced by BasicMultiLinkElementTest::DoRun(), ns3::ApWifiMac::GetCapabilities(), and ns3::StaWifiMac::GetCapabilities().
Here is the call graph for this function:
Here is the caller graph for this function:| void ns3::CapabilityInformation::SetShortSlotTime | ( | bool | shortSlotTime | ) |
Set the short slot time bit in the capability information field.
| shortSlotTime | the short preamble bit |
Definition at line 43 of file capability-information.cc.
References Set().
Referenced by ns3::ApWifiMac::GetCapabilities(), and ns3::StaWifiMac::GetCapabilities().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
capability
Definition at line 160 of file capability-information.h.
Referenced by CapabilityInformation(), Clear(), Deserialize(), Is(), Serialize(), and Set().