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/tid-to-link-mapping-element.h"
27#include "ns3/wifi-phy-operating-channel.h"
62 std::vector<MultiLinkElement::PerStaProfileSubelement> subelements);
65 void DoRun()
override;
72 "Check serialization and deserialization of Basic variant Multi-Link elements")
83 std::vector<MultiLinkElement::PerStaProfileSubelement> subelements)
113 for (std::size_t i = 0; i < subelements.size(); ++i)
144 .mediumSyncOfdmEdThreshold = 4,
145 .mediumSyncMaxNTxops = 5};
151 .emlsrPaddingDelay = 4,
152 .emlsrTransitionDelay = 5,
153 .transitionTimeout = 10};
189 for (
auto maxMcs : {7, 9, 11, 13})
207 perStaProfile1.SetLinkId(3);
208 perStaProfile1.SetCompleteProfile();
216 assoc.Get<
Ssid>() =
Ssid(
"OtherSsid");
244 assoc.Get<
Ssid>().reset();
247 auto perStaProfile3 = perStaProfile2;
248 perStaProfile3.SetAssocRequest(assoc);
263 auto i = buffer.
Begin();
277 "ExtendedSupportedRatesIE element not present");
287 "IE_EXT_MULTI_LINK_ELEMENT expected");
289 uint16_t mlControl = i.ReadLsbtohU16();
296 "PER_STA_PROFILE_SUBELEMENT_ID expected");
307 "PER_STA_PROFILE_SUBELEMENT_ID expected");
321 "ExtendedSupportedRatesIE element not present");
332 "Non-Inheritance does not indicate EhtCapabilities");
335 "Unexpected size for Elem ID list of Non-Inheritance element");
338 "Unexpected size for Elem ID list of Non-Inheritance element");
343 "PER_STA_PROFILE_SUBELEMENT_ID expected");
356 "ExtendedSupportedRatesIE element not present");
375 auto count = frame.Deserialize(buffer.
Begin());
382 "Containing frame should have SSID IE");
385 "Containing frame should have Supported Rates IE");
388 "Containing frame should have Extended Supported Rates IE");
391 "Containing frame should not have HT Capabilities IE");
394 "Containing frame should not have Extended Capabilities IE");
397 "Containing frame should not have VHT Capabilities IE");
400 "Containing frame should have HE Capabilities IE");
403 "Containing frame should have Multi-Link Element IE");
406 "Containing frame should have EHT Capabilities IE");
409 "Containing frame should not have TID-to-Link Mapping IE");
415 "Unexpected number of Per-STA Profile subelements");
419 auto& perSta1 = mle.GetPerStaProfile(0);
422 "First Per-STA Profile should contain an Association Request frame");
424 std::get<std::reference_wrapper<MgtAssocRequestHeader>>(perSta1.GetAssocRequest()).get();
428 "Frame in first Per-STA Profile should not have SSID IE");
431 "Frame in first Per-STA Profile should have Supported Rates IE");
435 "Supported Rates IE not correctly inherited by frame in first Per-STA Profile");
438 "Frame in first Per-STA Profile should have Extended Supported Rates IE");
442 "Extended Supported Rates IE not correctly inherited by frame in first Per-STA Profile");
445 "Frame in first Per-STA Profile should not have HT Capabilities IE");
449 "Frame in first Per-STA Profile should not have Extended Capabilities IE");
452 "Frame in first Per-STA Profile should not have VHT Capabilities IE");
455 "Frame in first Per-STA Profile should have HE Capabilities IE");
459 "HE Capabilities IE not correctly inherited by frame in first Per-STA Profile");
462 "Frame in first Per-STA Profile should not have Multi-Link Element IE");
465 "Frame in first Per-STA Profile should have EHT Capabilities IE");
469 "EHT Capabilities IE not correctly inherited by frame in first Per-STA Profile");
472 "Frame in first Per-STA Profile should not have TID-to-Link Mapping IE");
477 auto& perSta2 = mle.GetPerStaProfile(1);
480 "Second Per-STA Profile should contain an Association Request frame");
482 std::get<std::reference_wrapper<MgtAssocRequestHeader>>(perSta2.GetAssocRequest()).get();
486 "Frame in second Per-STA Profile should not have SSID IE");
489 "Frame in second Per-STA Profile should have Supported Rates IE");
493 "Supported Rates IE not correctly inherited by frame in second Per-STA Profile");
497 "Frame in second Per-STA Profile should have Extended Supported Rates IE");
501 "Extended Supported Rates IE should have not been inherited by frame in second Per-STA "
505 "Frame in second Per-STA Profile should not have HT Capabilities IE");
509 "Frame in second Per-STA Profile should not have Extended Capabilities IE");
512 "Frame in second Per-STA Profile should have VHT Capabilities IE");
515 "Frame in second Per-STA Profile should have HE Capabilities IE");
519 "HE Capabilities IE not correctly inherited by frame in second Per-STA Profile");
522 "Frame in second Per-STA Profile should not have Multi-Link Element IE");
526 "Frame in second Per-STA Profile should have not inherited EHT Capabilities IE");
529 "Frame in second Per-STA Profile should not have TID-to-Link Mapping IE");
534 auto& perSta3 = mle.GetPerStaProfile(2);
537 "Third Per-STA Profile should contain an Association Request frame");
539 std::get<std::reference_wrapper<MgtAssocRequestHeader>>(perSta3.GetAssocRequest()).get();
543 "Frame in third Per-STA Profile should not have SSID IE");
546 "Frame in third Per-STA Profile should have Supported Rates IE");
550 "Supported Rates IE not correctly inherited by frame in third Per-STA Profile");
553 "Frame in third Per-STA Profile should have Extended Supported Rates IE");
557 "Extended Supported Rates IE should have not been inherited by frame in third Per-STA "
561 "Frame in third Per-STA Profile should not have HT Capabilities IE");
565 "Frame in third Per-STA Profile should not have Extended Capabilities IE");
568 "Frame in third Per-STA Profile should have VHT Capabilities IE");
571 "Frame in third Per-STA Profile should have HE Capabilities IE");
575 "HE Capabilities IE not correctly inherited by frame in third Per-STA Profile");
578 "Frame in third Per-STA Profile should not have Multi-Link Element IE");
582 "Frame in third Per-STA Profile should have inherited EHT Capabilities IE");
586 "EHT Capabilities IE not correctly inherited by frame in third Per-STA Profile");
589 "Frame in third Per-STA Profile should not have TID-to-Link Mapping IE");
623 void DoRun()
override;
628 "Check serialization and deserialization of Reduced Neighbor Report elements")
643 std::stringstream info;
649 info <<
"{Ch=" << +channel.GetNumber() <<
", Bw=" << channel.GetWidth() <<
", 2.4 GHz} ";
666 info <<
"{Ch=" << +channel.GetNumber() <<
", Bw=" << channel.GetWidth() <<
", 5 GHz} ";
690 info <<
"{Ch=" << +channel.GetNumber() <<
", Bw=" << channel.GetWidth() <<
", 6 GHz} ";
800 uint8_t maxSupportedMcs)
const;
844 void DoRun()
override;
850WifiEhtCapabilitiesIeTest ::WifiEhtCapabilitiesIeTest(
bool is2_4Ghz, uint16_t channelWidth)
852 m_is2_4Ghz{is2_4Ghz},
853 m_channelWidth{channelWidth}
861 uint8_t channelWidthSet = 0;
864 channelWidthSet |= 0x01;
868 channelWidthSet |= 0x02;
872 channelWidthSet |= 0x04;
881 uint8_t maxSupportedMcs)
const
890 maxAmpduSize = (1UL <<
static_cast<uint32_t>(std::ceil(std::log2(maxAmpduSize + 1)))) - 1;
892 capabilities.
SetMaxAmpduLength(std::min(std::max(maxAmpduSize, 8388607U), 16777215U));
895 (maxSupportedMcs >= 12) ? 1 : 0;
897 (maxSupportedMcs >= 12) ? 1 : 0;
900 for (
auto maxMcs : {7, 9, 11, 13})
904 maxMcs <= maxSupportedMcs ? 1 : 0);
907 maxMcs <= maxSupportedMcs ? 2 : 0);
912 for (
auto maxMcs : {9, 11, 13})
917 maxMcs <= maxSupportedMcs ? 3 : 0);
921 maxMcs <= maxSupportedMcs ? 4 : 0);
926 for (
auto maxMcs : {9, 11, 13})
930 maxMcs <= maxSupportedMcs ? 2 : 0);
933 maxMcs <= maxSupportedMcs ? 1 : 0);
939 for (
auto maxMcs : {9, 11, 13})
943 maxMcs <= maxSupportedMcs ? 4 : 0);
946 maxMcs <= maxSupportedMcs ? 3 : 0);
973 uint8_t
byte = it.
ReadU8();
979 uint8_t expectedValueFirstByte)
987 uint8_t expectedValueSixthByte)
1002 uint8_t maxSupportedMcs)
1010 maxSupportedMcs >= 8 ? 0x21 : 0x00);
1014 maxSupportedMcs >= 10 ? 0x21 : 0x00);
1018 maxSupportedMcs >= 12 ? 0x21 : 0x00);
1026 maxSupportedMcs >= 10 ? 0x43 : 0x00);
1030 maxSupportedMcs >= 12 ? 0x43 : 0x00);
1038 maxSupportedMcs >= 10 ? 0x12 : 0x00);
1042 maxSupportedMcs >= 12 ? 0x12 : 0x00);
1050 maxSupportedMcs >= 10 ? 0x34 : 0x00);
1054 maxSupportedMcs >= 12 ? 0x34 : 0x00);
1062 uint16_t expectedEhtMcsAndNssSetSize = 0;
1066 expectedEhtMcsAndNssSetSize = 4;
1070 expectedEhtMcsAndNssSetSize = 3;
1073 expectedEhtMcsAndNssSetSize = (2 * 3);
1076 expectedEhtMcsAndNssSetSize = (3 * 3);
1082 uint16_t expectedSize = 1 +
1087 expectedEhtMcsAndNssSetSize;
1102 "Unexpected header size");
1125 "Unexpected header size");
1148 "Unexpected header size");
1169 std::vector<std::pair<uint8_t, uint8_t>> ppeThresholds;
1170 ppeThresholds.emplace_back(1, 2);
1171 ppeThresholds.emplace_back(2, 3);
1172 ppeThresholds.emplace_back(3, 4);
1173 ppeThresholds.emplace_back(4, 3);
1174 ppeThresholds.emplace_back(3, 2);
1175 ppeThresholds.emplace_back(2, 1);
1182 "Unexpected header size");
1212 template <
typename... Args>
1226 template <
typename... Args>
1227 void SetLinkMapping(uint8_t tid,
const std::list<uint8_t>& linkIds, Args&&... args);
1236 void DoRun()
override;
1241template <
typename... Args>
1244 "Check serialization and deserialization of TID-To-Link Mapping elements")
1251template <
typename... Args>
1254 const std::list<uint8_t>& linkIds,
1292 uint8_t rxMaxNss0_7,
1293 uint8_t txMaxNss0_7,
1294 uint8_t rxMaxNss8_9,
1295 uint8_t txMaxNss8_9,
1296 uint8_t rxMaxNss10_11,
1297 uint8_t txMaxNss10_11,
1298 uint8_t rxMaxNss12_13,
1299 uint8_t txMaxNss12_13,
1300 std::optional<EhtOperation::EhtOpInfo> opInfo);
1305 void DoRun()
override;
1311 uint8_t rxMaxNss0_7,
1312 uint8_t txMaxNss0_7,
1313 uint8_t rxMaxNss8_9,
1314 uint8_t txMaxNss8_9,
1315 uint8_t rxMaxNss10_11,
1316 uint8_t txMaxNss10_11,
1317 uint8_t rxMaxNss12_13,
1318 uint8_t txMaxNss12_13,
1319 std::optional<EhtOperation::EhtOpInfo> opInfo)
1321 "Check serialization and deserialization of EHT Operation elements")
1354 :
TestSuite(
"wifi-eht-info-elems", UNIT)
1371 std::list<uint8_t>{0, 4, 6},
1373 std::list<uint8_t>{3, 7, 11, 14}),
1377 std::list<uint8_t>{0, 1, 2},
1379 std::list<uint8_t>{3, 4, 5},
1381 std::list<uint8_t>{6, 7},
1383 std::list<uint8_t>{8, 9, 10},
1385 std::list<uint8_t>{11, 12, 13},
1387 std::list<uint8_t>{14},
1389 std::list<uint8_t>{1, 3, 6},
1391 std::list<uint8_t>{11, 14}),
1393 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.
TidToLinkMapping m_tidToLinkMapping
TID-To-Link Mapping element.
TidToLinkMappingElementTest(TidLinkMapDir direction, Args &&... args)
Constructor.
void SetLinkMapping()
Base case to stop the recursion performed by the templated version of this method.
~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.
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 SetPpeThresholds(uint8_t nssPe, uint8_t ruIndexBitmask, const std::vector< std::pair< uint8_t, uint8_t > > &ppeThresholds)
Set the EHT PPE threshold info subfield.
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.
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 SetMediumSyncMaxNTxops(uint8_t nTxops)
Set the Medium Synchronization Maximum Number of TXOPs subfield of the Medium Synchronization Delay i...
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.
void SetEmlsrTransitionDelay(Time delay)
Set the EMLSR Transition Delay subfield of the EML Capabilities subfield in the Common Info field.
void SetMediumSyncDelayTimer(Time delay)
Set the Medium Synchronization Duration subfield of the Medium Synchronization Delay information in t...
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 SetMediumSyncOfdmEdThreshold(int8_t threshold)
Set the Medium Synchronization OFDM ED Threshold subfield of the Medium Synchronization Delay informa...
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.
void SetLinkMappingOfTid(uint8_t tid, std::list< uint8_t > linkIds)
Set the Link Mapping field of the given TID such that the given TID is mapped to the links associated...
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.
static const std::set< FrequencyChannelInfo > m_frequencyChannels
Available frequency channels.
static ConstIterator FindFirst(uint8_t number, uint16_t frequency, uint16_t width, WifiStandard standard, WifiPhyBand band, ConstIterator start=m_frequencyChannels.begin())
Find the first channel matching the specified parameters.
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_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.
@ PER_STA_PROFILE_SUBELEMENT_ID
Every class exported by the ns3 library is enclosed in the ns3 namespace.
TidLinkMapDir
TID-to-Link Mapping Control Direction IEEE 802.11be D2.0 Figure 9-1002an.
void ReadFrom(Buffer::Iterator &i, Ipv4Address &ad)
Read an Ipv4Address from a Buffer.
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.
std::optional< MediumSyncDelayInfo > m_mediumSyncDelayInfo
Medium Synchronization Delay Information.
Mac48Address m_mldMacAddress
Subfields.
std::optional< uint8_t > m_bssParamsChangeCount
BSS Parameters Change Count.
std::optional< uint8_t > m_linkIdInfo
Link ID Info.
@ EHT_MCS_MAP_TYPE_320_MHZ
@ EHT_MCS_MAP_TYPE_20_MHZ_ONLY
@ EHT_MCS_MAP_TYPE_NOT_LARGER_THAN_80_MHZ
@ EHT_MCS_MAP_TYPE_160_MHZ
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.
TidLinkMapDir direction
Direction.
static WifiEhtInfoElemsTestSuite g_wifiEhtInfoElemsTestSuite
the test suite