From fcf43a37a46edf3ce5794de8f556ed327c213bb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deronne?= Date: Thu, 30 Nov 2023 22:04:50 +0100 Subject: [PATCH] wifi: Add missing const in EhtCapabilities functions --- src/wifi/model/eht/eht-capabilities.cc | 4 ++-- src/wifi/model/eht/eht-capabilities.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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