File tree 1 file changed +1
-2
lines changed
examples/platform/silabs/efr32/rs911x
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,6 @@ extern "C" {
58
58
#include < lib/support/CHIPMemString.h>
59
59
#include < lib/support/CodeUtils.h>
60
60
#include < lib/support/logging/CHIPLogging.h>
61
- #include < platform/CHIPDeviceLayer.h>
62
61
63
62
#define WFX_QUEUE_SIZE 10
64
63
@@ -756,7 +755,7 @@ void ProcessEvent(WfxEvent_t inEvent)
756
755
scan = &scan_rsp.scan_info [x];
757
756
// clear structure and calculate size of SSID
758
757
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
760
759
chip::Platform::CopyString (ap.ssid , ap.ssid_length , reinterpret_cast <char *>(scan->ssid ));
761
760
762
761
// check if the scanned ssid is the one we are looking for
You can’t perform that action at this time.
0 commit comments