mle: Set mRetrieveNewNetworkData to true when LeaderData is updated (#1265)

This change ensures that the flag `mRetrieveNewNetworkData` is set to
`true` when the `LeaderData` is updated to accept the next received
network data without version check.

This addresses an issue where after updating the `mLeaderData`
(e.g., from a "ChildUpdateResponse" message not containing the active
dataset), and requesting (from `SendDataRequest()`) and receiving the
network data, `mRetrieveNewNetworkData` could remain `false` and
cause the network data not to be updated locally.
This commit is contained in:
Abtin Keshavarzian
2017-02-06 18:35:48 -08:00
committed by Jonathan Hui
parent a682a3c541
commit 6f169e9702
+1
View File
@@ -2218,6 +2218,7 @@ ThreadError Mle::HandleLeaderData(const Message &aMessage, const Ip6::MessageInf
if (mDeviceState == kDeviceStateChild)
{
SetLeaderData(leaderData.GetPartitionId(), leaderData.GetWeighting(), leaderData.GetLeaderRouterId());
mRetrieveNewNetworkData = true;
}
else
{