mirror of
https://github.com/espressif/openthread.git
synced 2026-07-08 21:30:24 +00:00
[cli] get preferred and supported channel mask (#4253)
This commit is contained in:
@@ -460,6 +460,14 @@ void Interpreter::ProcessChannel(int argc, char *argv[])
|
||||
{
|
||||
mServer->OutputFormat("%d\r\n", otLinkGetChannel(mInstance));
|
||||
}
|
||||
else if (strcmp(argv[0], "supported") == 0)
|
||||
{
|
||||
mServer->OutputFormat("0x%x\r\n", otPlatRadioGetSupportedChannelMask(mInstance));
|
||||
}
|
||||
else if (strcmp(argv[0], "preferred") == 0)
|
||||
{
|
||||
mServer->OutputFormat("0x%x\r\n", otPlatRadioGetPreferredChannelMask(mInstance));
|
||||
}
|
||||
#if OPENTHREAD_CONFIG_CHANNEL_MONITOR_ENABLE
|
||||
else if (strcmp(argv[0], "monitor") == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user