Skip to content

Commit 7f655fc

Browse files
committed
wifi: Cleanup unused calculation in non-HT duplicate tests
1 parent 037a8a0 commit 7f655fc

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/wifi/test/wifi-non-ht-dup-test.cc

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -339,16 +339,9 @@ TestNonHtDuplicatePhyReception::SendNonHtDuplicatePpdu(MHz_u channelWidth)
339339
channelWidth,
340340
false);
341341

342-
Ptr<Packet> pkt = Create<Packet>(1000);
342+
auto pkt = Create<Packet>(1000);
343343
WifiMacHeader hdr;
344-
345-
hdr.SetType(WIFI_MAC_QOSDATA);
346-
hdr.SetQosTid(0);
347-
348-
Ptr<WifiPsdu> psdu = Create<WifiPsdu>(pkt, hdr);
349-
Time txDuration =
350-
SpectrumWifiPhy::CalculateTxDuration(psdu->GetSize(), txVector, m_phyAp->GetPhyBand());
351-
344+
auto psdu = Create<WifiPsdu>(pkt, hdr);
352345
m_phyAp->Send(WifiConstPsduMap({std::make_pair(SU_STA_ID, psdu)}), txVector);
353346
}
354347

0 commit comments

Comments
 (0)