From 5e9e2d52d25a7941e10e3b6bc48fd00c725572a5 Mon Sep 17 00:00:00 2001 From: Mathieu Kardous Date: Sat, 16 Nov 2024 17:24:09 -0500 Subject: [PATCH] Clean up files --- examples/platform/silabs/BaseApplication.cpp | 4 ++-- examples/platform/silabs/efr32/BUILD.gn | 4 ++++ src/platform/silabs/wifi/SiWx/WifiInterface.cpp | 3 +++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/examples/platform/silabs/BaseApplication.cpp b/examples/platform/silabs/BaseApplication.cpp index f3e05b79f1..8ad25d5e36 100644 --- a/examples/platform/silabs/BaseApplication.cpp +++ b/examples/platform/silabs/BaseApplication.cpp @@ -910,7 +910,7 @@ void BaseApplication::OnPlatformEvent(const ChipDeviceEvent * event, intptr_t) #endif // SILABS_OTA_ENABLED #if (CHIP_CONFIG_ENABLE_ICD_SERVER && RS911X_WIFI) #if !SLI_SI917 - // Todo: sl-only - Only 9116 - 917 is managed by the SleepManager + // [sl-only] Only 9116 - 917 is managed by the SleepManager // on power cycle, let the device go to sleep after connection is established if (BaseApplication::sAppDelegate.isCommissioningInProgress() == false) { @@ -929,7 +929,7 @@ void BaseApplication::OnPlatformEvent(const ChipDeviceEvent * event, intptr_t) case DeviceEventType::kCommissioningComplete: { #if (CHIP_CONFIG_ENABLE_ICD_SERVER && RS911X_WIFI) #if !SLI_SI917 - // TODO: sl-ony - Only 9116 - 917 is managed by the SleepManager + // [sl-only] Only 9116 - 917 is managed by the SleepManager sl_status_t status = wfx_power_save(); if (status != SL_STATUS_OK) { diff --git a/examples/platform/silabs/efr32/BUILD.gn b/examples/platform/silabs/efr32/BUILD.gn index e0e7b45070..293c60dbc7 100644 --- a/examples/platform/silabs/efr32/BUILD.gn +++ b/examples/platform/silabs/efr32/BUILD.gn @@ -230,6 +230,10 @@ source_set("efr32-common") { ] } + if (chip_enable_icd_server && use_SiWx917) { + public_deps += [ "${silabs_common_plat_dir}/wifi/icd:sleep-manager" ] + } + if (app_data_model != "") { public_deps += [ app_data_model ] } diff --git a/src/platform/silabs/wifi/SiWx/WifiInterface.cpp b/src/platform/silabs/wifi/SiWx/WifiInterface.cpp index 7a01d60d6b..896af8a62a 100644 --- a/src/platform/silabs/wifi/SiWx/WifiInterface.cpp +++ b/src/platform/silabs/wifi/SiWx/WifiInterface.cpp @@ -33,6 +33,7 @@ #include "sl_status.h" #include "sl_wifi_device.h" #include "task.h" +#include #include #include #include @@ -415,6 +416,8 @@ sl_status_t JoinWifiNetwork(void) if (status == SL_STATUS_OK || status == SL_STATUS_IN_PROGRESS) { + // TODO: Set listen interval to 0 with DTIM sync + WifiEvent event = WifiEvent::kStationConnect; sl_matter_wifi_post_event(event); return status;