From cf8ef91a295fda5f4c63f67ee440b3767ebceba6 Mon Sep 17 00:00:00 2001 From: Stefano Avallone Date: Wed, 20 Oct 2021 12:08:08 +0200 Subject: [PATCH] wifi: Do not check lifetime expiration when dequeuing frames Frames are dequeued when they have been acknowledged, dropped or are going to be replaced by other frames. In all such cases, it is not needed to check for lifetime expiration. This check instead causes troubles when the lifetime of a frame expires while receiving the acknowledgment (a BAR may be scheduled unnecessarily). --- src/wifi/model/wifi-mac-queue.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/wifi/model/wifi-mac-queue.cc b/src/wifi/model/wifi-mac-queue.cc index 2ca1369ad..33dbbfcc9 100644 --- a/src/wifi/model/wifi-mac-queue.cc +++ b/src/wifi/model/wifi-mac-queue.cc @@ -550,12 +550,6 @@ WifiMacQueue::DoDequeue (ConstIterator pos) { NS_LOG_FUNCTION (this); - if (TtlExceeded (pos, Simulator::Now ())) - { - NS_LOG_DEBUG ("Packet lifetime expired"); - return nullptr; - } - Ptr item = Queue::DoDequeue (pos); if (item != 0 && item->GetHeader ().IsQosData ())