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).
This commit is contained in:
Stefano Avallone
2021-10-20 12:08:08 +02:00
parent 3ad1dde7a1
commit cf8ef91a29

View File

@@ -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<WifiMacQueueItem> item = Queue<WifiMacQueueItem>::DoDequeue (pos);
if (item != 0 && item->GetHeader ().IsQosData ())