From 1753765862578f0e10cc85a67c8bf6d258d62f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deronne?= Date: Fri, 4 Sep 2020 12:51:05 +0200 Subject: [PATCH] wifi: Do not send VHT capabilities when operating in 2.4 GHz band --- src/wifi/helper/wifi-helper.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wifi/helper/wifi-helper.cc b/src/wifi/helper/wifi-helper.cc index ec4285353..6a1f2137c 100644 --- a/src/wifi/helper/wifi-helper.cc +++ b/src/wifi/helper/wifi-helper.cc @@ -765,7 +765,7 @@ WifiHelper::Install (const WifiPhyHelper &phyHelper, Ptr htConfiguration = CreateObject (); device->SetHtConfiguration (htConfiguration); } - if (it->second.phyStandard >= WIFI_PHY_STANDARD_80211ac) + if ((it->second.phyStandard >= WIFI_PHY_STANDARD_80211ac) && (it->second.phyBand != WIFI_PHY_BAND_2_4GHZ)) { Ptr vhtConfiguration = CreateObject (); device->SetVhtConfiguration (vhtConfiguration);