Skip to content

Commit

Permalink
[nrf fromlist] modules: openthread: Add of Kconfigs to change child t…
Browse files Browse the repository at this point in the history
…imeouts

Introduced few Kconfigs that allow to change default values
of MLE child timeout and child supervision timeouts.

Upstream PR #: 82209

Signed-off-by: Kamil Kasperczyk <[email protected]>
  • Loading branch information
kkasperczyk-no authored and nordicjm committed Nov 29, 2024
1 parent f995b7d commit 6e98d27
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
21 changes: 21 additions & 0 deletions modules/openthread/Kconfig.thread
Original file line number Diff line number Diff line change
Expand Up @@ -210,3 +210,24 @@ config OPENTHREAD_STORE_FRAME_COUNTER_AHEAD
default 100000
help
Openthread value ahead of the current frame counter for persistent storage.

config OPENTHREAD_CHILD_SUPERVISION_CHECK_TIMEOUT
int "Openthread child supervision check timeout in seconds"
default 190
help
The supervision check timeout interval in seconds used by a device in child state.
Set to zero to disable the supervision check process on the child.

config OPENTHREAD_CHILD_SUPERVISION_INTERVAL
int "Openthread child supervision interval in seconds"
default 129
help
The supervision interval used by a parent device to send a supervision message
to the child, if there is no transmission to the child within this interval.
Set to zero to disable the supervision check process on the child.

config OPENTHREAD_MLE_CHILD_TIMEOUT
int "Openthread MLE child timeout in seconds"
default 240
help
The value of MLE child timeout in seconds.
31 changes: 31 additions & 0 deletions modules/openthread/platform/openthread-core-zephyr-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -468,4 +468,35 @@
#define OPENTHREAD_CONFIG_STORE_FRAME_COUNTER_AHEAD CONFIG_OPENTHREAD_STORE_FRAME_COUNTER_AHEAD
#endif

/**
* @def OPENTHREAD_CONFIG_CHILD_SUPERVISION_CHECK_TIMEOUT
*
* The value of the child supervision check timeout in seconds.
*
*/
#ifdef CONFIG_OPENTHREAD_CHILD_SUPERVISION_CHECK_TIMEOUT
#define OPENTHREAD_CONFIG_CHILD_SUPERVISION_CHECK_TIMEOUT \
CONFIG_OPENTHREAD_CHILD_SUPERVISION_CHECK_TIMEOUT
#endif

/**
* @def OPENTHREAD_CONFIG_CHILD_SUPERVISION_INTERVAL
*
* The value of the child supervision interval in seconds.
*
*/
#ifdef CONFIG_OPENTHREAD_CHILD_SUPERVISION_INTERVAL
#define OPENTHREAD_CONFIG_CHILD_SUPERVISION_INTERVAL CONFIG_OPENTHREAD_CHILD_SUPERVISION_INTERVAL
#endif

/**
* @def OPENTHREAD_CONFIG_MLE_CHILD_TIMEOUT_DEFAULT
*
* The value of the MLE child timeout in seconds.
*
*/
#ifdef CONFIG_OPENTHREAD_MLE_CHILD_TIMEOUT
#define OPENTHREAD_CONFIG_MLE_CHILD_TIMEOUT_DEFAULT CONFIG_OPENTHREAD_MLE_CHILD_TIMEOUT
#endif

#endif /* OPENTHREAD_CORE_ZEPHYR_CONFIG_H_ */

0 comments on commit 6e98d27

Please sign in to comment.