[mle] set rx-on-when-idle when stopping Thread (#2558)

This commit is contained in:
Jonathan Hui
2018-02-14 17:04:29 +00:00
committed by GitHub
parent 4207f41f91
commit db4759cc41
3 changed files with 1 additions and 16 deletions
-9
View File
@@ -396,15 +396,6 @@ exit:
return error;
}
void MeshForwarder::SetRxOff(void)
{
ThreadNetif &netif = GetNetif();
netif.GetMac().SetRxOnWhenIdle(false);
mDataPollManager.StopPolling();
netif.GetSupervisionListener().Stop();
}
bool MeshForwarder::GetRxOnWhenIdle(void)
{
return GetNetif().GetMac().GetRxOnWhenIdle();
-6
View File
@@ -119,12 +119,6 @@ public:
*/
void HandleResolved(const Ip6::Address &aEid, otError aError);
/**
* This method sets the radio receiver and polling timer off.
*
*/
void SetRxOff(void);
/**
* This method indicates whether or not rx-on-when-idle mode is enabled.
*
+1 -1
View File
@@ -598,7 +598,7 @@ otError Mle::SetStateDetached(void)
mParentRequestState = kParentIdle;
mParentRequestTimer.Stop();
mChildUpdateRequestTimer.Stop();
netif.GetMeshForwarder().SetRxOff();
netif.GetMeshForwarder().SetRxOnWhenIdle(true);
netif.GetMac().SetBeaconEnabled(false);
netif.GetMle().HandleDetachStart();
netif.GetIp6().SetForwardingEnabled(false);