[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:
Abtin Keshavarzian
2018-02-27 14:16:21 +00:00
committed by Jonathan Hui
parent b6763163ab
commit 79c4830c3c
-4
View File
@@ -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)
{