From 8d60acc51729ee69f478809180b42a8737c16bf2 Mon Sep 17 00:00:00 2001 From: chirag-silabs Date: Thu, 31 Oct 2024 10:11:25 +0530 Subject: [PATCH] removing the unused code --- examples/platform/silabs/wifi/wfx_rsi_host.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/platform/silabs/wifi/wfx_rsi_host.cpp b/examples/platform/silabs/wifi/wfx_rsi_host.cpp index 9e34c333c0..df64e915d4 100644 --- a/examples/platform/silabs/wifi/wfx_rsi_host.cpp +++ b/examples/platform/silabs/wifi/wfx_rsi_host.cpp @@ -369,7 +369,6 @@ bool wfx_start_scan(char * ssid, void (*callback)(wfx_wifi_scan_result_t *)) wfx_rsi.scan_cb = callback; // if SSID is provided to scan only that SSID if(ssid) { - // wfx_rsi.scan_ssid_length = chip::min(strnlen(ssid, chip::DeviceLayer::Internal::kMaxWiFiSSIDLength) + 1, chip::DeviceLayer::Internal::kMaxWiFiSSIDLength); // +1 for null termination wfx_rsi.scan_ssid_length = strnlen(ssid, chip::min(sizeof(ssid), WFX_MAX_SSID_LENGTH)); wfx_rsi.scan_ssid = reinterpret_cast(chip::Platform::MemoryAlloc(wfx_rsi.scan_ssid_length + 1)); VerifyOrReturnError(wfx_rsi.scan_ssid != nullptr, false);