Skip to content

Commit cb9dc0d

Browse files
committed
fix(ble/bluedroid): Fixed missing BLE connect and disconnect events
(cherry picked from commit 2dcbd64) Co-authored-by: zhanghaipeng <[email protected]>
1 parent e7ee24c commit cb9dc0d

File tree

1 file changed

+3
-0
lines changed
  • components/bt/host/bluedroid/stack/btm

1 file changed

+3
-0
lines changed

components/bt/host/bluedroid/stack/btm/btm_ble.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1704,6 +1704,9 @@ tBTM_STATUS btm_ble_start_encrypt(BD_ADDR bda, BOOLEAN use_stk, BT_OCTET16 stk)
17041704
#if (SMP_INCLUDED == TRUE)
17051705
void btm_ble_link_encrypted(BD_ADDR bd_addr, UINT8 encr_enable)
17061706
{
1707+
#if BLE_INCLUDED == TRUE
1708+
l2cble_notify_le_connection(bd_addr);
1709+
#endif // BLE_INCLUDED == TRUE
17071710
tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bd_addr);
17081711
BOOLEAN enc_cback;
17091712

0 commit comments

Comments
 (0)