Capability information. More...
#include "capability-information.h"
Public Member Functions | |
CapabilityInformation () | |
Buffer::Iterator | Deserialize (Buffer::Iterator start) |
Deserialize capability information from the given buffer. More... | |
uint32_t | GetSerializedSize () const |
Return the serialized size of capability information. More... | |
bool | IsCfPollable () const |
Check if the CF-Pollable bit in the capability information field is set to 1. More... | |
bool | IsEss () const |
Check if the Extended Service Set (ESS) bit in the capability information field is set to 1. More... | |
bool | IsIbss () const |
Check if the Independent BSS (IBSS) bit in the capability information field is set to 1. More... | |
bool | IsShortPreamble () const |
Check if the short preamble bit in the capability information field is set to 1. More... | |
bool | IsShortSlotTime () const |
Check if the short slot time in the capability information field is set to 1. More... | |
Buffer::Iterator | Serialize (Buffer::Iterator start) const |
Serialize capability information to the given buffer. More... | |
void | SetCfPollable () |
Set the CF-Pollable bit in the capability information field. More... | |
void | SetEss () |
Set the Extended Service Set (ESS) bit in the capability information field. More... | |
void | SetIbss () |
Set the Independent BSS (IBSS) bit in the capability information field. More... | |
void | SetShortPreamble (bool shortPreamble) |
Set the short preamble bit in the capability information field. More... | |
void | SetShortSlotTime (bool shortSlotTime) |
Set the short slot time bit in the capability information field. More... | |
Private Member Functions | |
void | Clear (uint8_t n) |
Set bit n to 0. More... | |
bool | Is (uint8_t n) const |
Check if bit n is set to 1. More... | |
void | Set (uint8_t n) |
Set bit n to 1. More... | |
Private Attributes | |
uint16_t | m_capability |
capability More... | |
Capability information.
Definition at line 33 of file capability-information.h.
ns3::CapabilityInformation::CapabilityInformation | ( | ) |
Definition at line 25 of file capability-information.cc.
|
private |
Set bit n to 0.
n | the bit position |
Definition at line 106 of file capability-information.cc.
References m_capability.
Referenced by SetEss(), and SetIbss().
Buffer::Iterator ns3::CapabilityInformation::Deserialize | ( | Buffer::Iterator | start | ) |
Deserialize capability information from the given buffer.
start | an iterator to a buffer |
Definition at line 133 of file capability-information.cc.
References m_capability, and two-ray-to-three-gpp-ch-calibration::start.
Referenced by ns3::MgtAssocRequestHeader::DeserializeFromPerStaProfileImpl(), ns3::MgtAssocResponseHeader::DeserializeFromPerStaProfileImpl(), ns3::MgtReassocRequestHeader::DeserializeFromPerStaProfileImpl(), ns3::MgtAssocRequestHeader::DeserializeImpl(), ns3::MgtReassocRequestHeader::DeserializeImpl(), ns3::MgtAssocResponseHeader::DeserializeImpl(), ns3::MgtProbeResponseHeader::DeserializeImpl(), and BasicMultiLinkElementTest::DoRun().
uint32_t ns3::CapabilityInformation::GetSerializedSize | ( | ) | const |
Return the serialized size of capability information.
Definition at line 120 of file capability-information.cc.
Referenced by ns3::MgtAssocRequestHeader::GetSerializedSizeImpl(), ns3::MgtReassocRequestHeader::GetSerializedSizeImpl(), ns3::MgtAssocResponseHeader::GetSerializedSizeImpl(), ns3::MgtProbeResponseHeader::GetSerializedSizeImpl(), ns3::MgtAssocRequestHeader::GetSerializedSizeInPerStaProfileImpl(), ns3::MgtAssocResponseHeader::GetSerializedSizeInPerStaProfileImpl(), and ns3::MgtReassocRequestHeader::GetSerializedSizeInPerStaProfileImpl().
|
private |
Check if bit n is set to 1.
n | the bit position |
Definition at line 113 of file capability-information.cc.
References m_capability.
Referenced by IsCfPollable(), IsEss(), IsIbss(), IsShortPreamble(), and IsShortSlotTime().
bool ns3::CapabilityInformation::IsCfPollable | ( | ) | const |
Check if the CF-Pollable bit in the capability information field is set to 1.
Definition at line 93 of file capability-information.cc.
References Is().
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 69 of file capability-information.cc.
References Is().
bool ns3::CapabilityInformation::IsIbss | ( | ) | const |
Check if the Independent BSS (IBSS) bit in the capability information field is set to 1.
Definition at line 75 of file capability-information.cc.
References Is().
bool ns3::CapabilityInformation::IsShortPreamble | ( | ) | const |
Check if the short preamble bit in the capability information field is set to 1.
Definition at line 81 of file capability-information.cc.
References Is().
Referenced by ns3::ApWifiMac::ReceiveAssocRequest().
bool ns3::CapabilityInformation::IsShortSlotTime | ( | ) | const |
Check if the short slot time in the capability information field is set to 1.
Definition at line 87 of file capability-information.cc.
References Is().
Referenced by ns3::ApWifiMac::ReceiveAssocRequest().
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 126 of file capability-information.cc.
References m_capability, and two-ray-to-three-gpp-ch-calibration::start.
Referenced by ns3::MgtAssocRequestHeader::SerializeImpl(), ns3::MgtReassocRequestHeader::SerializeImpl(), ns3::MgtAssocResponseHeader::SerializeImpl(), ns3::MgtProbeResponseHeader::SerializeImpl(), ns3::MgtAssocRequestHeader::SerializeInPerStaProfileImpl(), ns3::MgtAssocResponseHeader::SerializeInPerStaProfileImpl(), and ns3::MgtReassocRequestHeader::SerializeInPerStaProfileImpl().
|
private |
Set bit n to 1.
n | the bit position |
Definition at line 99 of file capability-information.cc.
References m_capability.
Referenced by SetCfPollable(), SetEss(), SetIbss(), SetShortPreamble(), and SetShortSlotTime().
void ns3::CapabilityInformation::SetCfPollable | ( | ) |
Set the CF-Pollable bit in the capability information field.
Definition at line 63 of file capability-information.cc.
References Set().
void ns3::CapabilityInformation::SetEss | ( | ) |
Set the Extended Service Set (ESS) bit in the capability information field.
Definition at line 31 of file capability-information.cc.
References Clear(), and Set().
Referenced by BasicMultiLinkElementTest::DoRun(), and ns3::ApWifiMac::GetCapabilities().
void ns3::CapabilityInformation::SetIbss | ( | ) |
Set the Independent BSS (IBSS) bit in the capability information field.
Definition at line 38 of file capability-information.cc.
References Clear(), and Set().
void ns3::CapabilityInformation::SetShortPreamble | ( | bool | shortPreamble | ) |
Set the short preamble bit in the capability information field.
shortPreamble | the short preamble bit |
Definition at line 45 of file capability-information.cc.
References Set().
Referenced by BasicMultiLinkElementTest::DoRun(), ns3::ApWifiMac::GetCapabilities(), and ns3::StaWifiMac::GetCapabilities().
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 54 of file capability-information.cc.
References Set().
Referenced by BasicMultiLinkElementTest::DoRun(), ns3::ApWifiMac::GetCapabilities(), and ns3::StaWifiMac::GetCapabilities().
|
private |
capability
Definition at line 158 of file capability-information.h.
Referenced by Clear(), Deserialize(), Is(), Serialize(), and Set().