openthread / ot-nrf528xx

OpenThread on Nordic nRF528xx examples.
https://openthread.io/
BSD 3-Clause "New" or "Revised" License
62 stars 59 forks source link

[radio] fix for key rotation in enhAck #879

Closed pkwiek closed 2 weeks ago

pkwiek commented 2 weeks ago

Not all devices do the key rotation at the same time. This scenario fixes the issue when Router rotates sooner than SSED. In such case SSED still requires enhAcks to use previous key id and counter. Added storing last value of FC when keyId changes. If SSED uses keyId-1 ack uses the stored value instead of current mac counter value.

Please see openthread/openthread#6688