spinel-cli: Add router timing commands. (#705)

Adds support for routerselectionjitter, routerdowngradethreshold, and masterkey to fixe the slew of ncp-sim failures from recent thread-cert test updates.  Also added missing otInstance parameter to the new APIs..

Added otInstance to new APIs.
This commit is contained in:
Martin Turon
2016-09-27 18:19:47 -07:00
committed by Jonathan Hui
parent 383d0783b2
commit 625e4adde4
10 changed files with 194 additions and 20 deletions
+4 -4
View File
@@ -1743,12 +1743,12 @@ void Interpreter::ProcessRouterDowngradeThreshold(int argc, char *argv[])
if (argc == 0)
{
sServer->OutputFormat("%d\r\n", otGetRouterDowngradeThreshold());
sServer->OutputFormat("%d\r\n", otGetRouterDowngradeThreshold(mInstance));
}
else
{
SuccessOrExit(error = ParseLong(argv[0], value));
otSetRouterDowngradeThreshold(static_cast<uint8_t>(value));
otSetRouterDowngradeThreshold(mInstance, static_cast<uint8_t>(value));
}
exit:
@@ -1794,12 +1794,12 @@ void Interpreter::ProcessRouterSelectionJitter(int argc, char *argv[])
if (argc == 0)
{
sServer->OutputFormat("%d\r\n", otGetRouterSelectionJitter());
sServer->OutputFormat("%d\r\n", otGetRouterSelectionJitter(mInstance));
}
else
{
SuccessOrExit(error = ParseLong(argv[0], value));
otSetRouterSelectionJitter(static_cast<uint8_t>(value));
otSetRouterSelectionJitter(mInstance, static_cast<uint8_t>(value));
}
exit: