diff --git a/src/core/net/ip6_mpl.cpp b/src/core/net/ip6_mpl.cpp index 48e365c74..ac750469b 100644 --- a/src/core/net/ip6_mpl.cpp +++ b/src/core/net/ip6_mpl.cpp @@ -172,7 +172,7 @@ void Mpl::AddBufferedMessage(Message &aMessage, uint16_t aSeedId, uint8_t aSeque #if OPENTHREAD_CONFIG_ENABLE_DYNAMIC_MPL_INTERVAL // adjust the first MPL forward interval dynamically according to the network scale uint8_t interval = (kDataMessageInterval / Mle::kMaxRouters) * - GetInstance().GetThreadNetif().GetMle().GetActiveNeighborRouterCount(); + GetInstance().GetThreadNetif().GetMle().GetRouterTable().GetNeighborCount(); #else uint8_t interval = kDataMessageInterval; #endif diff --git a/src/core/thread/router_table.hpp b/src/core/thread/router_table.hpp index 0c37c4235..d4c69d119 100644 --- a/src/core/thread/router_table.hpp +++ b/src/core/thread/router_table.hpp @@ -331,6 +331,8 @@ public: }; explicit RouterTable(Instance &) {} + + uint8_t GetNeighborCount(void) const { return 0; } }; #endif // OPENTHREAD_MTD