You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bluetooth: Mesh: Make network msg cache netkey aware
Improve the network message cache to be aware of network keys to
prevent false duplicate detection across different subnets. This
ensures that messages with the same source address and sequence
number but from different network keys are not incorrectly
identified as duplicates, as it can happen in certain cases.
See ES-27446.
The approach uses credential pointer which never changes during runtime
of the node as a proxy for netkey identification. This approach is
simplified but still solves the need and avoids major changes
to msg_cache_add() function as NID/NetKey index information is not
sufficiently unambiguous at the time when this API is called. Because
the information is hidden in two sub[] arrays within rx context and
to decipher this info (to arrive at correct NID/NetKey) you will need
several checks to figure out which state of the key refresh procedure
is active, and which friendship/LPN function is active, and exactly
which credential is being used.
Signed-off-by: Omkar Kulkarni <omkar.kulkarni@nordicsemi.no>
0 commit comments