mirror of
https://github.com/espressif/openthread.git
synced 2026-08-13 14:17:47 +00:00
[mle] ignore Child Update Request when detached (#11656)
This commit updates `Mle` to ensure that a device ignores a received "Child Update Request" message if it is currently detached. This prevents the device from sending a "Child Update Response" in this state. This behavior is particularly important when a device is trying to restore its previous role as a router or leader.
This commit is contained in:
@@ -3350,16 +3350,20 @@ exit:
|
||||
|
||||
void Mle::HandleChildUpdateRequest(RxInfo &aRxInfo)
|
||||
{
|
||||
VerifyOrExit(IsAttached());
|
||||
|
||||
#if OPENTHREAD_FTD
|
||||
if (IsRouterOrLeader())
|
||||
{
|
||||
HandleChildUpdateRequestOnParent(aRxInfo);
|
||||
ExitNow();
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
HandleChildUpdateRequestOnChild(aRxInfo);
|
||||
}
|
||||
|
||||
HandleChildUpdateRequestOnChild(aRxInfo);
|
||||
|
||||
exit:
|
||||
return;
|
||||
}
|
||||
|
||||
void Mle::HandleChildUpdateRequestOnChild(RxInfo &aRxInfo)
|
||||
|
||||
Reference in New Issue
Block a user