wifi: Fix missing DSSS Param Set in Probe Request sent over 2.4 GHz links

This commit is contained in:
Sharan Naribole
2024-09-02 22:32:15 +02:00
committed by Stefano Avallone
parent 65fcfb3344
commit 94be0bc488
2 changed files with 7 additions and 0 deletions

View File

@@ -82,6 +82,7 @@ struct CanBeInPerStaProfile<Ssid> : std::false_type
using ProbeRequestElems = std::tuple<Ssid,
SupportedRates,
std::optional<ExtendedSupportedRatesIE>,
std::optional<DsssParameterSet>,
std::optional<HtCapabilities>,
std::optional<ExtendedCapabilities>,
std::optional<VhtCapabilities>,

View File

@@ -356,6 +356,12 @@ StaWifiMac::GetProbeRequest(uint8_t linkId) const
auto supportedRates = GetSupportedRates(linkId);
probe.Get<SupportedRates>() = supportedRates.rates;
probe.Get<ExtendedSupportedRatesIE>() = supportedRates.extendedRates;
if (GetWifiPhy(linkId)->GetPhyBand() == WIFI_PHY_BAND_2_4GHZ)
{
DsssParameterSet params;
params.SetCurrentChannel(GetWifiPhy(linkId)->GetChannelNumber());
probe.Get<DsssParameterSet>() = params;
}
if (GetHtSupported(linkId))
{
probe.Get<ExtendedCapabilities>() = GetExtendedCapabilities();