mirror of
https://github.com/espressif/openthread.git
synced 2026-07-29 15:17:47 +00:00
[trel] bugfix for MAC security failure on key sequence change (#9371)
In multi-radio scenarios, any key sequence change currently resets the MAC frame counter for the PHY link over which the first frame (with new keyId and frame counter) is received. Since the neighbor key sequence is already modified, any subsequent frame received over the alternate PHY would have match the neighbor key sequence, but potentially smaller frame counter, which leads to drops due to security failure.
This commit is contained in:
@@ -1603,6 +1603,7 @@ Error Mac::ProcessReceiveSecurity(RxFrame &aFrame, const Address &aSrcAddr, Neig
|
||||
{
|
||||
aNeighbor->SetKeySequence(keySequence);
|
||||
aNeighbor->SetMleFrameCounter(0);
|
||||
aNeighbor->GetLinkFrameCounters().Reset();
|
||||
}
|
||||
|
||||
#if OPENTHREAD_CONFIG_MULTI_RADIO
|
||||
|
||||
Reference in New Issue
Block a user