Skip to content

Commit 1091ad4

Browse files
maciejbaczmanskibjarki-andreasen
authored andcommitted
[nrf fromlist] net: openthread: add OPENTHREAD_STORE_FRAME_COUNTER_AHEAD
Add `OPENTHREAD_STORE_FRAME_COUNTER_AHEAD` Kconfig option and set it to 100000, as after calculations it appears to be a more suitable value. Upstream PR: zephyrproject-rtos#79180 Signed-off-by: Maciej Baczmanski <[email protected]>
1 parent 78541b8 commit 1091ad4

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

modules/openthread/Kconfig.thread

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,13 @@ config OPENTHREAD_BLE_TCAT_THREAD_STACK_SIZE
187187
default 5120 if OPENTHREAD_CRYPTO_PSA
188188
default 4200
189189
help
190-
Openthread default TCAT stack size.
190+
Openthread default TCAT stack size.
191191

192192
config OPENTHREAD_BLE_TCAT_RING_BUF_SIZE
193193
int "Openthread BLE ringbuffer size"
194194
default 512
195195
help
196-
Openthread BLE TCAT ringbuffer size.
196+
Openthread BLE TCAT ringbuffer size.
197197

198198
config OPENTHREAD_NAT64_CIDR
199199
string "Set IPv4 CIDR used by NAT64"
@@ -204,3 +204,9 @@ config OPENTHREAD_NAT64_CIDR
204204
to set source address of the outgoing translated IPv4 packets.
205205
The CIDR must have four bytes in the address with the
206206
non-zero length of prefix (e.g., "127.0.0.1/24").
207+
208+
config OPENTHREAD_STORE_FRAME_COUNTER_AHEAD
209+
int "Openthread frame counter ahead value"
210+
default 100000
211+
help
212+
Openthread value ahead of the current frame counter for persistent storage.

modules/openthread/platform/openthread-core-zephyr-config.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,4 +448,14 @@
448448
#define OPENTHREAD_CONFIG_RADIO_STATS_ENABLE CONFIG_OPENTHREAD_RADIO_STATS
449449
#endif
450450

451+
/**
452+
* @def OPENTHREAD_CONFIG_STORE_FRAME_COUNTER_AHEAD
453+
*
454+
* The value ahead of the current frame counter for persistent storage.
455+
*
456+
*/
457+
#ifdef CONFIG_OPENTHREAD_STORE_FRAME_COUNTER_AHEAD
458+
#define OPENTHREAD_CONFIG_STORE_FRAME_COUNTER_AHEAD CONFIG_OPENTHREAD_STORE_FRAME_COUNTER_AHEAD
459+
#endif
460+
451461
#endif /* OPENTHREAD_CORE_ZEPHYR_CONFIG_H_ */

0 commit comments

Comments
 (0)