From ff8e8d33de49c8df6cfa73183a454773f3896d11 Mon Sep 17 00:00:00 2001 From: Neethu Date: Mon, 12 Aug 2024 10:02:44 +0200 Subject: [PATCH] location capability --- src/platform/renesas/ConfigurationManagerImpl.cpp | 6 ++++++ src/platform/renesas/ConfigurationManagerImpl.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/platform/renesas/ConfigurationManagerImpl.cpp b/src/platform/renesas/ConfigurationManagerImpl.cpp index 72400ce126e792..b676b89bcf9596 100644 --- a/src/platform/renesas/ConfigurationManagerImpl.cpp +++ b/src/platform/renesas/ConfigurationManagerImpl.cpp @@ -117,6 +117,12 @@ CHIP_ERROR ConfigurationManagerImpl::StoreCountryCode(const char * code, size_t return err; } +CHIP_ERROR ConfigurationManagerImpl::GetLocationCapability(uint8_t & location) +{ + location = to_underlying(chip::app::Clusters::GeneralCommissioning::RegulatoryLocationTypeEnum::kIndoorOutdoor); + return CHIP_NO_ERROR; +} + CHIP_ERROR ConfigurationManagerImpl::GetBootReason(uint32_t & bootReason) { return ReadConfigValue(RenesasConfig::kConfigKey_BootReason, bootReason); diff --git a/src/platform/renesas/ConfigurationManagerImpl.h b/src/platform/renesas/ConfigurationManagerImpl.h index 6a56cd0fb40785..f9493cdfde1a78 100644 --- a/src/platform/renesas/ConfigurationManagerImpl.h +++ b/src/platform/renesas/ConfigurationManagerImpl.h @@ -44,6 +44,7 @@ class ConfigurationManagerImpl : public Internal::GenericConfigurationManagerImp CHIP_ERROR StoreBootReason(uint32_t bootReason) override; CHIP_ERROR GetCountryCode(char * buf, size_t bufSize, size_t & codeLen) override; CHIP_ERROR StoreCountryCode(const char * code, size_t codeLen) override; + CHIP_ERROR GetLocationCapability(uint8_t & location) override; void RegisterNetif(struct netif* netif); CHIP_ERROR GetPrimaryWiFiMACAddress(uint8_t * buf) override;