examples, wifi: Change PCAP capture type in some examples/tests

This commit is contained in:
Sébastien Deronne
2024-08-18 09:22:00 +02:00
parent 10a5315011
commit 5f9f88cda3
2 changed files with 4 additions and 0 deletions

View File

@@ -166,6 +166,7 @@ EmlsrOperationsTestBase::DoSetup()
// MLDs are configured with three links
SpectrumWifiPhyHelper phyHelper(3);
phyHelper.SetPcapDataLinkType(WifiPhyHelper::DLT_IEEE802_11_RADIO);
phyHelper.SetPcapCaptureType(WifiPhyHelper::PcapCaptureType::PCAP_PER_LINK);
phyHelper.Set(0, "ChannelSettings", StringValue("{2, 0, BAND_2_4GHZ, 0}"));
phyHelper.Set(1, "ChannelSettings", StringValue("{36, 0, BAND_5GHZ, 0}"));
phyHelper.Set(2, "ChannelSettings", StringValue("{1, 0, BAND_6GHZ, 0}"));

View File

@@ -287,6 +287,7 @@ AidAssignmentTest::DoSetup()
// AP MLD
SpectrumWifiPhyHelper phyHelper(3);
phyHelper.SetPcapDataLinkType(WifiPhyHelper::DLT_IEEE802_11_RADIO);
phyHelper.SetPcapCaptureType(WifiPhyHelper::PcapCaptureType::PCAP_PER_LINK);
uint8_t linkId = 0;
for (const auto& str : m_linkChannels)
{
@@ -308,6 +309,7 @@ AidAssignmentTest::DoSetup()
{
phyHelper = SpectrumWifiPhyHelper(links.size());
phyHelper.SetPcapDataLinkType(WifiPhyHelper::DLT_IEEE802_11_RADIO);
phyHelper.SetPcapCaptureType(WifiPhyHelper::PcapCaptureType::PCAP_PER_LINK);
linkId = 0;
for (const auto& id : links)
{
@@ -612,6 +614,7 @@ MultiLinkOperationsTestBase::SetChannels(SpectrumWifiPhyHelper& helper,
{
helper = SpectrumWifiPhyHelper(channels.size());
helper.SetPcapDataLinkType(WifiPhyHelper::DLT_IEEE802_11_RADIO);
helper.SetPcapCaptureType(WifiPhyHelper::PcapCaptureType::PCAP_PER_LINK);
uint8_t linkId = 0;
for (const auto& str : channels)