From 156eddf8583949891a0ed3af97d9d1399b01be2b Mon Sep 17 00:00:00 2001 From: interfer Date: Tue, 29 Oct 2024 10:53:51 +0200 Subject: [PATCH] [Telink] Add support for up to 8 groups for lighting-app. Groups multicast functionality fixed. Tested on 1-8 groups. Signed-off-by: Dmytro Huz --- config/telink/chip-module/Kconfig.defaults | 11 ++++++++++- .../lighting-app/telink/include/CHIPProjectConfig.h | 4 ++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/config/telink/chip-module/Kconfig.defaults b/config/telink/chip-module/Kconfig.defaults index 835b14c1811be0..d28d77d6cffd32 100644 --- a/config/telink/chip-module/Kconfig.defaults +++ b/config/telink/chip-module/Kconfig.defaults @@ -83,7 +83,12 @@ config COMMON_LIBC_MALLOC_ARENA_SIZE default 12288 config NET_IPV6_MLD - default n + default n if PM + default y + +config NET_IF_MCAST_IPV6_ADDR_COUNT + default 8 if PM + default 15 # Network buffers config NET_PKT_RX_COUNT @@ -272,6 +277,10 @@ config OPENTHREAD_DEFAULT_TX_POWER default 3 if PM default 9 +config OPENTHREAD_IP6_MAX_EXT_MCAST_ADDRS + default 2 if PM + default 8 + endif # NET_L2_OPENTHREAD config NET_TX_STACK_SIZE diff --git a/examples/lighting-app/telink/include/CHIPProjectConfig.h b/examples/lighting-app/telink/include/CHIPProjectConfig.h index 830ad45de5816d..07251fa9859817 100644 --- a/examples/lighting-app/telink/include/CHIPProjectConfig.h +++ b/examples/lighting-app/telink/include/CHIPProjectConfig.h @@ -35,3 +35,7 @@ // Until this is improved in OpenThread we need to increase the retransmission // interval to survive the stall. #define CHIP_CONFIG_MRP_LOCAL_ACTIVE_RETRY_INTERVAL (1000_ms32) + +// ========== Multicast groups Configuration Overrides ========= +#define CHIP_CONFIG_MAX_GROUP_ENDPOINTS_PER_FABRIC 8 +#define CHIP_CONFIG_EXAMPLE_ACCESS_CONTROL_MAX_SUBJECTS_PER_ENTRY (4 * CHIP_CONFIG_MAX_GROUP_ENDPOINTS_PER_FABRIC)