mirror of
https://github.com/espressif/openthread.git
synced 2026-07-31 08:07:47 +00:00
[mle] fix reattach attempts after reset (#1995)
This commit is contained in:
@@ -481,7 +481,11 @@ otError Mle::BecomeDetached(void)
|
||||
|
||||
VerifyOrExit(mRole != OT_DEVICE_ROLE_DISABLED, error = OT_ERROR_INVALID_STATE);
|
||||
|
||||
netif.GetPendingDataset().HandleDetach();
|
||||
// not in reattach stage after reset
|
||||
if (mReattachState == kReattachStop)
|
||||
{
|
||||
netif.GetPendingDataset().HandleDetach();
|
||||
}
|
||||
|
||||
SetStateDetached();
|
||||
SetRloc16(Mac::kShortAddrInvalid);
|
||||
|
||||
Reference in New Issue
Block a user