[BLE] Can't re-pair and re-bond a previously bonded device when bonding information is lost on the smartphone
Hi,
I am building a BLE application using Zephyr v3.7.0 and nucleo_wba55cg evaluation board. I have currently implemented the accept list functionality where only paired and bonded devices can connect in accept list adv mode.
However, I struggle with the bond deletion scenarios; below you can find the test steps to reciprocate the scenario:
- Enable pairable adv mode on the peripheral side, and then connect, pair and bond a smartphone
- Delete the stored bond on the smartphone side
- Enable again pairable mode on the peripheral with an intention to re-bond the smartphone that has been bonded in step 1
In step 3, I am not able to re-pair and re-bond the same smartphone that has been bonded once before (essentially, the peripheral device retains the bond but still bonding is not possible)
Note:
- In my project, I also delete the bond information on the peripheral side in the security callback in case the encryption of the connection is insufficient
