wifi: Do not send VHT capabilities when operating in 2.4 GHz band

This commit is contained in:
Sébastien Deronne
2020-09-04 12:51:05 +02:00
committed by Deronne Sebastien
parent afed498f29
commit 1753765862

View File

@@ -765,7 +765,7 @@ WifiHelper::Install (const WifiPhyHelper &phyHelper,
Ptr<HtConfiguration> htConfiguration = CreateObject<HtConfiguration> ();
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> vhtConfiguration = CreateObject<VhtConfiguration> ();
device->SetVhtConfiguration (vhtConfiguration);