This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

PM_RA_PROTECTION does not reject blacklisted connection

Hi,

I am working on nrf52840 and I am trying to enable the repeated pairing attempt protection. (PM_RA_PROTECTION)
After enabling the module I can see the logs telling me the device trying to pair is blacklisted and removed from blacklist after PM_RA_PROTECTION_MIN_WAIT_INTERVAL.

However, when I try to reconnect with the same device during the time it is blacklisted, the connection is not rejected.
I tried to find in the code where this rejection should be called and it seems the function ast_peer_blacklisted() is not called on connection.

Could someone help me understand how this features works so I can implement it to my project? There seems to be little documentation about it.

Best regards,

Related