SMP state machine was resending security request and waiting for a response
when paired over BR-EDR. The state machine state timed out due to this and
SMP failed while doing cross key pairing. Thus, user was asked for pairing
again.
Original author: Priti Aghera <paghera@broadcom.com>
Change-Id: I568f936bb7bee21fb78e8454469ecad3445f026f
if (res == BTM_SUCCESS)
{
+ p_dev_rec->device_type |= BT_DEVICE_TYPE_BLE;
p_dev_rec->sec_state = BTM_SEC_STATE_IDLE;
#if (defined BLE_PRIVACY_SPT && BLE_PRIVACY_SPT == TRUE)
/* add all bonded device into resolving list if IRK is available*/
if (p_cb->role == HCI_ROLE_SLAVE)
{
p_dev_rec->new_encryption_key_is_p256 = FALSE;
- p_cb->cb_evt = SMP_SEC_REQUEST_EVT;
+ /* shortcut to skip Security Grant step */
+ p_cb->cb_evt = SMP_BR_KEYS_REQ_EVT;
}
else /* Master receives pairing response */
{