[mpl] update dynamic MPL interval according to new interface (#2739)

This commit is contained in:
Yuzhuo Yang
2018-05-25 13:47:08 -07:00
committed by Jonathan Hui
parent 68d83fbfd9
commit 1a63f5dbe3
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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
+2
View File
@@ -331,6 +331,8 @@ public:
};
explicit RouterTable(Instance &) {}
uint8_t GetNeighborCount(void) const { return 0; }
};
#endif // OPENTHREAD_MTD