From 5e337a1ed292112aeeb28200def48f35c60e9e40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hubert=20Mi=C5=9B?= Date: Tue, 14 Feb 2017 18:40:09 +0100 Subject: [PATCH] Enable rx-on-when-idle on MeshForwarder just after notifying parent about mode change. (#1318) There was an issue when SED changed mode to MED. It could not receive Child Update Response (sent directly by the parent) because MeshForwarder and MAC layers were still in rx-off-when-idle mode. --- src/core/thread/mle.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/thread/mle.cpp b/src/core/thread/mle.cpp index 3d347b050..f77feb097 100644 --- a/src/core/thread/mle.cpp +++ b/src/core/thread/mle.cpp @@ -1617,6 +1617,10 @@ ThreadError Mle::SendChildUpdateRequest(void) mNetif.GetMeshForwarder().SetPollPeriod(kAttachDataPollPeriod); mNetif.GetMeshForwarder().SetRxOnWhenIdle(false); } + else + { + mNetif.GetMeshForwarder().SetRxOnWhenIdle(true); + } exit: