mirror of
https://github.com/espressif/openthread.git
synced 2026-08-06 02:37:47 +00:00
[mle] enter fast poll mode when dequeue delayed MLE Data Request (#3761)
This commit is contained in:
@@ -1840,6 +1840,16 @@ void Mle::HandleDelayedResponseTimer(void)
|
||||
if (SendMessage(*message, delayedResponse.GetDestination()) == OT_ERROR_NONE)
|
||||
{
|
||||
LogMleMessage("Send delayed message", delayedResponse.GetDestination());
|
||||
|
||||
// Here enters fast poll mode, as for Rx-Off-when-idle device, the enqueued msg should
|
||||
// be Mle Data Reqeuest.
|
||||
// Note: Finer-grade check (e.g. message subtype) might be required when deciding whether
|
||||
// or not enters fast poll mode fast poll mode if there are other type of delayed message
|
||||
// for Rx-Off-when-idle device.
|
||||
if (!IsRxOnWhenIdle())
|
||||
{
|
||||
Get<DataPollManager>().SendFastPolls(DataPollManager::kDefaultFastPolls);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user