Skip to content

Commit

Permalink
removing the unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
chirag-silabs committed Oct 31, 2024
1 parent da46aee commit 8d60acc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion examples/platform/silabs/wifi/wfx_rsi_host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<size_t>(strnlen(ssid, chip::DeviceLayer::Internal::kMaxWiFiSSIDLength) + 1, chip::DeviceLayer::Internal::kMaxWiFiSSIDLength); // +1 for null termination
wfx_rsi.scan_ssid_length = strnlen(ssid, chip::min<size_t>(sizeof(ssid), WFX_MAX_SSID_LENGTH));
wfx_rsi.scan_ssid = reinterpret_cast<char *>(chip::Platform::MemoryAlloc(wfx_rsi.scan_ssid_length + 1));
VerifyOrReturnError(wfx_rsi.scan_ssid != nullptr, false);
Expand Down

0 comments on commit 8d60acc

Please sign in to comment.