Skip to content

Commit 8d60acc

Browse files
committed
removing the unused code
1 parent da46aee commit 8d60acc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

examples/platform/silabs/wifi/wfx_rsi_host.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,6 @@ bool wfx_start_scan(char * ssid, void (*callback)(wfx_wifi_scan_result_t *))
369369
wfx_rsi.scan_cb = callback;
370370
// if SSID is provided to scan only that SSID
371371
if(ssid) {
372-
// wfx_rsi.scan_ssid_length = chip::min<size_t>(strnlen(ssid, chip::DeviceLayer::Internal::kMaxWiFiSSIDLength) + 1, chip::DeviceLayer::Internal::kMaxWiFiSSIDLength); // +1 for null termination
373372
wfx_rsi.scan_ssid_length = strnlen(ssid, chip::min<size_t>(sizeof(ssid), WFX_MAX_SSID_LENGTH));
374373
wfx_rsi.scan_ssid = reinterpret_cast<char *>(chip::Platform::MemoryAlloc(wfx_rsi.scan_ssid_length + 1));
375374
VerifyOrReturnError(wfx_rsi.scan_ssid != nullptr, false);

0 commit comments

Comments
 (0)