mirror of
https://github.com/espressif/openthread.git
synced 2026-06-06 05:24:51 +00:00
e8a52ab654
The previous logic for suppressing CHILD_REMOVED events was flawed. It checked if the neighbor was not in the child table. However, since the callback is triggered after the child is removed, it was always false, leading to false suppression for all removed children. This caused the parent node to never emit "link removed" events to the UI when children detached, leading to inconsistent link states (dashed lines) when only one direction was active. This fix updates the logic to check if a neighbor entry exists in the neighbor table with an established link (kStateValid). This ensures we only suppress the event when the child has successfully transitioned to a router role and established a valid link.