ensure first advertisement of REED include the correct Leader Data TLV (#1185)

This commit is contained in:
rongli
2017-01-22 04:43:28 -08:00
committed by Jonathan Hui
parent ac04542ba4
commit ff45ea430c
+1 -1
View File
@@ -2588,13 +2588,13 @@ ThreadError Mle::HandleChildIdResponse(const Message &aMessage, const Ip6::Messa
}
mParent.mValid.mRloc16 = sourceAddress.GetRloc16();
SuccessOrExit(error = SetStateChild(shortAddress.GetRloc16()));
mNetworkData.SetNetworkData(leaderData.GetDataVersion(), leaderData.GetStableDataVersion(),
(mDeviceMode & ModeTlv::kModeFullNetworkData) == 0,
networkData.GetNetworkData(), networkData.GetLength());
mNetif.GetActiveDataset().ApplyConfiguration();
SuccessOrExit(error = SetStateChild(shortAddress.GetRloc16()));
exit: