From 14028681c2e5d31f2a268b016f9cfc793f1baeb3 Mon Sep 17 00:00:00 2001 From: Junior Martinez <67972863+jmartinez-silabs@users.noreply.github.com> Date: Fri, 22 Sep 2023 01:34:00 -0400 Subject: [PATCH] Fix some build issues with wifi-ncp combos (#29400) --- examples/platform/silabs/efr32/rs911x/wfx_rsi_host.c | 6 +----- src/platform/silabs/rs911x/rsi_ble_config.h | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/examples/platform/silabs/efr32/rs911x/wfx_rsi_host.c b/examples/platform/silabs/efr32/rs911x/wfx_rsi_host.c index c12e4749b21040..3482f222b3bc35 100644 --- a/examples/platform/silabs/efr32/rs911x/wfx_rsi_host.c +++ b/examples/platform/silabs/efr32/rs911x/wfx_rsi_host.c @@ -203,11 +203,7 @@ sl_status_t wfx_connect_to_ap(void) ***********************************************************************/ sl_status_t wfx_power_save() { - if (wfx_rsi_power_save() != RSI_ERROR_NONE) - { - return SL_STATUS_FAIL; - } - return SL_STATUS_OK; + return (wfx_rsi_power_save() ? SL_STATUS_FAIL : SL_STATUS_OK); } #endif /* SL_ICD_ENABLED */ diff --git a/src/platform/silabs/rs911x/rsi_ble_config.h b/src/platform/silabs/rs911x/rsi_ble_config.h index 07f50b9528f253..89ec2f81873f58 100644 --- a/src/platform/silabs/rs911x/rsi_ble_config.h +++ b/src/platform/silabs/rs911x/rsi_ble_config.h @@ -20,6 +20,7 @@ #include "rsi_ble_apis.h" #if (SIWX_917 | EXP_BOARD) +#include "rsi_bt_common_apis.h" #include "rsi_user.h" #else #include