From a8632ace1bd42c84c5f2d91e0c77840ed2f13cfb Mon Sep 17 00:00:00 2001 From: Suvesh Pratapa <66088488+suveshpratapa@users.noreply.github.com> Date: Tue, 28 Jan 2025 15:01:05 -0500 Subject: [PATCH] [config] define uptime feature for MTDs (#11192) MTDs built out of the OpenThread stack fail 1.4 network diagnostics test cases that track connection time and role time in MLE counter TLVs. We can workaround manually defining UPTIME for MTDs, but it's better to make it the default behavior. --- src/core/config/misc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/config/misc.h b/src/core/config/misc.h index 5dc48d648..7fb9139d7 100644 --- a/src/core/config/misc.h +++ b/src/core/config/misc.h @@ -119,7 +119,7 @@ * Define to 1 to enable tracking the uptime of OpenThread instance. */ #ifndef OPENTHREAD_CONFIG_UPTIME_ENABLE -#define OPENTHREAD_CONFIG_UPTIME_ENABLE OPENTHREAD_FTD +#define OPENTHREAD_CONFIG_UPTIME_ENABLE (OPENTHREAD_FTD || OPENTHREAD_MTD) #endif /**