Hi,
I'm having a pairing issue with nRF54L15 (Zephyr-based project) and I’m not sure if this is a security configuration problem or something related to bonding persistence.
My application requires BT_SECURITY_L2 to accept pairing. However, in some cases pairing fails with: BT_SECURITY_ERR_UNSPECIFIED (error 9)
From the logs it looks like the stack sometimes attempts to negotiate BT_SECURITY_L1, even though the application explicitly requires BT_SECURITY_L2.
What I’ve observed:
- When using a Samsung S21 Ultra, the issue happens every time if I kill my app and then try to reconnect.
- With other Android devices, the issue happens randomly - sometimes pairing works perfectly, other times it fails.
- I’ve already checked some related tickets, but none of the suggested fixes solved my issue.
Questions:
- Under what main conditions would a device attempt to negotiate BT_SECURITY_L1 instead of the required BT_SECURITY_L2?
- Why does this issue appear to happen randomly? Is there a specific scenario or state transition that could trigger this behavior?
If useful, I can share relevant code. Thank you for any guidance.