[Tizen] Implement GetSupportedWiFiBandsMask() API (#31444)
diff --git a/src/platform/Tizen/NetworkCommissioningDriver.h b/src/platform/Tizen/NetworkCommissioningDriver.h
index 64db40b..0e08269 100644
--- a/src/platform/Tizen/NetworkCommissioningDriver.h
+++ b/src/platform/Tizen/NetworkCommissioningDriver.h
@@ -101,6 +101,7 @@
Status AddOrUpdateNetwork(ByteSpan ssid, ByteSpan credentials, MutableCharSpan & outDebugText,
uint8_t & outNetworkIndex) override;
void ScanNetworks(ByteSpan ssid, ScanCallback * callback) override;
+ uint32_t GetSupportedWiFiBandsMask() const override;
private:
bool NetworkMatch(const WiFiNetwork & network, ByteSpan networkId);
diff --git a/src/platform/Tizen/NetworkCommissioningWiFiDriver.cpp b/src/platform/Tizen/NetworkCommissioningWiFiDriver.cpp
index a92ead9..4bb57a8 100644
--- a/src/platform/Tizen/NetworkCommissioningWiFiDriver.cpp
+++ b/src/platform/Tizen/NetworkCommissioningWiFiDriver.cpp
@@ -168,6 +168,12 @@
}
}
+uint32_t TizenWiFiDriver::GetSupportedWiFiBandsMask() const
+{
+ return static_cast<uint32_t>((1UL << chip::to_underlying(WiFiBandEnum::k2g4)) |
+ (1UL << chip::to_underlying(WiFiBandEnum::k5g)));
+}
+
size_t TizenWiFiDriver::WiFiNetworkIterator::Count()
{
return driver->mStagingNetwork.ssidLen == 0 ? 0 : 1;