wifi: Add missing const in EhtCapabilities functions

This commit is contained in:
Sébastien Deronne
2023-11-30 22:04:50 +01:00
parent 9b9e6ef3a6
commit fcf43a37a4
2 changed files with 4 additions and 4 deletions

View File

@@ -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())

View File

@@ -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