fix(bt/bluedroid): fixed stuck sec_state on authention HCI command send failure

Closes SEC-1164
This commit is contained in:
Jin Cheng
2026-07-02 19:51:06 +08:00
parent 5d136bf113
commit 5ba5b3bc0b

View File

@@ -5453,9 +5453,11 @@ static BOOLEAN btm_sec_start_get_name (tBTM_SEC_DEV_REC *p_dev_rec)
*******************************************************************************/
static BOOLEAN btm_sec_start_authentication (tBTM_SEC_DEV_REC *p_dev_rec)
{
p_dev_rec->sec_state = BTM_SEC_STATE_AUTHENTICATING;
return (btsnd_hcic_auth_request (p_dev_rec->hci_handle));
if (btsnd_hcic_auth_request (p_dev_rec->hci_handle)) {
p_dev_rec->sec_state = BTM_SEC_STATE_AUTHENTICATING;
return TRUE;
}
return FALSE;
}
/*******************************************************************************