Skip to content

Commit e48012d

Browse files
modules: openthread: simplify kconfig for OT
As kconfigs in modules/openthread are now Nordic-specific, we can set some defaults directly there not to multiply some configs. Signed-off-by: Maciej Baczmanski <[email protected]>
1 parent b6ccec9 commit e48012d

File tree

3 files changed

+9
-38
lines changed

3 files changed

+9
-38
lines changed

modules/openthread/Kconfig.features

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ config OPENTHREAD_CSL_RECEIVER
110110

111111
config OPENTHREAD_CSL_RECEIVER_LOCAL_TIME_SYNC
112112
bool "Use local time for CSL synchronization"
113+
default y if NRF_802154_SER_HOST
113114
help
114115
Use host time rather than radio platform time to track elapsed time
115116
since last CSL synchronization. This reduces the usage of radio API
@@ -173,6 +174,7 @@ config OPENTHREAD_DUA
173174
Enable Domain Unicast Address feature for Thread 1.2
174175

175176
config OPENTHREAD_DYNAMIC_STORE_FRAME_AHEAD_COUNTER
177+
default y
176178
bool "Dynamic store frame ahead counter"
177179

178180
config OPENTHREAD_ECDSA
@@ -283,6 +285,7 @@ config OPENTHREAD_OTNS
283285

284286
config OPENTHREAD_PING_SENDER
285287
bool "Ping sender support"
288+
default y
286289

287290
config OPENTHREAD_PLATFORM_KEY_REF
288291
bool "Platform cryptographic key reference support"

modules/openthread/Kconfig.thread

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,26 +93,27 @@ config OPENTHREAD_CSL_RECEIVE_TIME_AHEAD
9393

9494
config OPENTHREAD_MIN_RECEIVE_ON_AHEAD
9595
int "Minimum receiving time before start of MHR"
96-
default 192
96+
default 104
9797
help
9898
The minimum time (microseconds) that radio has to be in receive mode before the start of the MHR.
9999

100100
config OPENTHREAD_MIN_RECEIVE_ON_AFTER
101101
int "Minimum receiving time after start of MHR"
102-
default 5504
102+
default 0
103103
help
104104
The minimum time (microseconds) that radio should be in receive mode after the start of the MHR.
105105

106106
config OPENTHREAD_PLATFORM_CSL_UNCERT
107107
int "CSL uncertainty"
108-
default $(UINT8_MAX)
108+
default 30 if BOARD_NRF54L15DK
109+
default 12
109110
range 0 $(UINT8_MAX)
110111
help
111112
The fixed uncertainty of the Device for scheduling CSL Transmissions in units of 10 microseconds.
112113

113114
config OPENTHREAD_CSL_TIMEOUT
114115
int "CSL timeout in seconds"
115-
default 100
116+
default 20
116117
help
117118
The default CSL timeout in seconds.
118119

@@ -170,7 +171,6 @@ config OPENTHREAD_TCP_ENABLE
170171

171172
config OPENTHREAD_CLI_TCP_ENABLE
172173
bool "TCP in the CLI tool"
173-
default y if SHELL
174174
depends on OPENTHREAD_TCP_ENABLE
175175

176176
config OPENTHREAD_HISTORY_TRACKER

subsys/net/openthread/Kconfig.defconfig

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,6 @@ config NET_PKT_TX_COUNT
6868
default 4 if OPENTHREAD_COPROCESSOR_RCP
6969
default 16
7070

71-
config OPENTHREAD_CLI_TCP_ENABLE
72-
default n
73-
74-
config OPENTHREAD_DYNAMIC_STORE_FRAME_AHEAD_COUNTER
75-
default y
76-
7771
config OPENTHREAD_MANUAL_START
7872
default y
7973

@@ -152,9 +146,6 @@ config MBEDTLS_HEAP_SIZE
152146
default 15360 if OPENTHREAD_NRF_SECURITY_PSA
153147
default 12440 if !OPENTHREAD_NRF_SECURITY_PSA
154148

155-
config OPENTHREAD_PING_SENDER
156-
default y
157-
158149
if !OPENTHREAD_THREAD_VERSION_1_1
159150

160151
# Thread 1.2 dependencies
@@ -168,35 +159,12 @@ config NET_PKT_TIMESTAMP
168159
default y
169160

170161
# CSL Transmitter configuration
171-
config OPENTHREAD_PLATFORM_CSL_UNCERT
172-
default 30 if BOARD_NRF54L15DK
173-
default 12
174-
175162
config IEEE802154_NRF5_DELAY_TRX_ACC
176163
default 50 if BOARD_NRF52840DONGLE_NRF52840 || BOARD_NRF54L15DK
177164
default 20
178165

179-
if OPENTHREAD_CSL_RECEIVER
180-
181166
config IEEE802154_CSL_ENDPOINT
182-
default y
183-
184-
config OPENTHREAD_CSL_RECEIVE_TIME_AHEAD
185-
default 5000
186-
187-
config OPENTHREAD_MIN_RECEIVE_ON_AHEAD
188-
default 104
189-
190-
config OPENTHREAD_MIN_RECEIVE_ON_AFTER
191-
default 0
192-
193-
config OPENTHREAD_CSL_TIMEOUT
194-
default 20
195-
196-
config OPENTHREAD_CSL_RECEIVER_LOCAL_TIME_SYNC
197-
default y if NRF_802154_SER_HOST
198-
199-
endif # OPENTHREAD_CSL_RECEIVER
167+
default y if OPENTHREAD_CSL_RECEIVER
200168

201169
endif # !OPENTHREAD_THREAD_VERSION_1_1
202170

0 commit comments

Comments
 (0)