Skip to content

Commit

Permalink
net: openthread: add OPENTHREAD_STORE_FRAME_COUNTER_AHEAD
Browse files Browse the repository at this point in the history
Add `OPENTHREAD_STORE_FRAME_COUNTER_AHEAD` Kconfig option
and set it to 100000, as after calculations it appears to
be a more suitable value.

(cherry picked from commit 9655c2f)

Original-Signed-off-by: Maciej Baczmanski <[email protected]>
GitOrigin-RevId: 9655c2f
Cr-Build-Id: 8735195939382094625
Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8735195939382094625
Copybot-Job-Name: zephyr-main-copybot-downstream
Change-Id: Idf02f1fb3b8adcb864ee3e1a8f0a634729b71841
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5904857
Tested-by: ChromeOS Prod (Robot) <[email protected]>
Reviewed-by: Al Semjonovs <[email protected]>
Tested-by: Al Semjonovs <[email protected]>
Commit-Queue: Al Semjonovs <[email protected]>
  • Loading branch information
maciejbaczmanski authored and Chromeos LUCI committed Oct 2, 2024
1 parent 9d12deb commit 3f4acce
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 8 additions & 2 deletions modules/openthread/Kconfig.thread
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,13 @@ config OPENTHREAD_BLE_TCAT_THREAD_STACK_SIZE
default 5120 if OPENTHREAD_CRYPTO_PSA
default 4200
help
Openthread default TCAT stack size.
Openthread default TCAT stack size.

config OPENTHREAD_BLE_TCAT_RING_BUF_SIZE
int "Openthread BLE ringbuffer size"
default 512
help
Openthread BLE TCAT ringbuffer size.
Openthread BLE TCAT ringbuffer size.

config OPENTHREAD_NAT64_CIDR
string "Set IPv4 CIDR used by NAT64"
Expand All @@ -204,3 +204,9 @@ config OPENTHREAD_NAT64_CIDR
to set source address of the outgoing translated IPv4 packets.
The CIDR must have four bytes in the address with the
non-zero length of prefix (e.g., "127.0.0.1/24").

config OPENTHREAD_STORE_FRAME_COUNTER_AHEAD
int "Openthread frame counter ahead value"
default 100000
help
Openthread value ahead of the current frame counter for persistent storage.
10 changes: 10 additions & 0 deletions modules/openthread/platform/openthread-core-zephyr-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -448,4 +448,14 @@
#define OPENTHREAD_CONFIG_RADIO_STATS_ENABLE CONFIG_OPENTHREAD_RADIO_STATS
#endif

/**
* @def OPENTHREAD_CONFIG_STORE_FRAME_COUNTER_AHEAD
*
* The value ahead of the current frame counter for persistent storage.
*
*/
#ifdef CONFIG_OPENTHREAD_STORE_FRAME_COUNTER_AHEAD
#define OPENTHREAD_CONFIG_STORE_FRAME_COUNTER_AHEAD CONFIG_OPENTHREAD_STORE_FRAME_COUNTER_AHEAD
#endif

#endif /* OPENTHREAD_CORE_ZEPHYR_CONFIG_H_ */

0 comments on commit 3f4acce

Please sign in to comment.