From 305e4ba6069b587a4cdd48d971823c428636533b Mon Sep 17 00:00:00 2001 From: LeelaKumarPS-silabs <114213294+LeelakumarPS@users.noreply.github.com> Date: Tue, 18 Jul 2023 23:20:26 +0530 Subject: [PATCH] [Silabs]- Adds fix for failed last connect error value (#26651) * Adds fix for failed last connect error value * Update src/platform/silabs/NetworkCommissioningWiFiDriver.cpp Co-authored-by: Boris Zbarsky * Pointing the github issue #26861 - align WiFi network join failure Status Codes in IEEE 802.11-2020 --------- Co-authored-by: Boris Zbarsky --- src/platform/silabs/NetworkCommissioningWiFiDriver.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/platform/silabs/NetworkCommissioningWiFiDriver.cpp b/src/platform/silabs/NetworkCommissioningWiFiDriver.cpp index 515c2695191e6a..d6d28e189d821c 100644 --- a/src/platform/silabs/NetworkCommissioningWiFiDriver.cpp +++ b/src/platform/silabs/NetworkCommissioningWiFiDriver.cpp @@ -179,7 +179,9 @@ void SlWiFiDriver::UpdateNetworkingStatus() ByteSpan networkId = ByteSpan((const unsigned char *) mStagingNetwork.ssid, mStagingNetwork.ssidLen); if (!wfx_is_sta_connected()) { - mpStatusChangeCallback->OnNetworkingStatusChange(Status::kUnknownError, MakeOptional(networkId), NullOptional); + // TODO: https://github.com/project-chip/connectedhomeip/issues/26861 + mpStatusChangeCallback->OnNetworkingStatusChange(Status::kUnknownError, MakeOptional(networkId), + MakeOptional(static_cast(SL_STATUS_FAIL))); return; } mpStatusChangeCallback->OnNetworkingStatusChange(Status::kSuccess, MakeOptional(networkId), NullOptional);