From dd0afffde3683c2e321e140c512a429771df01e0 Mon Sep 17 00:00:00 2001 From: Xu Si Yu Date: Wed, 24 May 2023 18:01:17 +0800 Subject: [PATCH] openthread cli: set dua feature optional --- components/openthread/Kconfig | 7 +++++++ .../private_include/openthread-core-esp32x-ftd-config.h | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/components/openthread/Kconfig b/components/openthread/Kconfig index ff4ca35bb5..219bd8b697 100644 --- a/components/openthread/Kconfig +++ b/components/openthread/Kconfig @@ -255,4 +255,11 @@ menu "OpenThread" default n help Select this option to set rx on when sleep in CSL feature, only for debug + + config OPENTHREAD_DUA_ENABLE + bool "Enable Domain Unicast Address feature" + depends on OPENTHREAD_ENABLED + default n + help + Only used for Thread1.2 certification endmenu diff --git a/components/openthread/private_include/openthread-core-esp32x-ftd-config.h b/components/openthread/private_include/openthread-core-esp32x-ftd-config.h index f3ad6f268f..cc75cd9432 100644 --- a/components/openthread/private_include/openthread-core-esp32x-ftd-config.h +++ b/components/openthread/private_include/openthread-core-esp32x-ftd-config.h @@ -371,6 +371,7 @@ */ #define OPENTHREAD_CONFIG_PING_SENDER_ENABLE 1 +#if CONFIG_OPENTHREAD_DUA_ENABLE /** * @def OPENTHREAD_CONFIG_DUA_ENABLE * @@ -378,8 +379,9 @@ * */ #ifndef OPENTHREAD_CONFIG_DUA_ENABLE -#define OPENTHREAD_CONFIG_DUA_ENABLE 0 +#define OPENTHREAD_CONFIG_DUA_ENABLE 1 #endif +#endif //CONFIG_OPENTHREAD_DUA_ENABLE /** * @def OPENTHREAD_CONFIG_MLR_ENABLE