diff --git a/script/check-simulation-build-autotools b/script/check-simulation-build-autotools index 641218a5c..c83238eaf 100755 --- a/script/check-simulation-build-autotools +++ b/script/check-simulation-build-autotools @@ -88,6 +88,7 @@ build_all_features() "-DOPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE=1" "-DOPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE=1" "-DOPENTHREAD_CONFIG_DUA_ENABLE=1" + "-DOPENTHREAD_CONFIG_MLR_ENABLE=1" ) export CPPFLAGS="${options[*]} -DOPENTHREAD_CONFIG_LOG_LEVEL=OT_LOG_LEVEL_NONE" diff --git a/script/check-simulation-build-cmake b/script/check-simulation-build-cmake index 84ab2b592..44859d753 100755 --- a/script/check-simulation-build-cmake +++ b/script/check-simulation-build-cmake @@ -38,14 +38,25 @@ reset_source() build_all_features() { + # Build Thread 1.1 with full features reset_source "$(dirname "$0")"/cmake-build simulation + + # Build Thread 1.2 with full features reset_source - "$(dirname "$0")"/cmake-build simulation -DOT_OTNS=ON -DOT_SIMULATION_VIRTUAL_TIME=ON - reset_source - "$(dirname "$0")"/cmake-build simulation -DOT_OTNS=ON -DOT_SIMULATION_VIRTUAL_TIME=ON -DOT_ASSERT=OFF + "$(dirname "$0")"/cmake-build simulation -DOT_OTNS=ON -DOT_SIMULATION_VIRTUAL_TIME=ON -DOT_THREAD_VERSION=1.2 -DOT_DUA=ON -DOT_MLR=ON -DOT_BACKBONE_ROUTER=ON -DOT_CSL_RECEIVER=ON + + # Build with Vendor Extension reset_source "$(dirname "$0")"/cmake-build simulation -DOT_VENDOR_EXTENSION=../../src/core/common/extension_example.cpp + + # Build Thread 1.2 with no additional features + reset_source + "$(dirname "$0")"/cmake-build simulation -DOT_THREAD_VERSION=1.2 + + # Build Thread 1.2 with full features and OT_ASSERT=OFF + reset_source + "$(dirname "$0")"/cmake-build simulation -DOT_OTNS=ON -DOT_SIMULATION_VIRTUAL_TIME=ON -DOT_THREAD_VERSION=1.2 -DOT_DUA=ON -DOT_MLR=ON -DOT_BACKBONE_ROUTER=ON -DOT_CSL_RECEIVER=ON -DOT_ASSERT=OFF } build_toranj() diff --git a/src/core/thread/dua_manager.cpp b/src/core/thread/dua_manager.cpp index 4a5bcece8..baf12386c 100644 --- a/src/core/thread/dua_manager.cpp +++ b/src/core/thread/dua_manager.cpp @@ -336,10 +336,10 @@ void DuaManager::HandleTimeTick(void) { bool attempt = false; +#if OPENTHREAD_CONFIG_DUA_ENABLE otLogDebgDua("regdelay %d, reregdelay %d, checkdelay %d", mDelay.mFields.mRegistrationDelay, mDelay.mFields.mReregistrationDelay, mDelay.mFields.mCheckDelay); -#if OPENTHREAD_CONFIG_DUA_ENABLE if (mDuaState != kNotExist && TimerMilli::GetNow() > mLastRegistrationTime + Mle::kDuaDadPeriod) { mDomainUnicastAddress.mPreferred = true; @@ -349,6 +349,8 @@ void DuaManager::HandleTimeTick(void) { attempt = true; } +#else + otLogDebgDua("reregdelay %d, checkdelay %d", mDelay.mFields.mReregistrationDelay, mDelay.mFields.mCheckDelay); #endif if ((mDelay.mFields.mCheckDelay > 0) && (--mDelay.mFields.mCheckDelay == 0))