mirror of
https://github.com/espressif/openthread.git
synced 2026-09-14 21:20:11 +00:00
ensure first advertisement of REED include the correct Leader Data TLV (#1185)
This commit is contained in:
@@ -2588,13 +2588,13 @@ ThreadError Mle::HandleChildIdResponse(const Message &aMessage, const Ip6::Messa
|
|||||||
}
|
}
|
||||||
|
|
||||||
mParent.mValid.mRloc16 = sourceAddress.GetRloc16();
|
mParent.mValid.mRloc16 = sourceAddress.GetRloc16();
|
||||||
SuccessOrExit(error = SetStateChild(shortAddress.GetRloc16()));
|
|
||||||
|
|
||||||
mNetworkData.SetNetworkData(leaderData.GetDataVersion(), leaderData.GetStableDataVersion(),
|
mNetworkData.SetNetworkData(leaderData.GetDataVersion(), leaderData.GetStableDataVersion(),
|
||||||
(mDeviceMode & ModeTlv::kModeFullNetworkData) == 0,
|
(mDeviceMode & ModeTlv::kModeFullNetworkData) == 0,
|
||||||
networkData.GetNetworkData(), networkData.GetLength());
|
networkData.GetNetworkData(), networkData.GetLength());
|
||||||
|
|
||||||
mNetif.GetActiveDataset().ApplyConfiguration();
|
mNetif.GetActiveDataset().ApplyConfiguration();
|
||||||
|
SuccessOrExit(error = SetStateChild(shortAddress.GetRloc16()));
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user