mirror of
https://github.com/espressif/openthread.git
synced 2026-08-01 00:27:47 +00:00
[mac] prioritize a pending poll tx after handling of frame tx (#4211)
This commit ensures to prioritize a pending poll tx request after handling a (direct) frame tx request. This addresses the situation where back-to-back frame tx requests could have delayed a data poll tx request.
This commit is contained in:
committed by
Jonathan Hui
parent
2dedd82ef3
commit
f29a2f1257
@@ -738,6 +738,13 @@ void Mac::PerformNextOperation(void)
|
||||
{
|
||||
mPendingTransmitDataDirect = false;
|
||||
mOperation = kOperationTransmitDataDirect;
|
||||
|
||||
if (mPendingTransmitPoll)
|
||||
{
|
||||
// Ensure that a pending "transmit poll" operation request
|
||||
// is prioritized over any future "transmit data" requests.
|
||||
mShouldTxPollBeforeData = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (mOperation != kOperationIdle)
|
||||
|
||||
Reference in New Issue
Block a user