Add Thread Certification 9.2.4 to automated test. (#823)

This commit is contained in:
Jonathan Hui
2016-10-17 17:26:58 -07:00
committed by GitHub
parent 4e45fa5e44
commit 4538dafd3d
7 changed files with 216 additions and 4 deletions
+7
View File
@@ -527,6 +527,13 @@ ThreadError Dataset::ProcessMgmtSetCommand(otInstance *aInstance, int argc, char
SuccessOrExit(error = Interpreter::ParseLong(argv[++index], value));
dataset.mChannel = static_cast<uint16_t>(value);
}
else if (strcmp(argv[index], "channelmask") == 0)
{
VerifyOrExit(index < argc, error = kThreadError_Parse);
dataset.mIsChannelMaskPage0Set = true;
SuccessOrExit(error = Interpreter::ParseLong(argv[++index], value));
dataset.mChannelMaskPage0 = static_cast<uint32_t>(value);
}
else if (strcmp(argv[index], "binary") == 0)
{
VerifyOrExit((index + 1) < argc, error = kThreadError_Parse);