Skip to content

Commit 1228063

Browse files
jepenven-silabspull[bot]
authored andcommitted
Fix MLE Timeout (#23829)
1 parent 3f2c235 commit 1228063

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/platform/silabs/efr32/project_include/OpenThreadConfig.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@
3939
#if CHIP_DEVICE_CONFIG_ENABLE_SED
4040
#define OPENTHREAD_CONFIG_PARENT_SEARCH_ENABLE 0
4141
// In seconds
42-
#define OPENTHREAD_CONFIG_MLE_CHILD_TIMEOUT_DEFAULT (SL_SLEEP_TIME_MS / 1000)
42+
#define SL_MLE_TIMEOUT_seconds (SL_SLEEP_TIME_MS / 1000)
43+
44+
// Timeout after 2 missed checkin or 4 mins if sleep interval is too short.
45+
#define OPENTHREAD_CONFIG_MLE_CHILD_TIMEOUT_DEFAULT ((SL_MLE_TIMEOUT_seconds < 120) ? 240 : ((SL_MLE_TIMEOUT_seconds * 2) + 1))
4346
#endif
4447

4548
/****Uncomment below section for OpenThread Debug logs*/

0 commit comments

Comments
 (0)