mirror of
https://github.com/espressif/openthread.git
synced 2026-08-29 21:39:54 +00:00
[mpl] update dynamic MPL interval according to new interface (#2739)
This commit is contained in:
committed by
Jonathan Hui
parent
68d83fbfd9
commit
1a63f5dbe3
@@ -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
|
||||
|
||||
@@ -331,6 +331,8 @@ public:
|
||||
};
|
||||
|
||||
explicit RouterTable(Instance &) {}
|
||||
|
||||
uint8_t GetNeighborCount(void) const { return 0; }
|
||||
};
|
||||
|
||||
#endif // OPENTHREAD_MTD
|
||||
|
||||
Reference in New Issue
Block a user