mirror of
https://github.com/espressif/openthread.git
synced 2026-10-30 03:03:58 +00:00
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:
@@ -1617,6 +1617,10 @@ ThreadError Mle::SendChildUpdateRequest(void)
|
||||
mNetif.GetMeshForwarder().SetPollPeriod(kAttachDataPollPeriod);
|
||||
mNetif.GetMeshForwarder().SetRxOnWhenIdle(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
mNetif.GetMeshForwarder().SetRxOnWhenIdle(true);
|
||||
}
|
||||
|
||||
exit:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user