From 219ae80d23ffb5f2cd5665eb79475e6402e45e88 Mon Sep 17 00:00:00 2001 From: WanqQixiang Date: Tue, 10 Dec 2024 11:29:49 +0800 Subject: [PATCH] fix(openthread): Disable Border Agent features by default --- .../openthread-core-esp32x-ftd-config.h | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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 8f0ffdc996..8a2012dc33 100644 --- a/components/openthread/private_include/openthread-core-esp32x-ftd-config.h +++ b/components/openthread/private_include/openthread-core-esp32x-ftd-config.h @@ -370,6 +370,16 @@ /*----The following options set fixed default values but can be overridden by the user header file.----*/ #if CONFIG_OPENTHREAD_BORDER_ROUTER +/** + * @def OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE + * + * Define to 1 to enable Border Agent support. + * + */ +#ifndef OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE +#define OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE 1 +#endif + /** * @def OPENTHREAD_CONFIG_BORDER_AGENT_ID_ENABLE * @@ -451,16 +461,6 @@ #define OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE 1 #endif -/** - * @def OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE - * - * Define to 1 to enable Border Agent support. - * - */ -#ifndef OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE -#define OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE 1 -#endif - #if !CONFIG_OPENTHREAD_RADIO_NATIVE /** * @def OPENTHREAD_SPINEL_CONFIG_COMPATIBILITY_ERROR_CALLBACK_ENABLE