[indirect-sender] reset CSL Tx attempts in DataPollHandler (#8455)

Fix an issue in which a CSL Transmitter would start to send malformed
frames to the radio in the ocassion of a data poll arriving while a
delayed CSL transmission was already scheduled.

Notice that `CslTxScheduler::HandleSentFrame` is reseting both CSL Tx
attempts and Indirect Tx attempts, so it makes sense to do the same
in `DataPollHandler::HandleSentFrame`.
This commit is contained in:
Eduardo Montoya
2022-11-29 10:19:14 -08:00
committed by GitHub
parent 1b88b045d0
commit 45c2cb4332
+3
View File
@@ -240,6 +240,9 @@ void DataPollHandler::HandleSentFrame(const Mac::TxFrame &aFrame, Error aError,
{
case kErrorNone:
aChild.ResetIndirectTxAttempts();
#if OPENTHREAD_CONFIG_MAC_CSL_TRANSMITTER_ENABLE
aChild.ResetCslTxAttempts();
#endif
aChild.SetFrameReplacePending(false);
break;