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:
Junling Bu
2015-06-07 16:42:28 +02:00
parent 8bd7f62305
commit c16fb42027
4 changed files with 4 additions and 4 deletions

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}