[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:
Abtin Keshavarzian
2025-07-02 10:25:42 -07:00
committed by GitHub
parent e47122e5bb
commit 1ec9bce267
+8 -4
View File
@@ -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)