From 1adf40e98fd4d7b76bcbdb1c2cd1ceffc103ae82 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Tue, 23 Feb 2016 00:28:42 +0100 Subject: [PATCH] wifi: (fixes #2303) Cleanup wifi mac queue before returning its size --- RELEASE_NOTES | 1 + src/wifi/model/wifi-mac-queue.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/RELEASE_NOTES b/RELEASE_NOTES index 4171d498d..62e907e05 100644 --- a/RELEASE_NOTES +++ b/RELEASE_NOTES @@ -106,6 +106,7 @@ Bugs fixed - Bug 2292 - Uninitialized variables since commit 7c60a9f8f271 - Bug 2293 - Red Queue Estimator spins when trying to compute queue average size under long idle times. - Bug 2302 - Fixing RTT calculation inside TCP Socket +- Bug 2303 - WifiMacQueue::GetSize should cleanup queue beforehand Known issues ------------ diff --git a/src/wifi/model/wifi-mac-queue.cc b/src/wifi/model/wifi-mac-queue.cc index 516ed9d5c..fed57a333 100644 --- a/src/wifi/model/wifi-mac-queue.cc +++ b/src/wifi/model/wifi-mac-queue.cc @@ -221,6 +221,7 @@ WifiMacQueue::IsEmpty (void) uint32_t WifiMacQueue::GetSize (void) { + Cleanup (); return m_size; }