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:
@@ -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 ())
|
||||
|
||||
Reference in New Issue
Block a user