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

@@ -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 &