mirror of
https://github.com/espressif/openthread.git
synced 2026-08-31 14:29:54 +00:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user