From 5767159db8d3e0fd80e08e49218ce287c67249a7 Mon Sep 17 00:00:00 2001 From: Sharan Naribole Date: Wed, 16 Jun 2021 17:31:25 +0200 Subject: [PATCH] wifi: Set correct max A-MPDU size for HE PPDUs --- src/wifi/model/regular-wifi-mac.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/wifi/model/regular-wifi-mac.cc b/src/wifi/model/regular-wifi-mac.cc index 75b1368ca..f4521067e 100644 --- a/src/wifi/model/regular-wifi-mac.cc +++ b/src/wifi/model/regular-wifi-mac.cc @@ -920,32 +920,32 @@ RegularWifiMac::GetTypeId (void) MakeUintegerChecker (0, 11398)) .AddAttribute ("VO_MaxAmpduSize", "Maximum length in bytes of an A-MPDU for AC_VO access class " - "(capped to 65535 for HT PPDUs, 1048575 for VHT PPDUs, and 8388607 for HE PPDUs). " + "(capped to 65535 for HT PPDUs, 1048575 for VHT PPDUs, and 6500631 for HE PPDUs). " "Value 0 means A-MPDU aggregation is disabled for that AC.", UintegerValue (0), MakeUintegerAccessor (&RegularWifiMac::m_voMaxAmpduSize), - MakeUintegerChecker ()) + MakeUintegerChecker (0, 6500631)) .AddAttribute ("VI_MaxAmpduSize", "Maximum length in bytes of an A-MPDU for AC_VI access class " - "(capped to 65535 for HT PPDUs, 1048575 for VHT PPDUs, and 8388607 for HE PPDUs). " + "(capped to 65535 for HT PPDUs, 1048575 for VHT PPDUs, and 6500631 for HE PPDUs). " "Value 0 means A-MPDU aggregation is disabled for that AC.", UintegerValue (65535), MakeUintegerAccessor (&RegularWifiMac::m_viMaxAmpduSize), - MakeUintegerChecker ()) + MakeUintegerChecker (0, 6500631)) .AddAttribute ("BE_MaxAmpduSize", "Maximum length in bytes of an A-MPDU for AC_BE access class " - "(capped to 65535 for HT PPDUs, 1048575 for VHT PPDUs, and 8388607 for HE PPDUs). " + "(capped to 65535 for HT PPDUs, 1048575 for VHT PPDUs, and 6500631 for HE PPDUs). " "Value 0 means A-MPDU aggregation is disabled for that AC.", UintegerValue (65535), MakeUintegerAccessor (&RegularWifiMac::m_beMaxAmpduSize), - MakeUintegerChecker ()) + MakeUintegerChecker (0, 6500631)) .AddAttribute ("BK_MaxAmpduSize", "Maximum length in bytes of an A-MPDU for AC_BK access class " - "(capped to 65535 for HT PPDUs, 1048575 for VHT PPDUs, and 8388607 for HE PPDUs). " + "(capped to 65535 for HT PPDUs, 1048575 for VHT PPDUs, and 6500631 for HE PPDUs). " "Value 0 means A-MPDU aggregation is disabled for that AC.", UintegerValue (0), MakeUintegerAccessor (&RegularWifiMac::m_bkMaxAmpduSize), - MakeUintegerChecker ()) + MakeUintegerChecker (0, 6500631)) .AddAttribute ("VO_BlockAckThreshold", "If number of packets in VO queue reaches this value, " "block ack mechanism is used. If this value is 0, block ack is never used."