Loading
btm_ble_sec: Reset btm pairing state when returning early from handling SMP_COMPLT_EVT
When SMP pairing fails and the device record is not allocated, handling SMP_COMPLT_EVT will return early without resetting the BTM pairing state to IDLE. Subsequent pairing attempts triggered immediately after the previous failure will fail. Bug: 331682621 Bug: 364321751 Test: m com.android.btservices Test: Manual 1. Power off BLE device after it is displayed in scanning list 2. Trigger pairing to the BLE device from local device. 3. After pairing fail, trigger another paring immediately Change-Id: Ie4d3294a321a436727b70eb6ee2823f79ea585fe