mirror of
https://github.com/espressif/openthread.git
synced 2026-08-05 18:37:45 +00:00
[mle] set router's Thread version in Link Accept handler (#6166)
Issue: Information regarding a neighbor's Thread version is lost. Context: This problem can be observed during playing with Link Metrics - few methods check whenever chosen neighbor supports Thread 1.2. This information is preserved when a child is promoted to the router role, but after the reset and Link Request - Link Accept sequence it is not stored in the neighbor table.
This commit is contained in:
@@ -948,6 +948,7 @@ otError MleRouter::HandleLinkAccept(const Message & aMessage,
|
||||
router->SetLinkAckFrameCounter(linkFrameCounter);
|
||||
router->SetMleFrameCounter(mleFrameCounter);
|
||||
router->SetLastHeard(TimerMilli::GetNow());
|
||||
router->SetVersion(static_cast<uint8_t>(version));
|
||||
router->SetDeviceMode(DeviceMode(DeviceMode::kModeFullThreadDevice | DeviceMode::kModeRxOnWhenIdle |
|
||||
DeviceMode::kModeFullNetworkData));
|
||||
router->GetLinkInfo().Clear();
|
||||
|
||||
Reference in New Issue
Block a user