LoRaMac-node icon indicating copy to clipboard operation
LoRaMac-node copied to clipboard

LoRaMacCommandsRemoveStickyAnsCmds drops every sticky MAC including MOTE_MAC_REKEY_IND

Open hovercraft-github opened this issue 5 years ago • 0 comments

This is related to the feature/5.0.0 branch where v1.1.1 of protocol implemented. LoRaMacCommands.c: 451 LoRaMacCommandStatus_t LoRaMacCommandsRemoveStickyAnsCmds( void ) This function drops every sticky MAC command from the context, and this happens right after we successfully sent this MAC to uplink, but there are sticky commands which are not answers, removing it in this fashion will violate the protocol and possibly break security, look e.g MOTE_MAC_REKEY_IND. In this case we should wait until the server replies with RekeyConf and repeat sending RekeyInd if it doesn't.

hovercraft-github avatar Jun 18 '20 11:06 hovercraft-github