Bug 2136 [wifi] - The usage of tid in wifi and wave module shall be if (tid > 7) rather than if (tid >= 7)
--- a/src/wave/model/ocb-wifi-mac.cc Sat Jun 06 18:21:26 2015 +0200
+++ b/src/wave/model/ocb-wifi-mac.cc Sun Jun 07 16:42:28 2015 +0200
@@ -190,7 +190,7 @@
// 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;
}
--- a/src/wifi/model/adhoc-wifi-mac.cc Sat Jun 06 18:21:26 2015 +0200
+++ b/src/wifi/model/adhoc-wifi-mac.cc Sun Jun 07 16:42:28 2015 +0200
@@ -119,7 +119,7 @@
// 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;
}
--- a/src/wifi/model/ap-wifi-mac.cc Sat Jun 06 18:21:26 2015 +0200
+++ b/src/wifi/model/ap-wifi-mac.cc Sun Jun 07 16:42:28 2015 +0200
@@ -207,7 +207,7 @@
// 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;
}
--- a/src/wifi/model/sta-wifi-mac.cc Sat Jun 06 18:21:26 2015 +0200
+++ b/src/wifi/model/sta-wifi-mac.cc Sun Jun 07 16:42:28 2015 +0200
@@ -377,7 +377,7 @@
// 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;
}