Skip to content

Commit

Permalink
Fix CommissionNode comand alway return failure (#34898)
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca authored and pull[bot] committed Sep 3, 2024
1 parent 5e3be97 commit 1015656
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,15 @@ bool emberAfCommissionerControlClusterCommissionNodeCallback(
// Set IP address and port in the CommissionNodeInfo struct
commissionNodeInfo->port = commandData.port;
err = commissionNodeInfo->ipAddress.SetIPAddress(commandData.ipAddress);
SuccessOrExit(err == CHIP_NO_ERROR);
SuccessOrExit(err);

// Validate the commission node command.
err = delegate->ValidateCommissionNodeCommand(sourceNodeId, requestId);
SuccessOrExit(err == CHIP_NO_ERROR);
SuccessOrExit(err);

// Populate the parameters for the commissioning window
err = delegate->GetCommissioningWindowParams(commissionNodeInfo->params);
SuccessOrExit(err == CHIP_NO_ERROR);
SuccessOrExit(err);

// Add the response for the commissioning window.
AddReverseOpenCommissioningWindowResponse(commandObj, commandPath, commissionNodeInfo->params);
Expand Down

0 comments on commit 1015656

Please sign in to comment.