mirror of
https://github.com/espressif/openthread.git
synced 2026-09-01 23:09:53 +00:00
[mle] allow to use GetChildInfo method on restored children (#2353)
This commit is contained in:
committed by
Jonathan Hui
parent
134071d814
commit
bae14a9ee9
@@ -3748,7 +3748,7 @@ otError MleRouter::GetChildInfo(Child &aChild, otChildInfo &aChildInfo)
|
||||
{
|
||||
otError error = OT_ERROR_NONE;
|
||||
|
||||
VerifyOrExit(aChild.GetState() == Neighbor::kStateValid, error = OT_ERROR_NOT_FOUND);
|
||||
VerifyOrExit(aChild.IsStateValidOrRestoring(), error = OT_ERROR_NOT_FOUND);
|
||||
|
||||
memset(&aChildInfo, 0, sizeof(aChildInfo));
|
||||
memcpy(&aChildInfo.mExtAddress, &aChild.GetExtAddress(), sizeof(aChildInfo.mExtAddress));
|
||||
|
||||
Reference in New Issue
Block a user