diff --git a/src/wifi/model/eht/eht-capabilities.cc b/src/wifi/model/eht/eht-capabilities.cc index c612f0470..1db841e79 100644 --- a/src/wifi/model/eht/eht-capabilities.cc +++ b/src/wifi/model/eht/eht-capabilities.cc @@ -594,7 +594,7 @@ EhtCapabilities::SetSupportedTxEhtMcsAndNss(EhtMcsAndNssSet::EhtMcsMapType mapTy } uint8_t -EhtCapabilities::GetHighestSupportedRxMcs(EhtMcsAndNssSet::EhtMcsMapType mapType) +EhtCapabilities::GetHighestSupportedRxMcs(EhtMcsAndNssSet::EhtMcsMapType mapType) const { const auto it = m_supportedEhtMcsAndNssSet.supportedEhtMcsAndNssSet.find(mapType); if (it == m_supportedEhtMcsAndNssSet.supportedEhtMcsAndNssSet.cend()) @@ -629,7 +629,7 @@ EhtCapabilities::GetHighestSupportedRxMcs(EhtMcsAndNssSet::EhtMcsMapType mapType } uint8_t -EhtCapabilities::GetHighestSupportedTxMcs(EhtMcsAndNssSet::EhtMcsMapType mapType) +EhtCapabilities::GetHighestSupportedTxMcs(EhtMcsAndNssSet::EhtMcsMapType mapType) const { const auto it = m_supportedEhtMcsAndNssSet.supportedEhtMcsAndNssSet.find(mapType); if (it == m_supportedEhtMcsAndNssSet.supportedEhtMcsAndNssSet.cend()) diff --git a/src/wifi/model/eht/eht-capabilities.h b/src/wifi/model/eht/eht-capabilities.h index 29f7e1da2..079de0983 100644 --- a/src/wifi/model/eht/eht-capabilities.h +++ b/src/wifi/model/eht/eht-capabilities.h @@ -308,14 +308,14 @@ class EhtCapabilities : public WifiInformationElement * @param mapType the EHT-MCS map type * @return the highest supported RX MCS for the given EHT-MCS map type */ - uint8_t GetHighestSupportedRxMcs(EhtMcsAndNssSet::EhtMcsMapType mapType); + uint8_t GetHighestSupportedRxMcs(EhtMcsAndNssSet::EhtMcsMapType mapType) const; /** * Get the highest supported TX MCS for a given EHT-MCS map type. * * @param mapType the EHT-MCS map type * @return the highest supported TX MCS for the given EHT-MCS map type */ - uint8_t GetHighestSupportedTxMcs(EhtMcsAndNssSet::EhtMcsMapType mapType); + uint8_t GetHighestSupportedTxMcs(EhtMcsAndNssSet::EhtMcsMapType mapType) const; /** * Set the EHT PPE threshold info subfield