From 7f655fce75e7a39f76cce413cf9e0911a8d00b1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deronne?= Date: Thu, 19 Dec 2024 20:07:21 +0100 Subject: [PATCH] wifi: Cleanup unused calculation in non-HT duplicate tests --- src/wifi/test/wifi-non-ht-dup-test.cc | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/wifi/test/wifi-non-ht-dup-test.cc b/src/wifi/test/wifi-non-ht-dup-test.cc index 5ce1ecd37..9a2310000 100644 --- a/src/wifi/test/wifi-non-ht-dup-test.cc +++ b/src/wifi/test/wifi-non-ht-dup-test.cc @@ -339,16 +339,9 @@ TestNonHtDuplicatePhyReception::SendNonHtDuplicatePpdu(MHz_u channelWidth) channelWidth, false); - Ptr pkt = Create(1000); + auto pkt = Create(1000); WifiMacHeader hdr; - - hdr.SetType(WIFI_MAC_QOSDATA); - hdr.SetQosTid(0); - - Ptr psdu = Create(pkt, hdr); - Time txDuration = - SpectrumWifiPhy::CalculateTxDuration(psdu->GetSize(), txVector, m_phyAp->GetPhyBand()); - + auto psdu = Create(pkt, hdr); m_phyAp->Send(WifiConstPsduMap({std::make_pair(SU_STA_ID, psdu)}), txVector); }