Skip to content

Commit

Permalink
[NXP][platform][common] Fix return status when removed a non-existing…
Browse files Browse the repository at this point in the history
… network ID (project-chip#36435)

Signed-off-by: Martin Girardot <[email protected]>
  • Loading branch information
Martin-NXP authored Nov 12, 2024
1 parent ecad145 commit dfd3749
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/platform/nxp/common/NetworkCommissioningWiFiDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ Status NXPWiFiDriver::RemoveNetwork(ByteSpan networkId, MutableCharSpan & outDeb
{
outDebugText.reduce_size(0);
outNetworkIndex = 0;
VerifyOrReturnError(NetworkMatch(mStagingNetwork, networkId), Status::kNetworkIDNotFound);

// Use empty ssid for representing invalid network
mStagingNetwork.ssidLen = 0;

Expand Down

0 comments on commit dfd3749

Please sign in to comment.