openthread cli: set dua feature optional

This commit is contained in:
Xu Si Yu
2023-05-24 18:01:17 +08:00
committed by Shu Chen
parent 77c60765ca
commit dd0afffde3
2 changed files with 10 additions and 1 deletions

View File

@@ -255,4 +255,11 @@ menu "OpenThread"
default n default n
help help
Select this option to set rx on when sleep in CSL feature, only for debug Select this option to set rx on when sleep in CSL feature, only for debug
config OPENTHREAD_DUA_ENABLE
bool "Enable Domain Unicast Address feature"
depends on OPENTHREAD_ENABLED
default n
help
Only used for Thread1.2 certification
endmenu endmenu

View File

@@ -371,6 +371,7 @@
*/ */
#define OPENTHREAD_CONFIG_PING_SENDER_ENABLE 1 #define OPENTHREAD_CONFIG_PING_SENDER_ENABLE 1
#if CONFIG_OPENTHREAD_DUA_ENABLE
/** /**
* @def OPENTHREAD_CONFIG_DUA_ENABLE * @def OPENTHREAD_CONFIG_DUA_ENABLE
* *
@@ -378,8 +379,9 @@
* *
*/ */
#ifndef OPENTHREAD_CONFIG_DUA_ENABLE #ifndef OPENTHREAD_CONFIG_DUA_ENABLE
#define OPENTHREAD_CONFIG_DUA_ENABLE 0 #define OPENTHREAD_CONFIG_DUA_ENABLE 1
#endif #endif
#endif //CONFIG_OPENTHREAD_DUA_ENABLE
/** /**
* @def OPENTHREAD_CONFIG_MLR_ENABLE * @def OPENTHREAD_CONFIG_MLR_ENABLE