mirror of
https://github.com/espressif/openthread.git
synced 2026-10-06 07:47:41 +00:00
[border-router] make RxRaTracker handle netdata events directly (#12016)
This change makes the `RxRaTracker` a direct listener of network data change events from the `Notifier`. Previously, the `RoutingManager` would receive the network data change event and then call `RxRaTracker::HandleNetDataChange()`. This created an unnecessary dependency between the two components. By making `RxRaTracker` a direct listener, we decouple it from `RoutingManager`. The `HandleNetDataChange()` method in `RxRaTracker` is also made private as it is now only called from within the class.
This commit is contained in:
@@ -161,6 +161,7 @@ void Notifier::EmitEvents(void)
|
||||
Get<Extension::ExtensionBase>().HandleNotifierEvents(events);
|
||||
#endif
|
||||
#if OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE
|
||||
Get<BorderRouter::RxRaTracker>().HandleNotifierEvents(events);
|
||||
Get<BorderRouter::RoutingManager>().HandleNotifierEvents(events);
|
||||
#if OPENTHREAD_CONFIG_BORDER_ROUTING_TRACK_PEER_BR_INFO_ENABLE
|
||||
Get<BorderRouter::NetDataBrTracker>().HandleNotifierEvents(events);
|
||||
|
||||
Reference in New Issue
Block a user