A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
anonymous_namespace{wifi-gcr-test.cc} Namespace Reference

Functions

uint32_t ConvertContextToNodeId (const std::string &context)
 Get the node ID from the context string.
 
uint16_t GetGcrMaxNumMpdus (uint16_t maxNumMpdus, const std::vector< GcrTestBase::StaInfo > &stas)
 Get the maximum number of groupcast MPDUs that can be in flight.
 
std::size_t GetNumGcrStas (const std::vector< GcrTestBase::StaInfo > &stas)
 Get the number of GCR STAs.
 
std::size_t GetNumNonGcrStas (const std::vector< GcrTestBase::StaInfo > &stas)
 Get the number of non-GCR STAs.
 
std::size_t GetNumNonHtStas (const std::vector< GcrTestBase::StaInfo > &stas)
 Get the number of non-HT STAs.
 

Variables

constexpr bool GCR_CAPABLE_STA {true}
 STA that is GCR capable.
 
constexpr bool GCR_INCAPABLE_STA {false}
 STA that is not GCR capable.
 
constexpr uint32_t maxRtsCtsThreshold {4692480}
 maximum value for RTS/CTS threshold
 
constexpr uint16_t MULTICAST_PROTOCOL {1}
 protocol to create socket for multicast
 
auto printStasInfo
 Lambda to print stations information.
 
constexpr uint16_t UNICAST_PROTOCOL {2}
 protocol to create socket for unicast
 

Function Documentation

◆ ConvertContextToNodeId()

uint32_t anonymous_namespace{wifi-gcr-test.cc}::ConvertContextToNodeId ( const std::string & context)

Get the node ID from the context string.

Parameters
contextthe context string
Returns
the corresponding node ID

Definition at line 120 of file wifi-gcr-test.cc.

◆ GetGcrMaxNumMpdus()

uint16_t anonymous_namespace{wifi-gcr-test.cc}::GetGcrMaxNumMpdus ( uint16_t maxNumMpdus,
const std::vector< GcrTestBase::StaInfo > & stas )

Get the maximum number of groupcast MPDUs that can be in flight.

Parameters
maxNumMpdusthe configured maximum number of MPDUs
stasinformation about all STAs of the test
Returns
the maximum number of groupcast MPDUs that can be in flight

Definition at line 135 of file wifi-gcr-test.cc.

References ns3::WIFI_STANDARD_80211ax, and ns3::WIFI_STANDARD_80211be.

◆ GetNumGcrStas()

std::size_t anonymous_namespace{wifi-gcr-test.cc}::GetNumGcrStas ( const std::vector< GcrTestBase::StaInfo > & stas)

Get the number of GCR STAs.

Parameters
stasinformation about all STAs of the test
Returns
the number of GCR STAs

Definition at line 63 of file wifi-gcr-test.cc.

Referenced by GetNumNonGcrStas().

+ Here is the caller graph for this function:

◆ GetNumNonGcrStas()

std::size_t anonymous_namespace{wifi-gcr-test.cc}::GetNumNonGcrStas ( const std::vector< GcrTestBase::StaInfo > & stas)

Get the number of non-GCR STAs.

Parameters
stasinformation about all STAs of the test
Returns
the number of non-GCR STAs

Definition at line 77 of file wifi-gcr-test.cc.

References GetNumGcrStas().

+ Here is the call graph for this function:

◆ GetNumNonHtStas()

std::size_t anonymous_namespace{wifi-gcr-test.cc}::GetNumNonHtStas ( const std::vector< GcrTestBase::StaInfo > & stas)

Get the number of non-HT STAs.

Parameters
stasinformation about all STAs of the test
Returns
the number of non-HT STAs

Definition at line 89 of file wifi-gcr-test.cc.

Variable Documentation

◆ GCR_CAPABLE_STA

bool anonymous_namespace{wifi-gcr-test.cc}::GCR_CAPABLE_STA {true}
constexpr

STA that is GCR capable.

Definition at line 158 of file wifi-gcr-test.cc.

◆ GCR_INCAPABLE_STA

bool anonymous_namespace{wifi-gcr-test.cc}::GCR_INCAPABLE_STA {false}
constexpr

STA that is not GCR capable.

Definition at line 159 of file wifi-gcr-test.cc.

◆ maxRtsCtsThreshold

uint32_t anonymous_namespace{wifi-gcr-test.cc}::maxRtsCtsThreshold {4692480}
constexpr

maximum value for RTS/CTS threshold

Definition at line 156 of file wifi-gcr-test.cc.

◆ MULTICAST_PROTOCOL

uint16_t anonymous_namespace{wifi-gcr-test.cc}::MULTICAST_PROTOCOL {1}
constexpr

protocol to create socket for multicast

Definition at line 153 of file wifi-gcr-test.cc.

◆ printStasInfo

auto anonymous_namespace{wifi-gcr-test.cc}::printStasInfo
Initial value:
= [](const std::vector<GcrTestBase::StaInfo>& v) {
std::stringstream ss;
std::size_t index = 0;
ss << "{";
for (const auto& staInfo : v)
{
ss << "STA" << ++index << ": GCRcapable=" << staInfo.gcrCapable
<< " standard=" << staInfo.standard << " maxBw=" << staInfo.maxChannelWidth
<< " maxNss=" << +staInfo.maxNumStreams << " minGi=" << staInfo.minGi << "; ";
}
ss << "}";
return ss.str();
}

Lambda to print stations information.

Definition at line 99 of file wifi-gcr-test.cc.

◆ UNICAST_PROTOCOL

uint16_t anonymous_namespace{wifi-gcr-test.cc}::UNICAST_PROTOCOL {2}
constexpr

protocol to create socket for unicast

Definition at line 154 of file wifi-gcr-test.cc.