Skip to content

Commit

Permalink
fixing the build for rs9116
Browse files Browse the repository at this point in the history
  • Loading branch information
chirag-silabs committed Oct 30, 2024
1 parent 7f20f4c commit fc15c9f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/platform/silabs/efr32/rs911x/rsi_if.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ extern "C" {
#include <lib/support/CHIPMemString.h>
#include <lib/support/CodeUtils.h>
#include <lib/support/logging/CHIPLogging.h>
#include <platform/CHIPDeviceLayer.h>

#define WFX_QUEUE_SIZE 10

Expand Down Expand Up @@ -756,7 +755,7 @@ void ProcessEvent(WfxEvent_t inEvent)
scan = &scan_rsp.scan_info[x];
// clear structure and calculate size of SSID
memset(&ap, 0, sizeof(ap));
ap.ssid_length = chip::min<size_t>(strnlen(ap.ssid, chip::DeviceLayer::Internal::kMaxWiFiSSIDLength) + 1, chip::DeviceLayer::Internal::kMaxWiFiSSIDLength); // +1 for null termination
ap.ssid_length = chip::min<size_t>(strnlen(ap.ssid, WFX_MAX_SSID_LENGTH) + 1, WFX_MAX_SSID_LENGTH); // +1 for null termination
chip::Platform::CopyString(ap.ssid, ap.ssid_length, reinterpret_cast<char *>(scan->ssid));

// check if the scanned ssid is the one we are looking for
Expand Down

0 comments on commit fc15c9f

Please sign in to comment.