This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

WEBENCH® Tools/CC2652P: End-Device receives ZDP-MGMT-Leave-Request in SDK 4.20 .

Part Number: CC2652P
Other Parts Discussed in Thread: Z-STACK

Tool/software: WEBENCH® Design Tools

In z-stack of SDK 4.20, function "ZDO_ProcessMgmtLeaveReq". When a  end device execute this function, it will leave only when this command was generated by its parent-router.  Why it is designed like this? What can be do when a Trust-Center wants a End-Device leaves current network?

  if ( ( ZG_BUILD_ENDDEVICE_TYPE ) && ( ZG_DEVICE_ENDDEVICE_TYPE ) )
  {
    //Only the parent device can request to leave, otherwise silently discard the frame
    if(inMsg->srcAddr.addr.shortAddr != _NIB.nwkCoordAddress)
    {
      return;
    }
  }