From 72e8f65b8a304c183b668f5dd27be52ec502569c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deronne?= Date: Sun, 17 May 2015 12:50:59 +0200 Subject: [PATCH] remove tracing information about aggregate queue flushing when aggregate queue is empty --- src/wifi/model/mac-low.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/wifi/model/mac-low.cc b/src/wifi/model/mac-low.cc index 79e8c4ea0..2df755edc 100644 --- a/src/wifi/model/mac-low.cc +++ b/src/wifi/model/mac-low.cc @@ -2847,8 +2847,11 @@ MacLow::AggregateToAmpdu (Ptr packet, const WifiMacHeader hdr) void MacLow::FlushAggregateQueue (void) { - NS_LOG_DEBUG("Flush aggregate queue"); - m_aggregateQueue->Flush (); + if (m_aggregateQueue->GetSize () > 0) + { + NS_LOG_DEBUG("Flush aggregate queue"); + m_aggregateQueue->Flush (); + } m_txPackets.clear (); }