Skip to content

Commit

Permalink
[Silabs]- Adds fix for failed last connect error value (#26651)
Browse files Browse the repository at this point in the history
* Adds fix for failed last connect error value

* Update src/platform/silabs/NetworkCommissioningWiFiDriver.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* Pointing the github issue

#26861 - align WiFi network join failure Status Codes in IEEE 802.11-2020

---------

Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Oct 27, 2023
1 parent 5a174b9 commit 0b2b266
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/platform/silabs/NetworkCommissioningWiFiDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int32_t>(SL_STATUS_FAIL)));
return;
}
mpStatusChangeCallback->OnNetworkingStatusChange(Status::kSuccess, MakeOptional(networkId), NullOptional);
Expand Down

0 comments on commit 0b2b266

Please sign in to comment.