A Discrete-Event Network Simulator
API
ns3::ReducedNeighborReport Class Reference

The Reduced Neighbor Report element. More...

#include "reduced-neighbor-report.h"

+ Inheritance diagram for ns3::ReducedNeighborReport:
+ Collaboration diagram for ns3::ReducedNeighborReport:

Classes

struct  MldParameters
 MLD Parameters subfield. More...
 
struct  NeighborApInformation
 Neighbor AP information field. More...
 
struct  TbttInformation
 TBTT Information field. More...
 
struct  TbttInformationHeader
 TBTT Information Header subfield. More...
 

Public Member Functions

 ReducedNeighborReport ()
 
void AddNbrApInfoField ()
 Add a Neighbor AP Information field. More...
 
void AddTbttInformationField (std::size_t nbrApInfoId)
 Add a TBTT Information fields to the TBTT Information Set field of the given Neighbor AP Information field. More...
 
uint16_t DeserializeInformationField (Buffer::Iterator start, uint16_t length) override
 Deserialize information (i.e., the body of the IE, not including the Element ID and length octets) More...
 
WifiInformationElementId ElementId () const override
 Get the wifi information element ID. More...
 
Mac48Address GetBssid (std::size_t nbrApInfoId, std::size_t index) const
 Get the BSSID field (must be present) in the i-th TBTT Information field of the given Neighbor AP Information field. More...
 
uint8_t GetBssParameters (std::size_t nbrApInfoId, std::size_t index) const
 Get the BSS Parameters field (must be present) in the i-th TBTT Information field of the given Neighbor AP Information field. More...
 
