Skip to content

Commit 1491392

Browse files
LeelakumarPSrestyled-commits
authored andcommitted
Adds fix for LastConnectErrorValue have null after device reset (#26448)
* Adds fix for LastConnectErrorValue have null after device reset * Restyled by clang-format --------- Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 10e8482 commit 1491392

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/platform/silabs/NetworkCommissioningWiFiDriver.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,10 @@ void SlWiFiDriver::UpdateNetworkingStatus()
179179
ByteSpan networkId = ByteSpan((const unsigned char *) mStagingNetwork.ssid, mStagingNetwork.ssidLen);
180180
if (!wfx_is_sta_connected())
181181
{
182-
mpStatusChangeCallback->OnNetworkingStatusChange(Status::kUnknownError, MakeOptional(networkId),
183-
MakeOptional((int32_t) SL_STATUS_FAIL));
182+
mpStatusChangeCallback->OnNetworkingStatusChange(Status::kUnknownError, MakeOptional(networkId), NullOptional);
184183
return;
185184
}
186-
mpStatusChangeCallback->OnNetworkingStatusChange(Status::kSuccess, MakeOptional(networkId),
187-
MakeOptional((int32_t) SL_STATUS_OK));
185+
mpStatusChangeCallback->OnNetworkingStatusChange(Status::kSuccess, MakeOptional(networkId), NullOptional);
188186
}
189187

190188
void SlWiFiDriver::OnConnectWiFiNetwork()

0 commit comments

Comments
 (0)