Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mle] fix updating of
mDataRequestState
for Network Data (openthrea…
…d#10841) This commit updates and fixes how the `mDataRequestState` variable, which controls retransmissions of MLE Data Request messages, is updated. An MLE Data Request message can be sent for different purposes: either to request updated Network Data or to retrieve a Link Metrics Report from a neighbor/parent. The `mDataRequestState` retransmission mechanism is used to handle retx of Data Requests for retrieving Network Data. This commit ensures that the code that updates these variables is moved to `SendDataRequestAfterDelay()` and not in the common version, which can be used for both Network Data and Link Metric Reports. This ensures these states are not incorrectly updated when a Link Metrics Report is retrieved.
- Loading branch information