[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:
Abtin Keshavarzian
2019-09-27 10:19:43 -07:00
committed by Jonathan Hui
parent 2dedd82ef3
commit f29a2f1257
+7
View File
@@ -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)