Skip to content

Commit

Permalink
Fix build due to unused variable in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartinez-silabs committed Jan 11, 2024
1 parent 4198085 commit bcdd1b8
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ namespace {
// For WiFi and Thread scan results, each item will cost ~60 bytes in TLV, thus 15 is a safe upper bound of scan results.
constexpr size_t kMaxNetworksInScanResponse = 15;

// The maximum number of Wi-Fi bands a device can support.
constexpr size_t kMaxWiFiBands = 6;

#if CHIP_DEVICE_CONFIG_ENABLE_WIFI_PDC
constexpr size_t kPossessionNonceSize = 32;
#endif // CHIP_DEVICE_CONFIG_ENABLE_WIFI_PDC
Expand Down Expand Up @@ -274,7 +271,8 @@ CHIP_ERROR Instance::Read(const ConcreteReadAttributePath & aPath, AttributeValu
return CHIP_IM_GLOBAL_STATUS(UnsupportedAttribute);
#else
VerifyOrReturnError(mFeatureFlags.Has(Feature::kWiFiNetworkInterface), CHIP_IM_GLOBAL_STATUS(UnsupportedAttribute));

// The maximum number of Wi-Fi bands a device can support.
constexpr size_t kMaxWiFiBands = 6;
return aEncoder.EncodeList([this](const auto & encoder) -> CHIP_ERROR {
WiFiBand bandsBuffer[kMaxWiFiBands];
Span<WiFiBand> bands(bandsBuffer);
Expand Down

0 comments on commit bcdd1b8

Please sign in to comment.