Other Parts Discussed in Thread: Z-STACK
I am working with the z-stack 3.0.1 in a cc2538 as ZC and I have a question about the rejoins. I would like the ZC to follow the following policy about the rejoins:
-Secured Rejoin: When a device does a secured rejoin to allow it to rejoin the network (normal behaviour).
-Unsecured Rejoin: Do not let a device rejoins the network without the network key. When I say "Dont let" I mean dont send the device the network key. Here is when my problem comes because when a device performs a unsecured rejoin the ZC sends it a Leave command with rejoin field set to False, so the device is removed from the network forever (In the z-stack 1.2 the ZC sent the Leave with the rejoin to 1, allowing the device retry to do a secured rejoin a therefore join the network successfully).
At present, I have managed to not remove the device when performs a unsecured rejoin through a ZR beacuse I have commented the calls to APSME_RemoveDeviceReq( &remDevReq ) in the ZDSecMgrDeviceRemove function. But when the unsecured rejoin is directly to the ZC the device is removed.
I know that exist a variable on the code called zgAllowRejoins which I have set by default because dont want a device can rejoin without security.
Is there any way to got this for example changing any part of the code in the firmware?
Regards.