mirror of
https://github.com/espressif/esp-idf
synced 2025-04-10 00:30:10 -04:00
update con state when getting connection cancle complete
This commit is contained in:
parent
3ebcb25fb1
commit
34e8265821
@ -2032,6 +2032,30 @@ void btm_ble_create_ll_conn_complete (UINT8 status)
|
|||||||
btm_ble_update_mode_operation(HCI_ROLE_UNKNOWN, NULL, status);
|
btm_ble_update_mode_operation(HCI_ROLE_UNKNOWN, NULL, status);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************
|
||||||
|
** Function btm_ble_create_conn_cancel_complete
|
||||||
|
**
|
||||||
|
** Description LE connection cancel complete.
|
||||||
|
**
|
||||||
|
******************************************************************************/
|
||||||
|
void btm_ble_create_conn_cancel_complete (UINT8 *p)
|
||||||
|
{
|
||||||
|
UINT8 status;
|
||||||
|
|
||||||
|
STREAM_TO_UINT8 (status, p);
|
||||||
|
|
||||||
|
switch (status) {
|
||||||
|
case HCI_SUCCESS:
|
||||||
|
if (btm_ble_get_conn_st() == BLE_CONN_CANCEL) {
|
||||||
|
btm_ble_set_conn_st (BLE_CONN_IDLE);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
** Function btm_proc_smp_cback
|
** Function btm_proc_smp_cback
|
||||||
**
|
**
|
||||||
|
@ -403,6 +403,7 @@ tBTM_STATUS btm_ble_start_adv(void);
|
|||||||
tBTM_STATUS btm_ble_stop_adv(void);
|
tBTM_STATUS btm_ble_stop_adv(void);
|
||||||
tBTM_STATUS btm_ble_start_scan(void);
|
tBTM_STATUS btm_ble_start_scan(void);
|
||||||
void btm_ble_create_ll_conn_complete (UINT8 status);
|
void btm_ble_create_ll_conn_complete (UINT8 status);
|
||||||
|
void btm_ble_create_conn_cancel_complete (UINT8 *p);
|
||||||
|
|
||||||
/* LE security function from btm_sec.c */
|
/* LE security function from btm_sec.c */
|
||||||
#if SMP_INCLUDED == TRUE
|
#if SMP_INCLUDED == TRUE
|
||||||
|
@ -981,6 +981,9 @@ static void btu_hcif_hdl_command_complete (UINT16 opcode, UINT8 *p, UINT16 evt_l
|
|||||||
case HCI_BLE_TEST_END:
|
case HCI_BLE_TEST_END:
|
||||||
btm_ble_test_command_complete(p);
|
btm_ble_test_command_complete(p);
|
||||||
break;
|
break;
|
||||||
|
case HCI_BLE_CREATE_CONN_CANCEL:
|
||||||
|
btm_ble_create_conn_cancel_complete(p);
|
||||||
|
break;
|
||||||
|
|
||||||
#if (defined BLE_PRIVACY_SPT && BLE_PRIVACY_SPT == TRUE)
|
#if (defined BLE_PRIVACY_SPT && BLE_PRIVACY_SPT == TRUE)
|
||||||
case HCI_BLE_ADD_DEV_RESOLVING_LIST:
|
case HCI_BLE_ADD_DEV_RESOLVING_LIST:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user