mirror of
https://github.com/espressif/openthread.git
synced 2026-08-16 23:57:46 +00:00
[mle] do not clear network data on MLE stop (#2590)
This commit changes `Mle:Stop()` so that leader and local network data are not cleared.
This commit is contained in:
committed by
Jonathan Hui
parent
b6763163ab
commit
79c4830c3c
@@ -279,10 +279,6 @@ otError Mle::Stop(bool aClearNetworkDatasets)
|
||||
netif.GetKeyManager().Stop();
|
||||
SetStateDetached();
|
||||
netif.RemoveUnicastAddress(mMeshLocal16);
|
||||
#if OPENTHREAD_ENABLE_BORDER_ROUTER || OPENTHREAD_ENABLE_SERVICE
|
||||
netif.GetNetworkDataLocal().Clear();
|
||||
#endif
|
||||
netif.GetNetworkDataLeader().Clear();
|
||||
|
||||
if (aClearNetworkDatasets)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user