Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7ed69cff authored by Himanshu Rawat's avatar Himanshu Rawat
Browse files

Avoid unbonding on encryption request failure in peripheral role

In peripheral roles encryption request results in a SMP Security request. SMP may generate SMP_COMPLT_EVT events with failure if it does not see an encryption event or SMP Pairing request within 30 seconds. This event may result in bond removal. This is problematic especially in the following cases:
1) Some devices don't respond to SMP Security requests if the link is already encrypted
2) Link may get disconnected after SMP was asked to send SMP Security request
This change now ensures that SMP_COMPLT_EVT failure event for the above two cases is ignored.

Change-Id: Ibcf0055242970f5354c6127ce908171f89b2b88e
Test: mmm packages/modules/Bluetooth
Flag: com.android.bluetooth.flags.bonded_device_smp_failure_handling
Bug: 384577075
Bug: 385181815
parent 6ce4ed2f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment