mirror of
https://github.com/espressif/openthread.git
synced 2026-09-22 00:47:42 +00:00
Only send one Child Update Request when restoring rx-on-when-idle child. (#1821)
This commit is contained in:
@@ -2856,6 +2856,12 @@ otError MleRouter::SendChildUpdateRequest(Child *aChild)
|
||||
destination.SetIid(aChild->GetExtAddress());
|
||||
SuccessOrExit(error = SendMessage(*message, destination));
|
||||
|
||||
if (aChild->IsRxOnWhenIdle())
|
||||
{
|
||||
// only try to send a single Child Update Request message to an rx-on-when-idle child
|
||||
aChild->SetState(Child::kStateChildUpdateRequest);
|
||||
}
|
||||
|
||||
otLogInfoMle(GetInstance(), "Sent Child Update Request to child");
|
||||
|
||||
exit:
|
||||
|
||||
Reference in New Issue
Block a user