Skip to content

Commit 1a7e0dc

Browse files
Cristib05cfriedt
authored andcommitted
modules: openthread: Enable configuration for network diagnostics
This commit adds new config flags used to populate OpenThread network diagnostics fields. Signed-off-by: Cristian Bulacu <[email protected]>
1 parent 1476fcb commit 1a7e0dc

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

modules/openthread/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ kconfig_to_ot_option(CONFIG_OPENTHREAD_VERHOEFF_CHECKSUM OT_VERHOEFF_CHECKSUM "V
140140
kconfig_to_ot_option(CONFIG_OPENTHREAD_WAKEUP_COORDINATOR OT_WAKEUP_COORDINATOR "Enable Wake-up Coordinator role")
141141
kconfig_to_ot_option(CONFIG_OPENTHREAD_WAKEUP_END_DEVICE OT_WAKEUP_END_DEVICE "Enable Wake-up End Device role")
142142
kconfig_to_ot_option_value(CONFIG_OPENTHREAD_RCP_RESTORATION_MAX_COUNT OT_RCP_RESTORATION_MAX_COUNT "Set the maximum number of RCP restoration attempts")
143+
kconfig_to_ot_option_value(CONFIG_OPENTHREAD_NET_DIAG_VENDOR_NAME OT_VENDOR_NAME "Set vendor name for network diagnostics")
144+
kconfig_to_ot_option_value(CONFIG_OPENTHREAD_NET_DIAG_VENDOR_MODEL OT_VENDOR_MODEL "Set vendor model for network diagnostics")
145+
kconfig_to_ot_option_value(CONFIG_OPENTHREAD_NET_DIAG_VENDOR_SW_VERSION OT_VENDOR_SW_VERSION "Set software version for network diagnostics")
143146

144147
if(CONFIG_OPENTHREAD_COPROCESSOR_VENDOR_HOOK_SOURCE)
145148
set(OT_NCP_VENDOR_HOOK_SOURCE ${CONFIG_OPENTHREAD_COPROCESSOR_VENDOR_HOOK_SOURCE} CACHE STRING "NCP vendor hook source file name" FORCE)

modules/openthread/Kconfig.thread

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,3 +265,21 @@ config OPENTHREAD_ROUTER_SELECTION_JITTER
265265
int "OpenThread router selection jitter in seconds"
266266
depends on OPENTHREAD_ROUTER_SELECTION_JITTER_OVERRIDE
267267
default 120
268+
269+
config OPENTHREAD_NET_DIAG_VENDOR_NAME
270+
string "Vendor name populated in OpenThread network diagnostics TLV"
271+
default "Zephyr"
272+
help
273+
This value represents vendor name that will be exposed in network diagnostic TLV.
274+
275+
config OPENTHREAD_NET_DIAG_VENDOR_MODEL
276+
string "Vendor model populated in OpenThread network diagnostics TLV"
277+
default "Zephyr-OpenThread"
278+
help
279+
This value represents vendor model that will be exposed in network diagnostic TLV.
280+
281+
config OPENTHREAD_NET_DIAG_VENDOR_SW_VERSION
282+
string "Vendor software version populated in OpenThread network diagnostics TLV"
283+
default "Zephyr-OT-v1.0"
284+
help
285+
This value represents vendor software version that will be exposed in network diagnostic TLV.

0 commit comments

Comments
 (0)