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.
This commit is contained in:
Hubert Miś
2017-02-14 09:40:09 -08:00
committed by Jonathan Hui
parent 8b2265bd42
commit 5e337a1ed2
+4
View File
@@ -1617,6 +1617,10 @@ ThreadError Mle::SendChildUpdateRequest(void)
mNetif.GetMeshForwarder().SetPollPeriod(kAttachDataPollPeriod);
mNetif.GetMeshForwarder().SetRxOnWhenIdle(false);
}
else
{
mNetif.GetMeshForwarder().SetRxOnWhenIdle(true);
}
exit: