[mesh-forwarder] add log for retry attempts of indirect tx to sleepy nodes (#3151)

This commit is contained in:
Abtin Keshavarzian
2018-10-12 22:19:06 -07:00
committed by Jonathan Hui
parent 3ef4641b36
commit 9bf8d8169a
+4
View File
@@ -623,6 +623,10 @@ void MeshForwarder::HandleSentFrameToChild(const Mac::Frame &aFrame, otError aEr
case OT_ERROR_CHANNEL_ACCESS_FAILURE:
case OT_ERROR_ABORT:
otLogInfoMac(GetInstance(), "Indirect tx to child %04x failed, attempt %d/%d, error:%s", child->GetRloc16(),
child->GetIndirectTxAttempts(), kMaxPollTriggeredTxAttempts, otThreadErrorToString(aError));
if (child->GetIndirectTxAttempts() < kMaxPollTriggeredTxAttempts)
{
// We save the frame counter, key id, and data sequence number of