From 21532765848f5a5bfbb25a1a9ba1c1a48a9d560f Mon Sep 17 00:00:00 2001 From: Kamil Kasperczyk <66371704+kkasperczyk-no@users.noreply.github.com> Date: Wed, 22 Feb 2023 15:25:42 +0100 Subject: [PATCH] [nrfconnect] Defined default MRP retry intervals for the platform (#25244) The nrfconnect platform requires some custom MRP retry intervals that are proven by tests to work for Wi-Fi and Thread. Added defining MRP retry values to the nrfconnect platform code. --- src/platform/nrfconnect/CHIPPlatformConfig.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/platform/nrfconnect/CHIPPlatformConfig.h b/src/platform/nrfconnect/CHIPPlatformConfig.h index c4b975baf24b4a..f812fd5ededff5 100644 --- a/src/platform/nrfconnect/CHIPPlatformConfig.h +++ b/src/platform/nrfconnect/CHIPPlatformConfig.h @@ -95,3 +95,20 @@ #define CHIP_CONFIG_LOG_MODULE_Support_PROGRESS 0 #define CHIP_CONFIG_LOG_MODULE_DeviceLayer_DETAIL 0 #endif + +// Set MRP retry intervals for Thread and Wi-Fi to test-proven values. +#ifndef CHIP_CONFIG_MRP_LOCAL_ACTIVE_RETRY_INTERVAL +#if CHIP_ENABLE_OPENTHREAD +#define CHIP_CONFIG_MRP_LOCAL_ACTIVE_RETRY_INTERVAL (800_ms32) +#else +#define CHIP_CONFIG_MRP_LOCAL_ACTIVE_RETRY_INTERVAL (1000_ms32) +#endif // CHIP_ENABLE_OPENTHREAD +#endif // CHIP_CONFIG_MRP_LOCAL_ACTIVE_RETRY_INTERVAL + +#ifndef CHIP_CONFIG_MRP_LOCAL_IDLE_RETRY_INTERVAL +#if CHIP_ENABLE_OPENTHREAD +#define CHIP_CONFIG_MRP_LOCAL_IDLE_RETRY_INTERVAL (800_ms32) +#else +#define CHIP_CONFIG_MRP_LOCAL_IDLE_RETRY_INTERVAL (1000_ms32) +#endif // CHIP_ENABLE_OPENTHREAD +#endif // CHIP_CONFIG_MRP_LOCAL_IDLE_RETRY_INTERVAL