Skip to content

Commit

Permalink
Clean up files
Browse files Browse the repository at this point in the history
  • Loading branch information
mkardous-silabs committed Nov 16, 2024
1 parent c1539d0 commit 5e9e2d5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/platform/silabs/BaseApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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)
{
Expand Down
4 changes: 4 additions & 0 deletions examples/platform/silabs/efr32/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
}
Expand Down
3 changes: 3 additions & 0 deletions src/platform/silabs/wifi/SiWx/WifiInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include "sl_status.h"
#include "sl_wifi_device.h"
#include "task.h"
#include <app/icd/server/ICDConfigurationData.h>
#include <app/icd/server/ICDServerConfig.h>
#include <inet/IPAddress.h>
#include <lib/support/CHIPMem.h>
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 5e9e2d5

Please sign in to comment.