mirror of
https://github.com/espressif/openthread.git
synced 2026-09-06 09:10:04 +00:00
[router-table] fix router next hop change on Release(aRouterId) (#8433)
This commit is contained in:
@@ -291,7 +291,7 @@ Error RouterTable::Release(uint8_t aRouterId)
|
||||
|
||||
for (router = GetFirstEntry(); router != nullptr; router = GetNextEntry(router))
|
||||
{
|
||||
if (router->GetNextHop() == rloc16)
|
||||
if (router->GetNextHop() == aRouterId)
|
||||
{
|
||||
router->SetNextHop(Mle::kInvalidRouterId);
|
||||
router->SetCost(0);
|
||||
|
||||
Reference in New Issue
Block a user