From 1a0d86e77c9bba1e3c808a4d9f641b6a7afed58a Mon Sep 17 00:00:00 2001 From: zhangwenxu Date: Fri, 19 May 2023 13:24:07 +0800 Subject: [PATCH] openthread: add kconfig for enabling mac filter --- components/openthread/Kconfig | 7 +++++++ .../private_include/openthread-core-esp32x-ftd-config.h | 4 ++++ .../private_include/openthread-core-esp32x-mtd-config.h | 4 ++++ 3 files changed, 15 insertions(+) diff --git a/components/openthread/Kconfig b/components/openthread/Kconfig index ac195606a3..03f154d11c 100644 --- a/components/openthread/Kconfig +++ b/components/openthread/Kconfig @@ -201,6 +201,13 @@ menu "OpenThread" help Select this option to enable link metrics feature + config OPENTHREAD_MACFILTER_ENABLE + bool "Enable mac filter feature" + depends on OPENTHREAD_ENABLED + default n + help + Select this option to enable mac filter feature + config OPENTHREAD_CSL_ENABLE bool "Enable CSL feature" depends on OPENTHREAD_ENABLED 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 040453a84c..2cb8ede33c 100644 --- a/components/openthread/private_include/openthread-core-esp32x-ftd-config.h +++ b/components/openthread/private_include/openthread-core-esp32x-ftd-config.h @@ -408,6 +408,10 @@ #define OPENTHREAD_CONFIG_COMMISSIONER_ENABLE 1 #endif +#if CONFIG_OPENTHREAD_MACFILTER_ENABLE +#define OPENTHREAD_CONFIG_MAC_FILTER_ENABLE 1 +#endif + #if CONFIG_OPENTHREAD_JOINER #define OPENTHREAD_CONFIG_JOINER_ENABLE 1 #endif diff --git a/components/openthread/private_include/openthread-core-esp32x-mtd-config.h b/components/openthread/private_include/openthread-core-esp32x-mtd-config.h index 463934f433..7ecfbca1c1 100644 --- a/components/openthread/private_include/openthread-core-esp32x-mtd-config.h +++ b/components/openthread/private_include/openthread-core-esp32x-mtd-config.h @@ -212,6 +212,10 @@ #define OPENTHREAD_CONFIG_COMMISSIONER_ENABLE 0 #endif +#if CONFIG_OPENTHREAD_MACFILTER_ENABLE +#define OPENTHREAD_CONFIG_MAC_FILTER_ENABLE 1 +#endif // CONFIG_OPENTHREAD_MACFILTER_ENABLE + #if CONFIG_OPENTHREAD_JOINER #define OPENTHREAD_CONFIG_JOINER_ENABLE 0 #endif