Skip to content

Commit

Permalink
Actually return the dataset in GetOperationalDataset
Browse files Browse the repository at this point in the history
  • Loading branch information
ksperling-apple committed Jul 24, 2024
1 parent be3d1e1 commit fc0ef7e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,10 @@ void ThreadNetworkDirectoryServer::HandleOperationalDatasetRequest(

uint8_t datasetBuffer[kSizeOperationalDataset];
MutableByteSpan datasetSpan(datasetBuffer);
OperationalDatasetResponse::Type response;
SuccessOrExit(err = mStorage.GetNetworkDataset(ExtendedPanId(req.extendedPanID), datasetSpan));
ctx.mCommandHandler.AddStatus(ctx.mRequestPath, IMStatus::Success);
response.operationalDataset = datasetSpan;
ctx.mCommandHandler.AddResponse(ctx.mRequestPath, response);
return;
exit:
ChipLogError(Zcl, "GetOperationalDataset: %" CHIP_ERROR_FORMAT, err.Format());
Expand Down

0 comments on commit fc0ef7e

Please sign in to comment.