From 77c60765ca63843ca64207ed4f598cb3aa445274 Mon Sep 17 00:00:00 2001 From: Xu Si Yu Date: Wed, 24 May 2023 17:38:41 +0800 Subject: [PATCH] openthread rcp: set link metrics feature optional --- .../private_include/openthread-core-esp32x-radio-config.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/openthread/private_include/openthread-core-esp32x-radio-config.h b/components/openthread/private_include/openthread-core-esp32x-radio-config.h index 8bb97355de..6a292f2d6e 100644 --- a/components/openthread/private_include/openthread-core-esp32x-radio-config.h +++ b/components/openthread/private_include/openthread-core-esp32x-radio-config.h @@ -207,6 +207,7 @@ #define OPENTHREAD_RADIO 1 +#if CONFIG_OPENTHREAD_LINK_METRICS /** * @def OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE * @@ -216,3 +217,4 @@ #ifndef OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE #define OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE 1 #endif +#endif //CONFIG_OPENTHREAD_LINK_METRICS