From 9de61b5076b457bc43757815da5cf22834928ac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deronne?= Date: Sat, 12 Oct 2024 09:01:05 +0200 Subject: [PATCH] wifi: Fix rate subfield in radiotap header when 802.11be is used --- src/wifi/helper/wifi-helper.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/wifi/helper/wifi-helper.cc b/src/wifi/helper/wifi-helper.cc index bc7212a3b..be201055b 100644 --- a/src/wifi/helper/wifi-helper.cc +++ b/src/wifi/helper/wifi-helper.cc @@ -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(),