From 1e522e9f3520394a4a93b2a669cc395caecb7a79 Mon Sep 17 00:00:00 2001 From: Marco Miozzo Date: Tue, 9 Apr 2013 11:11:36 +0200 Subject: [PATCH] Bug-fix valgrind error in lte-downlink-sinr test, introduce missing initialization of LteSpectrumSignalParametersDlCtrlFrame::pss attribute --- src/lte/test/lte-test-downlink-sinr.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lte/test/lte-test-downlink-sinr.cc b/src/lte/test/lte-test-downlink-sinr.cc index 82139b8ad..f88076e58 100644 --- a/src/lte/test/lte-test-downlink-sinr.cc +++ b/src/lte/test/lte-test-downlink-sinr.cc @@ -390,6 +390,7 @@ LteDownlinkCtrlSinrTestCase::DoRun (void) sp1->duration = ds; sp1->ctrlMsgList = ctrlMsgList[0]; sp1->cellId = pbCellId[0]; + sp1->pss = false; Simulator::Schedule (ts, &LteSpectrumPhy::StartRx, dlPhy, sp1); @@ -399,6 +400,7 @@ LteDownlinkCtrlSinrTestCase::DoRun (void) ip1->duration = di1; ip1->ctrlMsgList = ctrlMsgList[1]; ip1->cellId = pbCellId[1]; + ip1->pss = false; Simulator::Schedule (ti1, &LteSpectrumPhy::StartRx, dlPhy, ip1); Ptr ip2 = Create (); @@ -407,6 +409,7 @@ LteDownlinkCtrlSinrTestCase::DoRun (void) ip2->duration = di2; ip2->ctrlMsgList = ctrlMsgList[2]; ip2->cellId = pbCellId[2]; + ip2->pss = false; Simulator::Schedule (ti2, &LteSpectrumPhy::StartRx, dlPhy, ip2); Ptr ip3 = Create (); @@ -415,6 +418,7 @@ LteDownlinkCtrlSinrTestCase::DoRun (void) ip3->duration = di3; ip3->ctrlMsgList = ctrlMsgList[3]; ip3->cellId = pbCellId[3]; + ip3->pss = false; Simulator::Schedule (ti3, &LteSpectrumPhy::StartRx, dlPhy, ip3); Ptr ip4 = Create (); @@ -423,6 +427,7 @@ LteDownlinkCtrlSinrTestCase::DoRun (void) ip4->duration = di4; ip4->ctrlMsgList = ctrlMsgList[4]; ip4->cellId = pbCellId[4]; + ip4->pss = false; Simulator::Schedule (ti4, &LteSpectrumPhy::StartRx, dlPhy, ip4); Simulator::Stop (Seconds (5.0));