From dae03a1804793e4a51117e4988141b9c52ab461f Mon Sep 17 00:00:00 2001 From: ardutta Date: Thu, 4 Dec 2025 20:41:57 +0530 Subject: [PATCH 1/2] Updated deprecated api's with latest ones --- src/platform/silabs/SiWx/SiWxPlatformInterface.h | 2 +- src/platform/silabs/wifi/SiWx/WifiInterfaceImpl.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/platform/silabs/SiWx/SiWxPlatformInterface.h b/src/platform/silabs/SiWx/SiWxPlatformInterface.h index 0ba50f9c4b463e..cc5005520fefec 100644 --- a/src/platform/silabs/SiWx/SiWxPlatformInterface.h +++ b/src/platform/silabs/SiWx/SiWxPlatformInterface.h @@ -54,7 +54,7 @@ void gpio_uulp_pin_interrupt_callback(uint32_t pin_intr) // BTN_0 is pressed // NOTE: the GPIO is masked since the interrupt is invoked before scheduler is started, thus this is required to hand over // control to scheduler, the PIN is unmasked in the power manager flow before going to sleep - status = sl_si91x_gpio_driver_mask_uulp_npss_interrupt(BIT(pin_intr)); + status = sl_si91x_gpio_driver_mask_set_uulp_npss_interrupt(BIT(pin_intr)); VerifyOrReturn(status == SL_STATUS_OK, ChipLogError(DeviceLayer, "failed to mask interrupt: %ld", status)); } } diff --git a/src/platform/silabs/wifi/SiWx/WifiInterfaceImpl.cpp b/src/platform/silabs/wifi/SiWx/WifiInterfaceImpl.cpp index bde87c0ff2aae6..4a818e747adb0b 100644 --- a/src/platform/silabs/wifi/SiWx/WifiInterfaceImpl.cpp +++ b/src/platform/silabs/wifi/SiWx/WifiInterfaceImpl.cpp @@ -441,7 +441,7 @@ sl_status_t SetWifiConfigurations() VerifyOrReturnError(status == SL_STATUS_OK, status, ChipLogError(DeviceLayer, "sl_wifi_set_advanced_client_configuration failed: 0x%lx", status)); - status = sl_si91x_set_join_configuration( + status = sl_wifi_set_join_configuration( SL_WIFI_CLIENT_INTERFACE, (SL_SI91X_JOIN_FEAT_LISTEN_INTERVAL_VALID | SL_SI91X_JOIN_FEAT_PS_CMD_LISTEN_INTERVAL_VALID)); VerifyOrReturnError(status == SL_STATUS_OK, status); #endif // CHIP_CONFIG_ENABLE_ICD_SERVER @@ -508,14 +508,14 @@ sl_status_t SetWifiConfigurations() * * @param configuration Matter Power Save Configuration * - * @return sl_si91x_performance_profile_t SiWx Power Save Configuration; Default value is High Performance + * @return sl_wifi_system_performance_profile_t SiWx Power Save Configuration; Default value is High Performance * kHighPerformance: HIGH_PERFORMANCE * kConnectedSleep: ASSOCIATED_POWER_SAVE * kDeepSleep: DEEP_SLEEP_WITH_RAM_RETENTION */ -sl_si91x_performance_profile_t ConvertPowerSaveConfiguration(PowerSaveInterface::PowerSaveConfiguration configuration) +sl_wifi_system_performance_profile_t ConvertPowerSaveConfiguration(PowerSaveInterface::PowerSaveConfiguration configuration) { - sl_si91x_performance_profile_t profile = HIGH_PERFORMANCE; + sl_wifi_system_performance_profile_t profile = HIGH_PERFORMANCE; switch (configuration) { From 89f76a0d5f7b0492293c3dc1a590561b4879c20a Mon Sep 17 00:00:00 2001 From: ardutta Date: Fri, 12 Dec 2025 01:26:53 +0530 Subject: [PATCH 2/2] Updated the argument for platform api --- src/platform/silabs/SiWx/SiWxPlatformInterface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/silabs/SiWx/SiWxPlatformInterface.h b/src/platform/silabs/SiWx/SiWxPlatformInterface.h index cc5005520fefec..821c9ccb16732b 100644 --- a/src/platform/silabs/SiWx/SiWxPlatformInterface.h +++ b/src/platform/silabs/SiWx/SiWxPlatformInterface.h @@ -54,7 +54,7 @@ void gpio_uulp_pin_interrupt_callback(uint32_t pin_intr) // BTN_0 is pressed // NOTE: the GPIO is masked since the interrupt is invoked before scheduler is started, thus this is required to hand over // control to scheduler, the PIN is unmasked in the power manager flow before going to sleep - status = sl_si91x_gpio_driver_mask_set_uulp_npss_interrupt(BIT(pin_intr)); + status = sl_si91x_gpio_driver_mask_set_uulp_npss_interrupt(pin_intr); VerifyOrReturn(status == SL_STATUS_OK, ChipLogError(DeviceLayer, "failed to mask interrupt: %ld", status)); } }