wifi: Fix rate subfield in radiotap header when 802.11be is used

This commit is contained in:
Sébastien Deronne
2024-10-12 09:01:05 +02:00
parent 7d9afae1af
commit 9de61b5076

View File

@@ -337,9 +337,7 @@ WifiPhyHelper::GetRadiotapHeader(RadiotapHeader& header,
header.SetFrameFlags(frameFlags);
uint64_t rate = 0;
if (txVector.GetMode(staId).GetModulationClass() != WIFI_MOD_CLASS_HT &&
txVector.GetMode(staId).GetModulationClass() != WIFI_MOD_CLASS_VHT &&
txVector.GetMode(staId).GetModulationClass() != WIFI_MOD_CLASS_HE)
if (txVector.GetModulationClass() < WIFI_MOD_CLASS_HT)
{
rate = txVector.GetMode(staId).GetDataRate(txVector.GetChannelWidth(),
txVector.GetGuardInterval(),