Skip to content

Commit fc15c9f

Browse files
committed
fixing the build for rs9116
1 parent 7f20f4c commit fc15c9f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/platform/silabs/efr32/rs911x/rsi_if.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ extern "C" {
5858
#include <lib/support/CHIPMemString.h>
5959
#include <lib/support/CodeUtils.h>
6060
#include <lib/support/logging/CHIPLogging.h>
61-
#include <platform/CHIPDeviceLayer.h>
6261

6362
#define WFX_QUEUE_SIZE 10
6463

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

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

0 commit comments

Comments
 (0)