wifi: Enforce the correct limit on max A-MPDU size for HE PPDUs

This commit is contained in:
Stefano Avallone
2021-06-16 16:32:14 +02:00
parent 5767159db8
commit 9cf45f9d43
3 changed files with 5 additions and 1 deletions

View File

@@ -172,6 +172,7 @@ Mike Moreton (mjvm_ns@hotmail.com)
Michele Muccio (michelemuccio@virgilio.it)
Esteban Municio (esteban.municio@urjc.es)
Sidharth Nabar (snabar@uw.edu)
Sharan Naribole (sharan.naribole@gmail.com)
Hemanth Narra (hemanth@ittc.ku.edu)
Roman Naumann (naumann@informatik.hu-berlin.de)
Ben Newton (bn@cs.unc.edu)

View File

@@ -47,6 +47,8 @@ New user-visible features
Bugs fixed
----------
- (antenna) Fix random angle generation for the 3gpp channel model.
- (wifi) #418 - Fix HE A-MPDU Max Size Upper Bound
Release 3.33
============

View File

@@ -19,6 +19,7 @@
*/
#include "he-capabilities.h"
#include <algorithm>
namespace ns3 {
@@ -499,7 +500,7 @@ HeCapabilities::GetHighestNssSupported (void) const
uint32_t
HeCapabilities::GetMaxAmpduLength (void) const
{
return (1ul << (20 + m_maxAmpduLengthExponent)) - 1;
return std::min<uint32_t> ((1ul << (20 + m_maxAmpduLengthExponent)) - 1, 6500631);
}
std::ostream &