uint16_t GetInformationFieldSize () const override
 Length of serialized information (i.e., the length of the body of the IE, not including the Element ID and length octets. More...
 
uint8_t GetLinkId (std::size_t nbrApInfoId, std::size_t index) const
 Get the Link ID value in the MLD Parameters subfield (must be present) in the i-th TBTT Information field of the given Neighbor AP Information field. More...
 
uint8_t GetMldId (std::size_t nbrApInfoId, std::size_t index) const
 Get the MLD ID value in the MLD Parameters subfield (must be present) in the i-th TBTT Information field of the given Neighbor AP Information field. More...
 
std::size_t GetNNbrApInfoFields () const
 Get the number of Neighbor AP Information fields. More...
 
std::size_t GetNTbttInformationFields (std::size_t nbrApInfoId) const
 Get the number of TBTT Information fields included in the TBTT Information Set field of the given Neighbor AP Information field. More...
 
WifiPhyOperatingChannel GetOperatingChannel (std::size_t nbrApInfoId) const
 Get the operating channel coded into the Operating Class and the Channel Number fields of the given Neighbor AP Information field. More...
 
uint8_t GetPsd20MHz (std::size_t nbrApInfoId, std::size_t index) const
 Get the 20 MHz PSD field (must be present) in the i-th TBTT Information field of the given Neighbor AP Information field. More...
 
uint32_t GetShortSsid (std::size_t nbrApInfoId, std::size_t index) const
 Get the Short SSID field (must be present) in the i-th TBTT Information field of the given Neighbor AP Information field. More...
 
bool HasBssid (std::size_t nbrApInfoId) const
 Return true if the BSSID field is present in all the TBTT Information fields of the given Neighbor AP Information field. More...
 
bool HasBssParameters (std::size_t nbrApInfoId) const
 Return true if the BSS Parameters field is present in all the TBTT Information fields of the given Neighbor AP Information field. More...
 
bool HasMldParameters (std::size_t nbrApInfoId) const
 Return true if the MLD Parameters subfield is present in all the TBTT Information fields of the given Neighbor AP Information field. More...
 
bool HasPsd20MHz (std::size_t nbrApInfoId) const
 Return true if the 20 MHz PSD field is present in all the TBTT Information fields of the given Neighbor AP Information field. More...
 
bool HasShortSsid (std::size_t nbrApInfoId) const
 Return true if the Short SSID field is present in all the TBTT Information fields of the given Neighbor AP Information field. More...
 
void SerializeInformationField (Buffer::Iterator start) const override
 Serialize information (i.e., the body of the IE, not including the Element ID and length octets) More...
 
void SetBssid (std::size_t nbrApInfoId, std::size_t index, Mac48Address bssid)
 Set the BSSID field of the i-th TBTT Information field of the given Neighbor AP Information field. More...
 
void SetBssParameters (std::size_t nbrApInfoId, std::size_t index, uint8_t bssParameters)
 Set the BSS Parameters field of the i-th TBTT Information field of the given Neighbor AP Information field. More...
 
void SetMldParameters (std::size_t nbrApInfoId, std::size_t index, uint8_t mldId, uint8_t linkId, uint8_t changeSequence)
 Set the MLD Parameters subfield of the i-th TBTT Information field of the given Neighbor AP Information field. More...
 
void SetOperatingChannel (std::size_t nbrApInfoId, const WifiPhyOperatingChannel &channel)
 Set the Operating Class and the Channel Number fields of the given Neighbor AP Information field based on the given operating channel. More...
 
void SetPsd20MHz (std::size_t nbrApInfoId, std::size_t index, uint8_t psd20MHz)
 Set the 20 MHz PSD field of the i-th TBTT Information field of the given Neighbor AP Information field. More...
 
void SetShortSsid (std::size_t nbrApInfoId, std::size_t index, uint32_t shortSsid)
 Set the Short SSID field of the i-th TBTT Information field of the given Neighbor AP Information field. More...
 
- Public Member Functions inherited from ns3::WifiInformationElement
virtual ~WifiInformationElement ()
 
Buffer::Iterator Deserialize (Buffer::Iterator i)
 Deserialize entire IE (which may possibly be fragmented into multiple elements), which must be present. More...
 
Buffer::Iterator DeserializeIfPresent (Buffer::Iterator i)
 Deserialize entire IE (which may possibly be fragmented into multiple elements) if it is present. More...
 
virtual WifiInformationElementId ElementIdExt () const
 Get the wifi information element ID extension. More...
 
uint16_t GetSerializedSize () const
 Get the size of the serialized IE including Element ID and length fields (for every element this IE is possibly fragmented into). More...
 
virtual bool operator== (const WifiInformationElement &a) const
 Compare two IEs for equality by ID & Length, and then through memcmp of serialised version. More...
 
virtual void Print (std::ostream &os) const
 Generate human-readable form of IE. More...
 
Buffer::Iterator Serialize (Buffer::Iterator i) const
 Serialize entire IE including Element ID and length fields. More...
 
- Public Member Functions inherited from ns3::SimpleRefCount< WifiInformationElement >
 SimpleRefCount ()
 Default constructor. More...
 
 SimpleRefCount (const SimpleRefCount &o[[maybe_unused]])
 Copy constructor. More...
 
uint32_t GetReferenceCount () const
 Get the reference count of the object. More...
 
SimpleRefCountoperator= (const SimpleRefCount &o[[maybe_unused]])
 Assignment operator. More...
 
void Ref () const
 Increment the reference count. More...
 
void Unref () const
 Decrement the reference count. More...
 

Private Member Functions

uint8_t ReadTbttInformationCount (std::size_t nbrApInfoId) const
 Get the TBTT Information Count field of the given Neighbor AP Information field. More...
 
void ReadTbttInformationLength (std::size_t nbrApInfoId)
 Use the TBTT Information Length field of the given Neighbor AP Information field to set the xxxPresent flags of the NeighborApInformation struct. More...
 
void WriteTbttInformationCount (std::size_t nbrApInfoId) const
 Set the TBTT Information Count field of the given Neighbor AP Information field based on the size of the tbttInformationSet field. More...
 
void WriteTbttInformationLength (std::size_t nbrApInfoId) const
 Set the TBTT Information Length field of the given Neighbor AP Information field based on the xxxPresent flags of the NeighborApInformation struct. More...
 

Private Attributes

std::vector< NeighborApInformationm_nbrApInfoFields
 one or more Neighbor AP Information fields More...
 

Detailed Description

The Reduced Neighbor Report element.

This class knows how to serialise and deserialise the Reduced Neighbor Report element.

Definition at line 40 of file reduced-neighbor-report.h.

Constructor & Destructor Documentation

◆ ReducedNeighborReport()

ns3::ReducedNeighborReport::ReducedNeighborReport ( )

Definition at line 32 of file reduced-neighbor-report.cc.

Member Function Documentation

◆ AddNbrApInfoField()

void ns3::ReducedNeighborReport::AddNbrApInfoField ( )

Add a Neighbor AP Information field.

Definition at line 49 of file reduced-neighbor-report.cc.

References m_nbrApInfoFields.

Referenced by DeserializeInformationField(), GetRnrLinkInfoTest::DoRun(), ReducedNeighborReportTest::GetReducedNeighborReport(), and ns3::ApWifiMac::GetReducedNeighborReport().

+ Here is the caller graph for this function:

◆ AddTbttInformationField()

void ns3::ReducedNeighborReport::AddTbttInformationField ( std::size_t  nbrApInfoId)

Add a TBTT Information fields to the TBTT Information Set field of the given Neighbor AP Information field.

Parameters
nbrApInfoIdidentifier of the given Neighbor AP Information field

Definition at line 353 of file reduced-neighbor-report.cc.

References m_nbrApInfoFields, and NS_ASSERT.

Referenced by DeserializeInformationField(), GetRnrLinkInfoTest::DoRun(), ReducedNeighborReportTest::GetReducedNeighborReport(), and ns3::ApWifiMac::GetReducedNeighborReport().

+ Here is the caller graph for this function:

◆ DeserializeInformationField()

uint16_t ns3::ReducedNeighborReport::DeserializeInformationField ( Buffer::Iterator  start,
uint16_t  length 
)
overridevirtual

Deserialize information (i.e., the body of the IE, not including the Element ID and length octets)

Parameters
startan iterator which points to where the information should be written.
lengththe expected number of bytes to read
Returns
the number of bytes read

Implements ns3::WifiInformationElement.

Definition at line 685 of file reduced-neighbor-report.cc.

References AddNbrApInfoField(), AddTbttInformationField(), m_nbrApInfoFields, ns3::ReadFrom(), ns3::Buffer::Iterator::ReadLsbtohU16(), ns3::Buffer::Iterator::ReadLsbtohU32(), ReadTbttInformationCount(), ReadTbttInformationLength(), ns3::Buffer::Iterator::ReadU8(), and two-ray-to-three-gpp-ch-calibration::start.

+ Here is the call graph for this function:

◆ ElementId()

WifiInformationElementId ns3::ReducedNeighborReport::ElementId ( ) const
overridevirtual

Get the wifi information element ID.

Returns
the wifi information element ID

Implements ns3::WifiInformationElement.

Definition at line 37 of file reduced-neighbor-report.cc.

References IE_REDUCED_NEIGHBOR_REPORT.

◆ GetBssid()

Mac48Address ns3::ReducedNeighborReport::GetBssid ( std::size_t  nbrApInfoId,
std::size_t  index 
) const

Get the BSSID field (must be present) in the i-th TBTT Information field of the given Neighbor AP Information field.

Parameters
nbrApInfoIdidentifier of the given Neighbor AP Information field
indexthe index of the given TBTT Information field
Returns
the BSSID field

Definition at line 436 of file reduced-neighbor-report.cc.

References HasBssid(), m_nbrApInfoFields, and NS_ASSERT.

+ Here is the call graph for this function:

◆ GetBssParameters()

uint8_t ns3::ReducedNeighborReport::GetBssParameters ( std::size_t  nbrApInfoId,
std::size_t  index 
) const

Get the BSS Parameters field (must be present) in the i-th TBTT Information field of the given Neighbor AP Information field.

Parameters
nbrApInfoIdidentifier of the given Neighbor AP Information field
indexthe index of the given TBTT Information field
Returns
the BSS Parameters field

Definition at line 494 of file reduced-neighbor-report.cc.

References HasBssParameters(), m_nbrApInfoFields, and NS_ASSERT.

+ Here is the call graph for this function:

◆ GetInformationFieldSize()

uint16_t ns3::ReducedNeighborReport::GetInformationFieldSize ( ) const
overridevirtual

Length of serialized information (i.e., the length of the body of the IE, not including the Element ID and length octets.

This is the value that will appear in the second octet of the entire IE - the length field - if the IE is not fragmented)

Returns
the length of serialized information

Implements ns3::WifiInformationElement.

Definition at line 595 of file reduced-neighbor-report.cc.

References m_nbrApInfoFields.

◆ GetLinkId()

uint8_t ns3::ReducedNeighborReport::GetLinkId ( std::size_t  nbrApInfoId,
std::size_t  index 
) const

Get the Link ID value in the MLD Parameters subfield (must be present) in the i-th TBTT Information field of the given Neighbor AP Information field.

Parameters
nbrApInfoIdidentifier of the given Neighbor AP Information field
indexthe index of the given TBTT Information field
Returns
the Link ID value

Definition at line 566 of file reduced-neighbor-report.cc.

References HasMldParameters(), m_nbrApInfoFields, and NS_ASSERT.

+ Here is the call graph for this function:

◆ GetMldId()

uint8_t ns3::ReducedNeighborReport::GetMldId ( std::size_t  nbrApInfoId,
std::size_t  index 
) const

Get the MLD ID value in the MLD Parameters subfield (must be present) in the i-th TBTT Information field of the given Neighbor AP Information field.

Parameters
nbrApInfoIdidentifier of the given Neighbor AP Information field
indexthe index of the given TBTT Information field
Returns
the MLD ID value

Definition at line 557 of file reduced-neighbor-report.cc.

References HasMldParameters(), m_nbrApInfoFields, and NS_ASSERT.

Referenced by ns3::WifiAssocManager::GetNextAffiliatedAp().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetNNbrApInfoFields()

std::size_t ns3::ReducedNeighborReport::GetNNbrApInfoFields ( ) const

Get the number of Neighbor AP Information fields.

Returns
the number of Neighbor AP Information fields

Definition at line 43 of file reduced-neighbor-report.cc.

References m_nbrApInfoFields.

Referenced by GetRnrLinkInfoTest::DoRun(), ns3::WifiAssocManager::GetNextAffiliatedAp(), ReducedNeighborReportTest::GetReducedNeighborReport(), and ns3::ApWifiMac::GetReducedNeighborReport().

+ Here is the caller graph for this function:

◆ GetNTbttInformationFields()

std::size_t ns3::ReducedNeighborReport::GetNTbttInformationFields ( std::size_t  nbrApInfoId) const

Get the number of TBTT Information fields included in the TBTT Information Set field of the given Neighbor AP Information field.

Parameters
nbrApInfoIdidentifier of the given Neighbor AP Information field
Returns
the number of TBTT Information fields

Definition at line 346 of file reduced-neighbor-report.cc.

References m_nbrApInfoFields, and NS_ASSERT.

Referenced by GetRnrLinkInfoTest::DoRun(), and ns3::WifiAssocManager::GetNextAffiliatedAp().

+ Here is the caller graph for this function:

◆ GetOperatingChannel()

WifiPhyOperatingChannel ns3::ReducedNeighborReport::GetOperatingChannel ( std::size_t  nbrApInfoId) const

Get the operating channel coded into the Operating Class and the Channel Number fields of the given Neighbor AP Information field.

Parameters
nbrApInfoIdidentifier of the given Neighbor AP Information field
Returns
the PHY operating channel

Definition at line 198 of file reduced-neighbor-report.cc.

References third::channel, ns3::WifiPhyOperatingChannel::m_frequencyChannels, m_nbrApInfoFields, NS_ABORT_IF, NS_ABORT_MSG, NS_ASSERT, ns3::WIFI_PHY_BAND_2_4GHZ, ns3::WIFI_PHY_BAND_5GHZ, ns3::WIFI_PHY_BAND_6GHZ, ns3::WIFI_PHY_BAND_UNSPECIFIED, ns3::WIFI_PHY_OFDM_CHANNEL, and ns3::WIFI_STANDARD_UNSPECIFIED.

◆ GetPsd20MHz()

uint8_t ns3::ReducedNeighborReport::GetPsd20MHz ( std::size_t  nbrApInfoId,
std::size_t  index 
) const

Get the 20 MHz PSD field (must be present) in the i-th TBTT Information field of the given Neighbor AP Information field.

Parameters
nbrApInfoIdidentifier of the given Neighbor AP Information field
indexthe index of the given TBTT Information field
Returns
the 20 MHz PSD field

Definition at line 522 of file reduced-neighbor-report.cc.

References HasPsd20MHz(), m_nbrApInfoFields, and NS_ASSERT.

+ Here is the call graph for this function:

◆ GetShortSsid()

uint32_t ns3::ReducedNeighborReport::GetShortSsid ( std::size_t  nbrApInfoId,
std::size_t  index 
) const

Get the Short SSID field (must be present) in the i-th TBTT Information field of the given Neighbor AP Information field.

Parameters
nbrApInfoIdidentifier of the given Neighbor AP Information field
indexthe index of the given TBTT Information field
Returns
the Short SSID field

Definition at line 464 of file reduced-neighbor-report.cc.

References HasShortSsid(), m_nbrApInfoFields, and NS_ASSERT.

+ Here is the call graph for this function:

◆ HasBssid()

bool ns3::ReducedNeighborReport::HasBssid ( std::size_t  nbrApInfoId) const

Return true if the BSSID field is present in all the TBTT Information fields of the given Neighbor AP Information field.

Parameters
nbrApInfoIdidentifier of the given Neighbor AP Information field
Returns
true if the BSSID field is present

Definition at line 428 of file reduced-neighbor-report.cc.

References m_nbrApInfoFields, and NS_ASSERT.

Referenced by GetBssid().

+ Here is the caller graph for this function:

◆ HasBssParameters()

bool ns3::ReducedNeighborReport::HasBssParameters ( std::size_t  nbrApInfoId) const

Return true if the BSS Parameters field is present in all the TBTT Information fields of the given Neighbor AP Information field.

Parameters
nbrApInfoIdidentifier of the given Neighbor AP Information field
Returns
true if the BSS Parameters field is present

Definition at line 486 of file reduced-neighbor-report.cc.

References m_nbrApInfoFields, and NS_ASSERT.

Referenced by GetBssParameters().

+ Here is the caller graph for this function:

◆ HasMldParameters()

bool ns3::ReducedNeighborReport::HasMldParameters ( std::size_t  nbrApInfoId) const

Return true if the MLD Parameters subfield is present in all the TBTT Information fields of the given Neighbor AP Information field.

Parameters
nbrApInfoIdidentifier of the given Neighbor AP Information field
Returns
true if the MLD Parameters subfield is present

Definition at line 549 of file reduced-neighbor-report.cc.

References m_nbrApInfoFields, and NS_ASSERT.

Referenced by GetLinkId(), GetMldId(), and ns3::WifiAssocManager::GetNextAffiliatedAp().

+ Here is the caller graph for this function:

◆ HasPsd20MHz()

bool ns3::ReducedNeighborReport::HasPsd20MHz ( std::size_t  nbrApInfoId) const

Return true if the 20 MHz PSD field is present in all the TBTT Information fields of the given Neighbor AP Information field.

Parameters
nbrApInfoIdidentifier of the given Neighbor AP Information field
Returns
true if the 20 MHz PSD field is present

Definition at line 514 of file reduced-neighbor-report.cc.

References m_nbrApInfoFields, and NS_ASSERT.

Referenced by GetPsd20MHz().

+ Here is the caller graph for this function:

◆ HasShortSsid()

bool ns3::ReducedNeighborReport::HasShortSsid ( std::size_t  nbrApInfoId) const

Return true if the Short SSID field is present in all the TBTT Information fields of the given Neighbor AP Information field.

Parameters
nbrApInfoIdidentifier of the given Neighbor AP Information field
Returns
true if the Short SSID field is present

Definition at line 456 of file reduced-neighbor-report.cc.

References m_nbrApInfoFields, and NS_ASSERT.

Referenced by GetShortSsid().

+ Here is the caller graph for this function:

◆ ReadTbttInformationCount()

uint8_t ns3::ReducedNeighborReport::ReadTbttInformationCount ( std::size_t  nbrApInfoId) const
private

Get the TBTT Information Count field of the given Neighbor AP Information field.

Parameters
nbrApInfoIdidentifier of the given Neighbor AP Information field
Returns
the TBTT Information Count

Definition at line 587 of file reduced-neighbor-report.cc.

References m_nbrApInfoFields, and NS_ASSERT.

Referenced by DeserializeInformationField().

+ Here is the caller graph for this function:

◆ ReadTbttInformationLength()

void ns3::ReducedNeighborReport::ReadTbttInformationLength ( std::size_t  nbrApInfoId)
private

Use the TBTT Information Length field of the given Neighbor AP Information field to set the xxxPresent flags of the NeighborApInformation struct.

Parameters
nbrApInfoIdidentifier of the given Neighbor AP Information field

Definition at line 388 of file reduced-neighbor-report.cc.

References m_nbrApInfoFields, NS_ABORT_MSG, and NS_ASSERT.

Referenced by DeserializeInformationField().

+ Here is the caller graph for this function:

◆ SerializeInformationField()

void ns3::ReducedNeighborReport::SerializeInformationField ( Buffer::Iterator  start) const
overridevirtual

Serialize information (i.e., the body of the IE, not including the Element ID and length octets)

Parameters
startan iterator which points to where the information should be written.

Implements ns3::WifiInformationElement.

Definition at line 631 of file reduced-neighbor-report.cc.

References m_nbrApInfoFields, two-ray-to-three-gpp-ch-calibration::start, WriteTbttInformationCount(), WriteTbttInformationLength(), and ns3::WriteTo().

+ Here is the call graph for this function:

◆ SetBssid()

void ns3::ReducedNeighborReport::SetBssid ( std::size_t  nbrApInfoId,
std::size_t  index,
Mac48Address  bssid 
)

Set the BSSID field of the i-th TBTT Information field of the given Neighbor AP Information field.

Parameters
nbrApInfoIdidentifier of the given Neighbor AP Information field
indexthe index of the given TBTT Information field
bssidthe BSSID value

Definition at line 417 of file reduced-neighbor-report.cc.

References m_nbrApInfoFields, and NS_ASSERT.

Referenced by ReducedNeighborReportTest::GetReducedNeighborReport(), and ns3::ApWifiMac::GetReducedNeighborReport().

+ Here is the caller graph for this function:

◆ SetBssParameters()

void ns3::ReducedNeighborReport::SetBssParameters ( std::size_t  nbrApInfoId,
std::size_t  index,
uint8_t  bssParameters 
)

Set the BSS Parameters field of the i-th TBTT Information field of the given Neighbor AP Information field.

Parameters
nbrApInfoIdidentifier of the given Neighbor AP Information field
indexthe index of the given TBTT Information field
bssParametersthe BSS Parameters value

Definition at line 473 of file reduced-neighbor-report.cc.

References m_nbrApInfoFields, and NS_ASSERT.

Referenced by ReducedNeighborReportTest::GetReducedNeighborReport(), and ns3::ApWifiMac::GetReducedNeighborReport().

+ Here is the caller graph for this function:

◆ SetMldParameters()

void ns3::ReducedNeighborReport::SetMldParameters ( std::size_t  nbrApInfoId,
std::size_t  index,
uint8_t  mldId,
uint8_t  linkId,
uint8_t  changeSequence 
)

Set the MLD Parameters subfield of the i-th TBTT Information field of the given Neighbor AP Information field.

Parameters
nbrApInfoIdidentifier of the given Neighbor AP Information field
indexthe index of the given TBTT Information field
mldIdthe MLD ID value
linkIdthe Link ID value
changeSequencethe Change Sequence value

Definition at line 531 of file reduced-neighbor-report.cc.

References m_nbrApInfoFields, and NS_ASSERT.

Referenced by GetRnrLinkInfoTest::DoRun(), ReducedNeighborReportTest::GetReducedNeighborReport(), and ns3::ApWifiMac::GetReducedNeighborReport().

+ Here is the caller graph for this function:

◆ SetOperatingChannel()

void ns3::ReducedNeighborReport::SetOperatingChannel ( std::size_t  nbrApInfoId,
const WifiPhyOperatingChannel channel 
)

Set the Operating Class and the Channel Number fields of the given Neighbor AP Information field based on the given operating channel.

Parameters
nbrApInfoIdidentifier of the given Neighbor AP Information field
channelthe PHY operating channel

Definition at line 55 of file reduced-neighbor-report.cc.

References third::channel, m_nbrApInfoFields, NS_ABORT_MSG, NS_ABORT_MSG_IF, NS_ASSERT, ns3::WIFI_PHY_BAND_2_4GHZ, ns3::WIFI_PHY_BAND_5GHZ, ns3::WIFI_PHY_BAND_6GHZ, and ns3::WIFI_PHY_BAND_UNSPECIFIED.

Referenced by ReducedNeighborReportTest::GetReducedNeighborReport(), and ns3::ApWifiMac::GetReducedNeighborReport().

+ Here is the caller graph for this function:

◆ SetPsd20MHz()

void ns3::ReducedNeighborReport::SetPsd20MHz ( std::size_t  nbrApInfoId,
std::size_t  index,
uint8_t  psd20MHz 
)

Set the 20 MHz PSD field of the i-th TBTT Information field of the given Neighbor AP Information field.

Parameters
nbrApInfoIdidentifier of the given Neighbor AP Information field
indexthe index of the given TBTT Information field
psd20MHzthe 20 MHz PSD value

Definition at line 503 of file reduced-neighbor-report.cc.

References m_nbrApInfoFields, and NS_ASSERT.

Referenced by ReducedNeighborReportTest::GetReducedNeighborReport(), and ns3::ApWifiMac::GetReducedNeighborReport().

+ Here is the caller graph for this function:

◆ SetShortSsid()

void ns3::ReducedNeighborReport::SetShortSsid ( std::size_t  nbrApInfoId,
std::size_t  index,
uint32_t  shortSsid 
)

Set the Short SSID field of the i-th TBTT Information field of the given Neighbor AP Information field.

Parameters
nbrApInfoIdidentifier of the given Neighbor AP Information field
indexthe index of the given TBTT Information field
shortSsidthe short SSID value

Definition at line 445 of file reduced-neighbor-report.cc.

References m_nbrApInfoFields, and NS_ASSERT.

Referenced by ReducedNeighborReportTest::GetReducedNeighborReport(), and ns3::ApWifiMac::GetReducedNeighborReport().

+ Here is the caller graph for this function:

◆ WriteTbttInformationCount()

void ns3::ReducedNeighborReport::WriteTbttInformationCount ( std::size_t  nbrApInfoId) const
private

Set the TBTT Information Count field of the given Neighbor AP Information field based on the size of the tbttInformationSet field.

This method is marked as const because it needs to be called within the SerializeInformationField method. In fact, only when serializing this object we can set the TBTT Information Count field based on the number of TBTT Information fields included in the given Neighbor AP Information field.

Parameters
nbrApInfoIdidentifier of the given Neighbor AP Information field

Definition at line 576 of file reduced-neighbor-report.cc.

References m_nbrApInfoFields, and NS_ASSERT.

Referenced by SerializeInformationField().

+ Here is the caller graph for this function:

◆ WriteTbttInformationLength()

void ns3::ReducedNeighborReport::WriteTbttInformationLength ( std::size_t  nbrApInfoId) const
private

Set the TBTT Information Length field of the given Neighbor AP Information field based on the xxxPresent flags of the NeighborApInformation struct.

This method is marked as const because it needs to be called within the SerializeInformationField method. In fact, only when serializing this object we can set the TBTT Information Length field based on the TBTT Information field contents.

Parameters
nbrApInfoIdidentifier of the given Neighbor AP Information field

Definition at line 360 of file reduced-neighbor-report.cc.

References m_nbrApInfoFields, NS_ABORT_MSG, and NS_ASSERT.

Referenced by SerializeInformationField().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_nbrApInfoFields


The documentation for this class was generated from the following files: