mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +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)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user