From b827e604aea6c19eb962c1b375e5bc2573125102 Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Sat, 2 Jan 2021 15:13:38 -0800 Subject: [PATCH] wifi: Silence some valgrind warnings --- src/wifi/model/wifi-ppdu.cc | 3 ++- src/wifi/test/tx-duration-test.cc | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wifi/model/wifi-ppdu.cc b/src/wifi/model/wifi-ppdu.cc index 734238fdd..f3681213b 100644 --- a/src/wifi/model/wifi-ppdu.cc +++ b/src/wifi/model/wifi-ppdu.cc @@ -48,7 +48,8 @@ WifiPpdu::WifiPpdu (const WifiConstPsduMap & psdus, WifiTxVector txVector, Time m_psdus (psdus), m_truncatedTx (false), m_band (band), - m_channelWidth (txVector.GetChannelWidth ()) + m_channelWidth (txVector.GetChannelWidth ()), + m_txPowerLevel (txVector.GetTxPowerLevel ()) { NS_LOG_FUNCTION (this << psdus << txVector << ppduDuration << band); if (m_preamble == WIFI_PREAMBLE_HE_MU) diff --git a/src/wifi/test/tx-duration-test.cc b/src/wifi/test/tx-duration-test.cc index dc1139471..505862dc0 100644 --- a/src/wifi/test/tx-duration-test.cc +++ b/src/wifi/test/tx-duration-test.cc @@ -20,6 +20,7 @@ */ #include "ns3/log.h" +#include "ns3/simulator.h" #include "ns3/test.h" #include "ns3/yans-wifi-phy.h" #include "ns3/he-ru.h" @@ -566,6 +567,8 @@ TxDurationTest::DoRun (void) 40, 800, NanoSeconds (1489600)); NS_TEST_EXPECT_MSG_EQ (retval, true, "an 802.11ax MU duration failed"); + + Simulator::Destroy (); } /**