diff --git a/src/wifi/model/mgt-headers.h b/src/wifi/model/mgt-headers.h index 6a222ba4b..e22a5997b 100644 --- a/src/wifi/model/mgt-headers.h +++ b/src/wifi/model/mgt-headers.h @@ -121,7 +121,7 @@ using ProbeResponseElems = std::tuple, std::optional, std::optional, - std::optional>; + std::vector>; /// List of Information Elements included in Association Request frames using AssocRequestElems = std::tuple, std::optional, std::optional, - std::optional>; + std::vector>; /// List of Information Elements included in Association Response frames using AssocResponseElems = std::tuple, std::optional, std::optional, - std::optional>; + std::vector>; /** * \ingroup wifi diff --git a/src/wifi/test/wifi-eht-info-elems-test.cc b/src/wifi/test/wifi-eht-info-elems-test.cc index 5c8f60c98..49e7a0567 100644 --- a/src/wifi/test/wifi-eht-info-elems-test.cc +++ b/src/wifi/test/wifi-eht-info-elems-test.cc @@ -218,7 +218,7 @@ BasicMultiLinkElementTest::DoRun() assoc.Get() = Ssid("OtherSsid"); // another "mistake" of the same type, except that a TID-To-Link Mapping element // is not included in the containing frame - assoc.Get().emplace(); + assoc.Get().emplace_back(); // the SupportedRates IE is the same (hence not serialized) as in the containing frame, // while the ExtendedSupportedRatesIE is different (hence serialized) rates.AddSupportedRate(5.5e6); @@ -406,8 +406,8 @@ BasicMultiLinkElementTest::DoRun() NS_TEST_EXPECT_MSG_EQ(frame.Get().has_value(), true, "Containing frame should have EHT Capabilities IE"); - NS_TEST_EXPECT_MSG_EQ(frame.Get().has_value(), - false, + NS_TEST_EXPECT_MSG_EQ(frame.Get().empty(), + true, "Containing frame should not have TID-to-Link Mapping IE"); auto& mle = frame.Get().value(); @@ -469,8 +469,8 @@ BasicMultiLinkElementTest::DoRun() (perSta1Frame.Get() == frame.Get()), true, "EHT Capabilities IE not correctly inherited by frame in first Per-STA Profile"); - NS_TEST_EXPECT_MSG_EQ(perSta1Frame.Get().has_value(), - false, + NS_TEST_EXPECT_MSG_EQ(perSta1Frame.Get().empty(), + true, "Frame in first Per-STA Profile should not have TID-to-Link Mapping IE"); // frame in second Per-STA Profile subelement includes VHT Capabilities IE and has inherited @@ -526,8 +526,8 @@ BasicMultiLinkElementTest::DoRun() perSta2Frame.Get().has_value(), false, "Frame in second Per-STA Profile should have not inherited EHT Capabilities IE"); - NS_TEST_EXPECT_MSG_EQ(perSta2Frame.Get().has_value(), - false, + NS_TEST_EXPECT_MSG_EQ(perSta2Frame.Get().empty(), + true, "Frame in second Per-STA Profile should not have TID-to-Link Mapping IE"); // frame in third Per-STA Profile subelement includes VHT Capabilities IE and has inherited @@ -586,8 +586,8 @@ BasicMultiLinkElementTest::DoRun() (perSta3Frame.Get() == frame.Get()), true, "EHT Capabilities IE not correctly inherited by frame in third Per-STA Profile"); - NS_TEST_EXPECT_MSG_EQ(perSta3Frame.Get().has_value(), - false, + NS_TEST_EXPECT_MSG_EQ(perSta3Frame.Get().empty(), + true, "Frame in third Per-STA Profile should not have TID-to-Link Mapping IE"); }