Skip to content

Commit

Permalink
[config] define uptime feature for MTDs
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
suveshpratapa committed Jan 28, 2025
1 parent ee2049f commit 65077ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/config/misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

/**
Expand Down

0 comments on commit 65077ef

Please sign in to comment.