From e8ee4e8f73131d7026ce0609227e85153b6270de Mon Sep 17 00:00:00 2001 From: Eduardo Montoya Date: Mon, 6 Nov 2023 15:18:23 +0100 Subject: [PATCH] Add csl accuracy and uncertainty commands --- src/cli/cli.cpp | 8 ++++++++ src/core/config/radio_link.h | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/cli/cli.cpp b/src/cli/cli.cpp index e4e62620165..1c680d6747c 100644 --- a/src/cli/cli.cpp +++ b/src/cli/cli.cpp @@ -2446,6 +2446,14 @@ template <> otError Interpreter::Process(Arg aArgs[]) { error = ProcessSet(aArgs + 1, otLinkSetCslTimeout); } + else if (aArgs[0] == "accuracy") + { + error = ProcessSet(aArgs + 1, otPlatRadioSetCslAccuracy); + } + else if (aArgs[0] == "uncertainty") + { + error = ProcessSet(aArgs + 1, otPlatRadioSetCslUncertainty); + } else { error = OT_ERROR_INVALID_ARGS; diff --git a/src/core/config/radio_link.h b/src/core/config/radio_link.h index 14e9a129236..5c7ca34e4da 100644 --- a/src/core/config/radio_link.h +++ b/src/core/config/radio_link.h @@ -63,7 +63,7 @@ * */ #ifndef OPENTHREAD_CONFIG_RADIO_STATS_ENABLE -#define OPENTHREAD_CONFIG_RADIO_STATS_ENABLE 0 +#define OPENTHREAD_CONFIG_RADIO_STATS_ENABLE 1 #endif //--------------------------------------------------------------