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
Loading
Please register or sign in to comment