From 2614946e6c8bba36a1b18696e8044c35c55dd6a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20Kr=C3=B3lik?= <66667989+Damian-Nordic@users.noreply.github.com> Date: Thu, 21 Oct 2021 15:04:05 +0200 Subject: [PATCH] [nrfconnect] Set CHIP_CONFIG_MAX_DEVICE_ADMINS to 5 (#10764) Set the platform's default number of fabrics to 5 which is the minimum allowed by the spec. Also, set the platform's default number of SRP services to the number of fabrics plus 1 to make sure that all operational services and a commissionable node serice can be advertised. --- src/platform/nrfconnect/CHIPDevicePlatformConfig.h | 1 + src/platform/nrfconnect/CHIPPlatformConfig.h | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/platform/nrfconnect/CHIPDevicePlatformConfig.h b/src/platform/nrfconnect/CHIPDevicePlatformConfig.h index d297c6ac3bcde3..e4743d39f420fd 100644 --- a/src/platform/nrfconnect/CHIPDevicePlatformConfig.h +++ b/src/platform/nrfconnect/CHIPDevicePlatformConfig.h @@ -80,6 +80,7 @@ #ifdef CONFIG_CHIP_ENABLE_DNSSD_SRP #define CHIP_DEVICE_CONFIG_ENABLE_DNSSD 1 #define CHIP_DEVICE_CONFIG_ENABLE_THREAD_SRP_CLIENT 1 +#define CHIP_DEVICE_CONFIG_THREAD_SRP_MAX_SERVICES (CHIP_CONFIG_MAX_DEVICE_ADMINS + 1) #define CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY 1 #define CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONABLE_DISCOVERY 1 #ifdef CONFIG_CHIP_ENABLE_DNS_CLIENT diff --git a/src/platform/nrfconnect/CHIPPlatformConfig.h b/src/platform/nrfconnect/CHIPPlatformConfig.h index 9b9639c4b22f08..716992dc23d871 100644 --- a/src/platform/nrfconnect/CHIPPlatformConfig.h +++ b/src/platform/nrfconnect/CHIPPlatformConfig.h @@ -103,6 +103,10 @@ #define CHIP_CONFIG_BDX_MAX_NUM_TRANSFERS 1 #endif // CHIP_CONFIG_BDX_MAX_NUM_TRANSFERS +#ifndef CHIP_CONFIG_MAX_DEVICE_ADMINS +#define CHIP_CONFIG_MAX_DEVICE_ADMINS 5 +#endif + // ==================== Security Configuration Overrides ==================== #ifndef CHIP_CONFIG_MAX_APPLICATION_GROUPS