[bbr] allow lower MLR Timeout for reference device (#7235)

Thread Certification test plan requires that the reference device
configures a MLR Timeout lower than the allowed by the specification.
This commit is contained in:
Eduardo Montoya
2021-12-18 15:33:44 -08:00
committed by GitHub
parent 686c0de5fa
commit a8eeb231d0
+2
View File
@@ -130,8 +130,10 @@ Error Local::SetConfig(const BackboneRouterConfig &aConfig)
Error error = kErrorNone;
bool update = false;
#if !OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE
VerifyOrExit(aConfig.mMlrTimeout >= Mle::kMlrTimeoutMin && aConfig.mMlrTimeout <= Mle::kMlrTimeoutMax,
error = kErrorInvalidArgs);
#endif
// Validate configuration according to Thread 1.2.1 Specification 5.21.3.3:
// "The Reregistration Delay in seconds MUST be lower than (0.5 * MLR Timeout). It MUST be at least 1."
VerifyOrExit(aConfig.mReregistrationDelay >= 1, error = kErrorInvalidArgs);