From 88237801008d464e3bae2c00100ee82f3e70f83c Mon Sep 17 00:00:00 2001 From: Rohan Sahay Date: Mon, 10 Apr 2023 18:03:37 +0530 Subject: [PATCH] [Silabs] Adds fix for scan failure during commissioning flow (#25982) * Adds changes to default security value when scan fails * Port changes to SiWx917 * Adds fix for SiWx917 --- examples/platform/silabs/SiWx917/SiWx917/rsi_if.c | 7 +++++++ examples/platform/silabs/efr32/rs911x/rsi_if.c | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/examples/platform/silabs/SiWx917/SiWx917/rsi_if.c b/examples/platform/silabs/SiWx917/SiWx917/rsi_if.c index a09d5ea3dac3db..3ad6bad62a4b89 100644 --- a/examples/platform/silabs/SiWx917/SiWx917/rsi_if.c +++ b/examples/platform/silabs/SiWx917/SiWx917/rsi_if.c @@ -369,6 +369,13 @@ static void wfx_rsi_save_ap_info() /* * Scan is done - failed */ +#if WIFI_ENABLE_SECURITY_WPA3 + wfx_rsi.sec.security = WFX_SEC_WPA3; +#else /* !WIFI_ENABLE_SECURITY_WPA3 */ + wfx_rsi.sec.security = WFX_SEC_WPA2; +#endif /* WIFI_ENABLE_SECURITY_WPA3 */ + WFX_RSI_LOG("%s: warn: failed with status: %02x", status); + return; } else { diff --git a/examples/platform/silabs/efr32/rs911x/rsi_if.c b/examples/platform/silabs/efr32/rs911x/rsi_if.c index 9b5ad8bcf4fe11..e76ab4386a8007 100644 --- a/examples/platform/silabs/efr32/rs911x/rsi_if.c +++ b/examples/platform/silabs/efr32/rs911x/rsi_if.c @@ -418,6 +418,13 @@ static void wfx_rsi_save_ap_info() // translation /* * Scan is done - failed */ +#if WIFI_ENABLE_SECURITY_WPA3 + wfx_rsi.sec.security = WFX_SEC_WPA3; +#else /* !WIFI_ENABLE_SECURITY_WPA3 */ + wfx_rsi.sec.security = WFX_SEC_WPA2; +#endif /* WIFI_ENABLE_SECURITY_WPA3 */ + WFX_RSI_LOG("%s: warn: failed with status: %02x", status); + return; } else {