mirror of
https://github.com/espressif/openthread.git
synced 2026-09-15 13:40:06 +00:00
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:
committed by
Jonathan Hui
parent
a682a3c541
commit
6f169e9702
@@ -2218,6 +2218,7 @@ ThreadError Mle::HandleLeaderData(const Message &aMessage, const Ip6::MessageInf
|
|||||||
if (mDeviceState == kDeviceStateChild)
|
if (mDeviceState == kDeviceStateChild)
|
||||||
{
|
{
|
||||||
SetLeaderData(leaderData.GetPartitionId(), leaderData.GetWeighting(), leaderData.GetLeaderRouterId());
|
SetLeaderData(leaderData.GetPartitionId(), leaderData.GetWeighting(), leaderData.GetLeaderRouterId());
|
||||||
|
mRetrieveNewNetworkData = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user