mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
fix(bt/bluedroid): fixed stuck sec_state on authention HCI command send failure
Closes SEC-1164
This commit is contained in:
@@ -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)
|
static BOOLEAN btm_sec_start_authentication (tBTM_SEC_DEV_REC *p_dev_rec)
|
||||||
{
|
{
|
||||||
p_dev_rec->sec_state = BTM_SEC_STATE_AUTHENTICATING;
|
if (btsnd_hcic_auth_request (p_dev_rec->hci_handle)) {
|
||||||
|
p_dev_rec->sec_state = BTM_SEC_STATE_AUTHENTICATING;
|
||||||
return (btsnd_hcic_auth_request (p_dev_rec->hci_handle));
|
return TRUE;
|
||||||
|
}
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user