From 866bf3fb3aa2a93294b86973fb152cf6539b3864 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Mon, 16 Jan 2017 20:19:10 -0800 Subject: [PATCH] Only send empty Data Frame if radio source match is disabled. (#1160) --- src/core/thread/mesh_forwarder.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/thread/mesh_forwarder.cpp b/src/core/thread/mesh_forwarder.cpp index 8d88bca85..06a5263da 100644 --- a/src/core/thread/mesh_forwarder.cpp +++ b/src/core/thread/mesh_forwarder.cpp @@ -1923,7 +1923,10 @@ void MeshForwarder::HandleDataRequest(const Mac::Address &aMacSource, const Thre child->mLastHeard = Timer::GetNow(); child->mLinkFailures = 0; - child->mDataRequest = true; + if (!mSrcMatchEnabled || child->mQueuedIndirectMessageCnt > 0) + { + child->mDataRequest = true; + } mScheduleTransmissionTask.Post();