Skip to content

Conversation

@silabs-ArghyaD
Copy link
Contributor

@silabs-ArghyaD silabs-ArghyaD commented Dec 4, 2025

Summary

This PR updates deprecated APIs to their recommended alternatives across platform and shell components to resolve deprecation warnings. The changes replace deprecated Silicon Labs WiFi SDK and GPIO driver functions with their current equivalents.

Key Changes:

  • Replaced deprecated sl_si91x_set_join_configuration with sl_wifi_set_join_configuration in WiFi interface
  • Updated sl_si91x_performance_profile_t type to sl_wifi_system_performance_profile_t
  • Replaced sl_si91x_gpio_driver_mask_uulp_npss_interrupt with sl_si91x_gpio_driver_mask_set_uulp_npss_interrupt

Related issues

N/A

Testing

  • Tested local builds on Light and Lock app (both WiFi and Thread)
  • Confirmed that no deprecation warnings appear in the build logs after the update.

Readability checklist

The checklist below will help the reviewer finish PR review in time and keep the
code readable:

  • PR title is
    descriptive
  • Apply the
    “When in Rome…”
    rule (coding style)
  • PR size is short
  • Try to avoid "squashing" and "force-update" in commit history
  • CI time didn't increase

See: Pull Request Guidelines

Copilot AI review requested due to automatic review settings December 4, 2025 18:13
@silabs-ArghyaD silabs-ArghyaD requested a review from a team as a code owner December 4, 2025 18:13
@CLAassistant
Copy link

CLAassistant commented Dec 4, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates deprecated Silicon Labs SDK APIs to their recommended alternatives to resolve deprecation warnings during compilation. The changes affect WiFi configuration and GPIO driver functions.

Key Changes:

  • WiFi SDK API updates: Replaced deprecated sl_si91x_ prefixed functions with sl_wifi_ equivalents
  • Type updates: Changed performance profile types from sl_si91x_ to sl_wifi_system_ variants
  • GPIO driver update: Replaced deprecated interrupt masking function with its current alternative

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/platform/silabs/wifi/SiWx/WifiInterfaceImpl.cpp Updated WiFi join configuration API call, performance profile return type documentation, and function signature with corresponding type changes
src/platform/silabs/SiWx/SiWxPlatformInterface.h Replaced deprecated GPIO interrupt masking function with recommended alternative

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly updates several deprecated Silicon Labs APIs to their recommended alternatives, addressing deprecation warnings. The changes are straightforward replacements of function names and types, such as sl_si91x_gpio_driver_mask_uulp_npss_interrupt to sl_si91x_gpio_driver_mask_set_uulp_npss_interrupt and sl_si91x_performance_profile_t to sl_wifi_system_performance_profile_t. The implementation is correct and follows the stated intent of the PR. The code looks good, and I have no further suggestions.

@github-actions
Copy link

github-actions bot commented Dec 4, 2025

PR #42295: Size comparison from e333758 to dae03a1

Full report (32 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section e333758 dae03a1 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1106718 1106718 0 0.0
RAM 178954 178954 0 0.0
bl702 lighting-app bl702+eth FLASH 661538 661538 0 0.0
RAM 135025 135025 0 0.0
bl702+wifi FLASH 837388 837388 0 0.0
RAM 124485 124485 0 0.0
bl706+mfd+rpc+littlefs FLASH 1071032 1071032 0 0.0
RAM 117341 117341 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 903852 903852 0 0.0
RAM 105932 105932 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 983778 983778 0 0.0
RAM 109844 109844 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 771448 771448 0 0.0
RAM 103392 103392 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 784260 784260 0 0.0
RAM 108712 108712 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 729280 729280 0 0.0
RAM 97452 97452 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 713728 713728 0 0.0
RAM 97660 97660 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 555260 555260 0 0.0
RAM 205472 205472 0 0.0
lock CC3235SF_LAUNCHXL FLASH 589200 589200 0 0.0
RAM 205720 205720 0 0.0
esp32 all-clusters-app c3devkit DRAM 102804 102804 0 0.0
FLASH 1840140 1840140 0 0.0
IRAM 93540 93540 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 937940 937940 0 0.0
RAM 161720 161720 0 0.0
nxp contact mcxw71+release FLASH 695840 695840 0 0.0
RAM 61744 61744 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1683620 1683620 0 0.0
RAM 214188 214188 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1597956 1597956 0 0.0
RAM 211356 211356 0 0.0
light cy8ckit_062s2_43012 FLASH 1461236 1461236 0 0.0
RAM 197800 197800 0 0.0
lock cy8ckit_062s2_43012 FLASH 1495188 1495188 0 0.0
RAM 225672 225672 0 0.0
qpg lighting-app qpg6200+debug FLASH 839784 839784 0 0.0
RAM 127976 127976 0 0.0
lock-app qpg6200+debug FLASH 776656 776656 0 0.0
RAM 118920 118920 0 0.0
realtek light-switch-app rtl8777g FLASH 709864 709864 0 0.0
RAM 107188 107188 0 0.0
lighting-app rtl8777g FLASH 758560 758560 0 0.0
RAM 127320 127320 0 0.0
stm32 light STM32WB5MM-DK FLASH 470908 470908 0 0.0
RAM 141392 141392 0 0.0
telink bridge-app tl7218x FLASH 704394 704394 0 0.0
RAM 90760 90760 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 790742 790742 0 0.0
RAM 41176 41176 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 782054 782054 0 0.0
RAM 93860 93860 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 710538 710538 0 0.0
RAM 52232 52232 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 746370 746370 0 0.0
RAM 71256 71256 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 721050 721050 0 0.0
RAM 34956 34956 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 602952 602952 0 0.0
RAM 117320 117320 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 815562 815566 4 0.0
RAM 92248 92248 0 0.0

@silabs-ArghyaD silabs-ArghyaD marked this pull request as draft December 5, 2025 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants