[dataset] only master key is needed to attach (#4051)

This commit is contained in:
Jonathan Hui
2019-08-05 09:02:25 -07:00
committed by GitHub
parent 2eab474025
commit af573f5e72
10 changed files with 18 additions and 23 deletions
-2
View File
@@ -405,7 +405,6 @@ otError otThreadSetEnabled(otInstance *aInstance, bool aEnabled)
if (aEnabled)
{
VerifyOrExit(instance.Get<Mac::Mac>().GetPanId() != Mac::kPanIdBroadcast, error = OT_ERROR_INVALID_STATE);
error = instance.Get<Mle::MleRouter>().Start(/* aAnnounceAttach */ false);
}
else
@@ -413,7 +412,6 @@ otError otThreadSetEnabled(otInstance *aInstance, bool aEnabled)
instance.Get<Mle::MleRouter>().Stop(true);
}
exit:
return error;
}