20 #include "ns3/address-utils.h"
21 #include "ns3/header-serialization-test.h"
23 #include "ns3/mgt-headers.h"
24 #include "ns3/multi-link-element.h"
25 #include "ns3/reduced-neighbor-report.h"
26 #include "ns3/simulator.h"
27 #include "ns3/tid-to-link-mapping-element.h"
28 #include "ns3/wifi-phy-operating-channel.h"
29 #include "ns3/wifi-utils.h"
65 std::vector<MultiLinkElement::PerStaProfileSubelement> subelements);
68 void DoRun()
override;
75 "Check serialization and deserialization of Basic variant Multi-Link elements")
86 std::vector<MultiLinkElement::PerStaProfileSubelement> subelements)
117 for (std::size_t i = 0; i < subelements.size(); ++i)
148 .mediumSyncOfdmEdThreshold = 4,
149 .mediumSyncMaxNTxops = 5};
155 .emlsrPaddingDelay = 4,
156 .emlsrTransitionDelay = 5,
157 .transitionTimeout = 10};
193 for (
auto maxMcs : {7, 9, 11, 13})
211 perStaProfile1.SetLinkId(3);
212 perStaProfile1.SetCompleteProfile();
220 assoc.Get<
Ssid>() =
Ssid(
"OtherSsid");
248 assoc.Get<
Ssid>().reset();
251 auto perStaProfile3 = perStaProfile2;
252 perStaProfile3.SetAssocRequest(assoc);
267 auto i = buffer.
Begin();
281 "ExtendedSupportedRatesIE element not present");
291 "IE_EXT_MULTI_LINK_ELEMENT expected");
293 uint16_t mlControl = i.ReadLsbtohU16();
299 MultiLinkElement::PER_STA_PROFILE_SUBELEMENT_ID,
300 "PER_STA_PROFILE_SUBELEMENT_ID expected");
310 MultiLinkElement::PER_STA_PROFILE_SUBELEMENT_ID,
311 "PER_STA_PROFILE_SUBELEMENT_ID expected");
325 "ExtendedSupportedRatesIE element not present");
336 "Non-Inheritance does not indicate EhtCapabilities");
339 "Unexpected size for Elem ID list of Non-Inheritance element");
342 "Unexpected size for Elem ID list of Non-Inheritance element");
346 MultiLinkElement::PER_STA_PROFILE_SUBELEMENT_ID,
347 "PER_STA_PROFILE_SUBELEMENT_ID expected");
360 "ExtendedSupportedRatesIE element not present");
379 auto count = frame.Deserialize(buffer.
Begin());
386 "Containing frame should have SSID IE");
389 "Containing frame should have Supported Rates IE");
392 "Containing frame should have Extended Supported Rates IE");
395 "Containing frame should not have HT Capabilities IE");
398 "Containing frame should not have Extended Capabilities IE");
401 "Containing frame should not have VHT Capabilities IE");
404 "Containing frame should have HE Capabilities IE");
407 "Containing frame should have Multi-Link Element IE");
410 "Containing frame should have EHT Capabilities IE");
413 "Containing frame should not have TID-to-Link Mapping IE");
419 "Unexpected number of Per-STA Profile subelements");
423 auto& perSta1 = mle.GetPerStaProfile(0);
426 "First Per-STA Profile should contain an Association Request frame");
428 std::get<std::reference_wrapper<MgtAssocRequestHeader>>(perSta1.GetAssocRequest()).
get();
432 "Frame in first Per-STA Profile should not have SSID IE");
435 "Frame in first Per-STA Profile should have Supported Rates IE");
439 "Supported Rates IE not correctly inherited by frame in first Per-STA Profile");
442 "Frame in first Per-STA Profile should have Extended Supported Rates IE");
446 "Extended Supported Rates IE not correctly inherited by frame in first Per-STA Profile");
449 "Frame in first Per-STA Profile should not have HT Capabilities IE");
453 "Frame in first Per-STA Profile should not have Extended Capabilities IE");
456 "Frame in first Per-STA Profile should not have VHT Capabilities IE");
459 "Frame in first Per-STA Profile should have HE Capabilities IE");
463 "HE Capabilities IE not correctly inherited by frame in first Per-STA Profile");
466 "Frame in first Per-STA Profile should not have Multi-Link Element IE");
469 "Frame in first Per-STA Profile should have EHT Capabilities IE");
473 "EHT Capabilities IE not correctly inherited by frame in first Per-STA Profile");
476 "Frame in first Per-STA Profile should not have TID-to-Link Mapping IE");
481 auto& perSta2 = mle.GetPerStaProfile(1);
484 "Second Per-STA Profile should contain an Association Request frame");
486 std::get<std::reference_wrapper<MgtAssocRequestHeader>>(perSta2.GetAssocRequest()).
get();
490 "Frame in second Per-STA Profile should not have SSID IE");
493 "Frame in second Per-STA Profile should have Supported Rates IE");
497 "Supported Rates IE not correctly inherited by frame in second Per-STA Profile");
501 "Frame in second Per-STA Profile should have Extended Supported Rates IE");
505 "Extended Supported Rates IE should have not been inherited by frame in second Per-STA "
509 "Frame in second Per-STA Profile should not have HT Capabilities IE");
513 "Frame in second Per-STA Profile should not have Extended Capabilities IE");
516 "Frame in second Per-STA Profile should have VHT Capabilities IE");
519 "Frame in second Per-STA Profile should have HE Capabilities IE");
523 "HE Capabilities IE not correctly inherited by frame in second Per-STA Profile");
526 "Frame in second Per-STA Profile should not have Multi-Link Element IE");
530 "Frame in second Per-STA Profile should have not inherited EHT Capabilities IE");
533 "Frame in second Per-STA Profile should not have TID-to-Link Mapping IE");
538 auto& perSta3 = mle.GetPerStaProfile(2);
541 "Third Per-STA Profile should contain an Association Request frame");
543 std::get<std::reference_wrapper<MgtAssocRequestHeader>>(perSta3.GetAssocRequest()).
get();
547 "Frame in third Per-STA Profile should not have SSID IE");
550 "Frame in third Per-STA Profile should have Supported Rates IE");
554 "Supported Rates IE not correctly inherited by frame in third Per-STA Profile");
557 "Frame in third Per-STA Profile should have Extended Supported Rates IE");
561 "Extended Supported Rates IE should have not been inherited by frame in third Per-STA "
565 "Frame in third Per-STA Profile should not have HT Capabilities IE");
569 "Frame in third Per-STA Profile should not have Extended Capabilities IE");
572 "Frame in third Per-STA Profile should have VHT Capabilities IE");
575 "Frame in third Per-STA Profile should have HE Capabilities IE");
579 "HE Capabilities IE not correctly inherited by frame in third Per-STA Profile");
582 "Frame in third Per-STA Profile should not have Multi-Link Element IE");
586 "Frame in third Per-STA Profile should have inherited EHT Capabilities IE");
590 "EHT Capabilities IE not correctly inherited by frame in third Per-STA Profile");
593 "Frame in third Per-STA Profile should not have TID-to-Link Mapping IE");
627 void DoRun()
override;
632 "Check serialization and deserialization of Reduced Neighbor Report elements")
647 std::stringstream info;
649 if (channel2_4It != WifiPhyOperatingChannel::m_frequencyChannels.cend())
653 info <<
"{Ch=" << +
channel.GetNumber() <<
", Bw=" <<
channel.GetWidth() <<
", 2.4 GHz} ";
666 if (channel5It != WifiPhyOperatingChannel::m_frequencyChannels.cend())
670 info <<
"{Ch=" << +
channel.GetNumber() <<
", Bw=" <<
channel.GetWidth() <<
", 5 GHz} ";
690 if (channel6It != WifiPhyOperatingChannel::m_frequencyChannels.cend())
694 info <<
"{Ch=" << +
channel.GetNumber() <<
", Bw=" <<
channel.GetWidth() <<
", 6 GHz} ";
717 channel2_4It = channel5It = channel6It = WifiPhyOperatingChannel::m_frequencyChannels.cbegin();
720 while (channel2_4It != WifiPhyOperatingChannel::m_frequencyChannels.cend() ||
721 channel5It != WifiPhyOperatingChannel::m_frequencyChannels.cend() ||
722 channel6It != WifiPhyOperatingChannel::m_frequencyChannels.cend())
724 if (channel2_4It != WifiPhyOperatingChannel::m_frequencyChannels.cend())
726 channel2_4It = WifiPhyOperatingChannel::FindFirst(0,
733 if (channel5It != WifiPhyOperatingChannel::m_frequencyChannels.cend())
735 channel5It = WifiPhyOperatingChannel::FindFirst(0,
742 if (channel6It != WifiPhyOperatingChannel::m_frequencyChannels.cend())
744 channel6It = WifiPhyOperatingChannel::FindFirst(0,
755 if (channel2_4It != WifiPhyOperatingChannel::m_frequencyChannels.cend())
759 if (channel5It != WifiPhyOperatingChannel::m_frequencyChannels.cend())
763 if (channel6It != WifiPhyOperatingChannel::m_frequencyChannels.cend())
803 uint32_t maxAmpduSize,
804 uint8_t maxSupportedMcs)
const;
848 void DoRun()
override;
856 m_is2_4Ghz{is2_4Ghz},
857 m_channelWidth{channelWidth}
865 uint8_t channelWidthSet = 0;
868 channelWidthSet |= 0x01;
872 channelWidthSet |= 0x02;
876 channelWidthSet |= 0x04;
884 uint32_t maxAmpduSize,
885 uint8_t maxSupportedMcs)
const
894 maxAmpduSize = (1UL <<
static_cast<uint32_t
>(std::ceil(std::log2(maxAmpduSize + 1)))) - 1;
899 (maxSupportedMcs >= 12) ? 1 : 0;
901 (maxSupportedMcs >= 12) ? 1 : 0;
904 for (
auto maxMcs : {7, 9, 11, 13})
908 maxMcs <= maxSupportedMcs ? 1 : 0);
911 maxMcs <= maxSupportedMcs ? 2 : 0);
916 for (
auto maxMcs : {9, 11, 13})
919 EhtMcsAndNssSet::EHT_MCS_MAP_TYPE_NOT_LARGER_THAN_80_MHZ,
921 maxMcs <= maxSupportedMcs ? 3 : 0);
923 EhtMcsAndNssSet::EHT_MCS_MAP_TYPE_NOT_LARGER_THAN_80_MHZ,
925 maxMcs <= maxSupportedMcs ? 4 : 0);
930 for (
auto maxMcs : {9, 11, 13})
934 maxMcs <= maxSupportedMcs ? 2 : 0);
937 maxMcs <= maxSupportedMcs ? 1 : 0);
943 for (
auto maxMcs : {9, 11, 13})
947 maxMcs <= maxSupportedMcs ? 4 : 0);
950 maxMcs <= maxSupportedMcs ? 3 : 0);
977 uint8_t
byte = it.
ReadU8();
983 uint8_t expectedValueFirstByte)
991 uint8_t expectedValueSixthByte)
1006 uint8_t maxSupportedMcs)
1014 maxSupportedMcs >= 8 ? 0x21 : 0x00);
1018 maxSupportedMcs >= 10 ? 0x21 : 0x00);
1022 maxSupportedMcs >= 12 ? 0x21 : 0x00);
1030 maxSupportedMcs >= 10 ? 0x43 : 0x00);
1034 maxSupportedMcs >= 12 ? 0x43 : 0x00);
1042 maxSupportedMcs >= 10 ? 0x12 : 0x00);
1046 maxSupportedMcs >= 12 ? 0x12 : 0x00);
1054 maxSupportedMcs >= 10 ? 0x34 : 0x00);
1058 maxSupportedMcs >= 12 ? 0x34 : 0x00);
1066 uint16_t expectedEhtMcsAndNssSetSize = 0;
1070 expectedEhtMcsAndNssSetSize = 4;
1074 expectedEhtMcsAndNssSetSize = 3;
1077 expectedEhtMcsAndNssSetSize = (2 * 3);
1080 expectedEhtMcsAndNssSetSize = (3 * 3);
1086 uint16_t expectedSize = 1 +
1091 expectedEhtMcsAndNssSetSize;
1093 auto mapType =
m_channelWidth == 20 ? EhtMcsAndNssSet::EHT_MCS_MAP_TYPE_20_MHZ_ONLY
1094 : EhtMcsAndNssSet::EHT_MCS_MAP_TYPE_NOT_LARGER_THAN_80_MHZ;
1106 "Unexpected header size");
1129 "Unexpected header size");
1152 "Unexpected header size");
1173 std::vector<std::pair<uint8_t, uint8_t>> ppeThresholds;
1174 ppeThresholds.emplace_back(1, 2);
1175 ppeThresholds.emplace_back(2, 3);
1176 ppeThresholds.emplace_back(3, 4);
1177 ppeThresholds.emplace_back(4, 3);
1178 ppeThresholds.emplace_back(3, 2);
1179 ppeThresholds.emplace_back(2, 1);
1186 "Unexpected header size");
1218 std::optional<Time> mappingSwitchTime,
1219 std::optional<Time> expectedDuration,
1226 void DoRun()
override;
1236 std::optional<Time> mappingSwitchTime,
1237 std::optional<Time> expectedDuration,
1240 "Check serialization and deserialization of TID-To-Link Mapping elements"),
1241 m_direction(direction),
1242 m_mappingSwitchTime(mappingSwitchTime),
1243 m_expectedDuration(expectedDuration),
1244 m_mappings(mappings)
1261 "Incorrect Mapping Switch Time value");
1271 for (
const auto& [tid, linkSet] :
m_mappings)
1277 "Incorrect link set for TID " << +tid);
1286 Simulator::Destroy();
1313 uint8_t rxMaxNss0_7,
1314 uint8_t txMaxNss0_7,
1315 uint8_t rxMaxNss8_9,
1316 uint8_t txMaxNss8_9,
1317 uint8_t rxMaxNss10_11,
1318 uint8_t txMaxNss10_11,
1319 uint8_t rxMaxNss12_13,
1320 uint8_t txMaxNss12_13,
1321 std::optional<EhtOperation::EhtOpInfo> opInfo);
1326 void DoRun()
override;
1332 uint8_t rxMaxNss0_7,
1333 uint8_t txMaxNss0_7,
1334 uint8_t rxMaxNss8_9,
1335 uint8_t txMaxNss8_9,
1336 uint8_t rxMaxNss10_11,
1337 uint8_t txMaxNss10_11,
1338 uint8_t rxMaxNss12_13,
1339 uint8_t txMaxNss12_13,
1340 std::optional<EhtOperation::EhtOpInfo> opInfo)
1342 "Check serialization and deserialization of EHT Operation elements")
1375 :
TestSuite(
"wifi-eht-info-elems", UNIT)
1392 {{3, std::set<uint8_t>{0, 4, 6}}}),
1395 WifiDirection::BOTH_DIRECTIONS,
1398 {{3, std::set<uint8_t>{0, 4, 6}}, {6, std::set<uint8_t>{3, 7, 11, 14}}}),
1403 {{0, std::set<uint8_t>{0, 1, 2}},
1404 {1, std::set<uint8_t>{3, 4, 5}},
1405 {2, std::set<uint8_t>{6, 7}},
1406 {3, std::set<uint8_t>{8, 9, 10}},
1407 {4, std::set<uint8_t>{11, 12, 13}},
1408 {5, std::set<uint8_t>{14}},
1409 {6, std::set<uint8_t>{1, 3, 6}},
1410 {7, std::set<uint8_t>{11, 14}}}),
1412 AddTestCase(
new EhtOperationElementTest({0, 0, 0, 0, 0}, 1, 2, 3, 4, 5, 6, 7, 8, std::nullopt),
Test Multi-Link Element (Basic variant) serialization and deserialization.
MgtAssocRequestHeader m_outerAssoc
the frame containing the MLE
~BasicMultiLinkElementTest() override
BasicMultiLinkElementTest()
Constructor.
void DoRun() override
Implementation to actually run this TestCase.
MultiLinkElement GetMultiLinkElement(const CommonInfoBasicMle &commonInfo, std::vector< MultiLinkElement::PerStaProfileSubelement > subelements)
Get a Multi-Link Element including the given Common Info field and the given Per-STA Profile Subeleme...
Test EHT Operation information element serialization and deserialization.
void DoRun() override
Implementation to actually run this TestCase.
EhtOperationElementTest(const EhtOperation::EhtOpParams ¶ms, uint8_t rxMaxNss0_7, uint8_t txMaxNss0_7, uint8_t rxMaxNss8_9, uint8_t txMaxNss8_9, uint8_t rxMaxNss10_11, uint8_t txMaxNss10_11, uint8_t rxMaxNss12_13, uint8_t txMaxNss12_13, std::optional< EhtOperation::EhtOpInfo > opInfo)
Constructor.
EhtOperation m_ehtOperation
EHT Operation element.
~EhtOperationElementTest() override=default
Test Reduced Neighbor Report serialization and deserialization.
ReducedNeighborReport GetReducedNeighborReport(PhyOpChannelIt channel2_4It, PhyOpChannelIt channel5It, PhyOpChannelIt channel6It)
Get a Reduced Neighbor Report element including the given operating channels.
ReducedNeighborReportTest()
Constructor.
void DoRun() override
Implementation to actually run this TestCase.
~ReducedNeighborReportTest() override
WifiPhyOperatingChannel::ConstIterator PhyOpChannelIt
typedef for const iterator on the set of available channels
Test TID-To-Link Mapping information element serialization and deserialization.
std::optional< Time > m_expectedDuration
the Expected Duration
void DoSetup() override
Implementation to do any local setup required for this TestCase.
TidToLinkMapping m_tidToLinkMapping
TID-To-Link Mapping element.
WifiDirection m_direction
the direction for the TID-to-link mapping
std::optional< Time > m_mappingSwitchTime
the Mapping Switching Time
TidToLinkMappingElementTest(WifiDirection direction, std::optional< Time > mappingSwitchTime, std::optional< Time > expectedDuration, const WifiTidLinkMapping &mappings)
Constructor.
WifiTidLinkMapping m_mappings
maps TIDs to link sets
~TidToLinkMappingElementTest() override=default
void DoRun() override
Implementation to actually run this TestCase.
Test serialization and deserialization of EHT capabilities IE.
void CheckSerializedByte(const Buffer &buffer, uint32_t position, uint8_t value)
Check that the given buffer contains the given value at the given position.
void DoRun() override
Implementation to actually run this TestCase.
HeCapabilities GetHeCapabilities() const
Generate the HE capabilities IE.
bool m_is2_4Ghz
whether the PHY is operating in 2.4 GHz
void CheckSupportedEhtMcsAndNssSet(const Buffer &buffer, uint8_t maxSupportedMcs)
Check the content of the Supported EHT-MCS And NSS Set subfield.
~WifiEhtCapabilitiesIeTest() override=default
Buffer SerializeIntoBuffer(const EhtCapabilities &ehtCapabilities)
Serialize the EHT capabilities in a buffer.
WifiEhtCapabilitiesIeTest(bool is2_4Ghz, uint16_t channelWidth)
Constructor.
uint16_t m_channelWidth
Supported channel width by the PHY (in MHz)
EhtCapabilities GetEhtCapabilities(uint16_t maxMpduLength, uint32_t maxAmpduSize, uint8_t maxSupportedMcs) const
Generate the EHT capabilities IE.
void CheckEhtMacCapabilitiesInformation(const Buffer &buffer, uint8_t expectedValueFirstByte)
Check the content of the EHT MAC Capabilities Information subfield.
void CheckEhtPhyCapabilitiesInformation(const Buffer &buffer, uint8_t expectedValueSixthByte)
Check the content of the EHT PHY Capabilities Information subfield.
wifi EHT Information Elements Test Suite
WifiEhtInfoElemsTestSuite()
iterator in a Buffer instance
void Next()
go forward by one byte
automatically resized byte buffer
void AddAtStart(uint32_t start)
Buffer::Iterator Begin() const
The IEEE 802.11be EHT Capabilities.
void SetMaxMpduLength(uint16_t length)
Set the maximum MPDU length.
void SetSupportedTxEhtMcsAndNss(EhtMcsAndNssSet::EhtMcsMapType mapType, uint8_t upperMcs, uint8_t maxNss)
Set a subfield of the Supported EHT-MCS And NSS Set.
void SetPpeThresholds(uint8_t nssPe, uint8_t ruIndexBitmask, const std::vector< std::pair< uint8_t, uint8_t >> &ppeThresholds)
Set the EHT PPE threshold info subfield.
EhtPhyCapabilities m_phyCapabilities
EHT PHY Capabilities Info subfield.
uint8_t GetHighestSupportedTxMcs(EhtMcsAndNssSet::EhtMcsMapType mapType)
Get the highest supported TX MCS for a given EHT-MCS map type.
void SetMaxAmpduLength(uint32_t maxAmpduLength)
Set the maximum A-MPDU length.
void SetSupportedRxEhtMcsAndNss(EhtMcsAndNssSet::EhtMcsMapType mapType, uint8_t upperMcs, uint8_t maxNss)
Set a subfield of the Supported EHT-MCS And NSS Set.
uint8_t GetHighestSupportedRxMcs(EhtMcsAndNssSet::EhtMcsMapType mapType)
Get the highest supported RX MCS for a given EHT-MCS map type.
EHT Operation Information Element.
void SetMaxTxNss(uint8_t maxNss, uint8_t mcsStart, uint8_t mcsEnd)
Set the max Tx NSS for input MCS index range.
void SetMaxRxNss(uint8_t maxNss, uint8_t mcsStart, uint8_t mcsEnd)
Set the max Rx NSS for input MCS index range.
EhtOpParams m_params
EHT Operation Parameters.
std::optional< EhtOpInfo > m_opInfo
EHT Operation Information.
The Extended Capabilities Information Element.
The Extended Supported Rates Information Element.
The IEEE 802.11ax HE Capabilities.
void SetChannelWidthSet(uint8_t channelWidthSet)
Set channel width set.
The HT Capabilities Information Element.
Per-STA Profile Subelement of Multi-Link element.
void SetStaMacAddress(Mac48Address address)
Set the STA MAC Address subfield in the STA Info field.
void SetCompleteProfile()
Set the Complete Profile flag in the STA Control field.
void SetAssocRequest(const std::variant< MgtAssocRequestHeader, MgtReassocRequestHeader > &assoc)
Include the given (Re)Association Request frame body in the STA Profile field of this Per-STA Profile...
void SetLinkId(uint8_t linkId)
Set the Link ID subfield in the STA Control field.
void AddPerStaProfileSubelement()
Add a Per-STA Profile Subelement in the Link Info field.
void SetBssParamsChangeCount(uint8_t count)
Set the BSS Parameters Change Count subfield in the Common Info field.
void SetLinkIdInfo(uint8_t linkIdInfo)
Set the Link ID Info subfield in the Common Info field.
CommonInfoBasicMle & GetCommonInfoBasic()
void SetEmlsrTransitionDelay(Time delay)
Set the EMLSR Transition Delay subfield of the EML Capabilities subfield in the Common Info field.
PerStaProfileSubelement & GetPerStaProfile(std::size_t i)
Get a reference to the i-th Per-STA Profile Subelement in the Link Info field.
void SetEmlsrPaddingDelay(Time delay)
Set the EMLSR Padding Delay subfield of the EML Capabilities subfield in the Common Info field.
void SetMldMacAddress(Mac48Address address)
Set the MLD MAC Address subfield in the Common Info field.
void SetTransitionTimeout(Time timeout)
Set the Transition Timeout subfield of the EML Capabilities subfield in the Common Info field.
The IEEE 802.11 Non-Inheritance Information Element.
std::set< uint8_t > m_elemIdList
list of unique Element ID values (in increasing order)
bool IsPresent(uint8_t elemId, uint8_t elemIdExt=0) const
std::set< uint8_t > m_elemIdExtList
list of unique Element ID Extension values
The Reduced Neighbor Report element.
std::size_t GetNNbrApInfoFields() const
Get the number of Neighbor AP Information fields.
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 Informati...
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 fiel...
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.
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 fiel...
void AddNbrApInfoField()
Add a Neighbor AP Information field.
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 ...
void AddTbttInformationField(std::size_t nbrApInfoId)
Add a TBTT Information fields to the TBTT Information Set field of the given Neighbor AP Information ...
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 base...
The IEEE 802.11 SSID Information Element.
The Supported Rates Information Element.
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite.
TID-to-Link Mapping Information Element.
std::optional< Time > GetMappingSwitchTime() const
void SetLinkMappingOfTid(uint8_t tid, std::set< uint8_t > linkIds)
Set the Link Mapping field of the given TID such that the given TID is mapped to the links associated...
std::optional< Time > GetExpectedDuration() const
void SetExpectedDuration(Time expectedDuration)
Set the Expected Duration field.
void SetMappingSwitchTime(Time mappingSwitchTime)
Set the Mapping Switch Time field.
std::set< uint8_t > GetLinkMappingOfTid(uint8_t tid) const
Get the Link Mapping field of the given TID.
TidToLinkMapping::Control m_control
TID-to-link Mapping Control.
The IEEE 802.11ac VHT Capabilities.
Class that keeps track of all information about the current PHY operating channel.
std::set< FrequencyChannelInfo >::const_iterator ConstIterator
Typedef for a const iterator pointing to a channel in the set of available channels.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
#define NS_TEST_ASSERT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report and abort if not.
#define NS_TEST_EXPECT_MSG_GT(actual, limit, msg)
Test that an actual value is greater than a limit and report if not.
#define NS_TEST_EXPECT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report if not.
Time MicroSeconds(uint64_t value)
Construct a Time in the indicated unit.
@ WIFI_PHY_BAND_6GHZ
The 6 GHz band.
@ WIFI_PHY_BAND_2_4GHZ
The 2.4 GHz band.
@ WIFI_PHY_BAND_5GHZ
The 5 GHz band.
auto get(const nlohmann::detail::iteration_proxy_value< IteratorType > &i) -> decltype(i.key())
Every class exported by the ns3 library is enclosed in the ns3 namespace.
WifiDirection
Wifi direction.
std::map< uint8_t, std::set< uint8_t > > WifiTidLinkMapping
TID-indexed map of the link set to which the TID is mapped.
void ReadFrom(Buffer::Iterator &i, Ipv4Address &ad)
Read an Ipv4Address from a Buffer.
params
Fit Fluctuating Two Ray model to the 3GPP TR 38.901 using the Anderson-Darling goodness-of-fit ##.
Struct containing all supported rates.
SupportedRates rates
supported rates
std::optional< ExtendedSupportedRatesIE > extendedRates
supported extended rates
void AddSupportedRate(uint64_t bs)
Add the given rate to the supported rates.
EML Capabilities subfield.
uint8_t emlsrSupport
EMLSR Support.
Medium Synchronization Delay Information subfield.
uint8_t mediumSyncDuration
Medium Synchronization Duration.
Common Info field of the Basic Multi-Link element.
std::optional< EmlCapabilities > m_emlCapabilities
EML Capabilities.
uint8_t Deserialize(Buffer::Iterator start, uint16_t presence)
Deserialize the Common Info field.
void SetMediumSyncOfdmEdThreshold(int8_t threshold)
Set the Medium Synchronization OFDM ED Threshold subfield of the Medium Synchronization Delay Informa...
std::optional< MediumSyncDelayInfo > m_mediumSyncDelayInfo
Medium Synchronization Delay Information.
void SetMediumSyncDelayTimer(Time delay)
Set the Medium Synchronization Duration subfield of the Medium Synchronization Delay Information in t...
Mac48Address m_mldMacAddress
Subfields.
std::optional< uint8_t > m_bssParamsChangeCount
BSS Parameters Change Count.
void SetMediumSyncMaxNTxops(uint8_t nTxops)
Set the Medium Synchronization Maximum Number of TXOPs subfield of the Medium Synchronization Delay I...
std::optional< uint8_t > m_linkIdInfo
Link ID Info.
EHT Operation Information subfield IEEE 802.11be D2.0 Figure 9-1002c.
EHT Operation Parameters subfield IEEE 802.11be D2.0 Figure 9-1002b.
uint8_t support320MhzIn6Ghz
Support For 320 MHz In 6 GHz.
uint8_t supportTx1024And4096QamForRuSmallerThan242Tones
Tx 1024-QAM And 4096-QAM < 242-tone RU Support.
uint8_t supportRx1024And4096QamForRuSmallerThan242Tones
Rx 1024-QAM And 4096-QAM < 242-tone RU Support.
bool defaultMapping
Default link mapping.
WifiDirection direction
Direction.
static WifiEhtInfoElemsTestSuite g_wifiEhtInfoElemsTestSuite
the test suite