Skip to content

Commit dfd3749

Browse files
authored
[NXP][platform][common] Fix return status when removed a non-existing network ID (project-chip#36435)
Signed-off-by: Martin Girardot <martin.girardot@nxp.com>
1 parent ecad145 commit dfd3749

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/platform/nxp/common/NetworkCommissioningWiFiDriver.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ Status NXPWiFiDriver::RemoveNetwork(ByteSpan networkId, MutableCharSpan & outDeb
144144
{
145145
outDebugText.reduce_size(0);
146146
outNetworkIndex = 0;
147+
VerifyOrReturnError(NetworkMatch(mStagingNetwork, networkId), Status::kNetworkIDNotFound);
148+
147149
// Use empty ssid for representing invalid network
148150
mStagingNetwork.ssidLen = 0;
149151

0 commit comments

Comments
 (0)