Skip to content

Commit 742fc61

Browse files
authored
Fixed length comparision of connected SSID (#38085)
1 parent c78bb0c commit 742fc61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform/silabs/NetworkCommissioningWiFiDriver.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ CHIP_ERROR GetConnectedNetwork(Network & network)
339339
// we are able to fetch the wifi provision data and STA should be connected
340340
VerifyOrReturnError(WifiInterface::GetInstance().IsStationConnected(), CHIP_ERROR_NOT_CONNECTED);
341341
ReturnErrorOnFailure(WifiInterface::GetInstance().GetWifiCredentials(wifiConfig));
342-
VerifyOrReturnError(wifiConfig.ssidLength < NetworkCommissioning::kMaxNetworkIDLen, CHIP_ERROR_BUFFER_TOO_SMALL);
342+
VerifyOrReturnError(wifiConfig.ssidLength <= NetworkCommissioning::kMaxNetworkIDLen, CHIP_ERROR_BUFFER_TOO_SMALL);
343343

344344
network.connected = true;
345345

0 commit comments

Comments
 (0)