mirror of
https://github.com/espressif/openthread.git
synced 2026-08-10 20:57:47 +00:00
[mle] allow setting router eligible attr to false for MTD (#4450)
This commit is contained in:
committed by
Jonathan Hui
parent
aa9a45d212
commit
77ae260c77
@@ -106,7 +106,7 @@ otError MleRouter::SetRouterEligible(bool aEligible)
|
||||
{
|
||||
otError error = OT_ERROR_NONE;
|
||||
|
||||
VerifyOrExit(IsFullThreadDevice(), error = OT_ERROR_NOT_CAPABLE);
|
||||
VerifyOrExit(IsFullThreadDevice() || !aEligible, error = OT_ERROR_NOT_CAPABLE);
|
||||
|
||||
mRouterEligible = aEligible;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user