Bug 2136 [wifi] - The usage of tid in wifi and wave module shall be if (tid > 7) rather than if (tid >= 7)
This commit is contained in:
@@ -190,7 +190,7 @@ OcbWifiMac::Enqueue (Ptr<const Packet> packet, Mac48Address to)
|
||||
// Any value greater than 7 is invalid and likely indicates that
|
||||
// the packet had no QoS tag, so we revert to zero, which'll
|
||||
// mean that AC_BE is used.
|
||||
if (tid >= 7)
|
||||
if (tid > 7)
|
||||
{
|
||||
tid = 0;
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ AdhocWifiMac::Enqueue (Ptr<const Packet> packet, Mac48Address to)
|
||||
// Any value greater than 7 is invalid and likely indicates that
|
||||
// the packet had no QoS tag, so we revert to zero, which'll
|
||||
// mean that AC_BE is used.
|
||||
if (tid >= 7)
|
||||
if (tid > 7)
|
||||
{
|
||||
tid = 0;
|
||||
}
|
||||
|
||||
@@ -207,7 +207,7 @@ ApWifiMac::ForwardDown (Ptr<const Packet> packet, Mac48Address from,
|
||||
// Any value greater than 7 is invalid and likely indicates that
|
||||
// the packet had no QoS tag, so we revert to zero, which'll
|
||||
// mean that AC_BE is used.
|
||||
if (tid >= 7)
|
||||
if (tid > 7)
|
||||
{
|
||||
tid = 0;
|
||||
}
|
||||
|
||||
@@ -377,7 +377,7 @@ StaWifiMac::Enqueue (Ptr<const Packet> packet, Mac48Address to)
|
||||
// Any value greater than 7 is invalid and likely indicates that
|
||||
// the packet had no QoS tag, so we revert to zero, which'll
|
||||
// mean that AC_BE is used.
|
||||
if (tid >= 7)
|
||||
if (tid > 7)
|
||||
{
|
||||
tid = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user