From 354e6c18dc2055f250445a8be4ab41c0458114e2 Mon Sep 17 00:00:00 2001 From: Zhang Hai Peng Date: Fri, 21 Nov 2025 21:53:22 +0800 Subject: [PATCH] fix(ble/bluedroid): Fixed missing BLE connect and disconnect events (cherry picked from commit 2dcbd64616a27668e6f2f7083681452b36091b24) Co-authored-by: zhanghaipeng --- components/bt/host/bluedroid/stack/btm/btm_ble.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/bt/host/bluedroid/stack/btm/btm_ble.c b/components/bt/host/bluedroid/stack/btm/btm_ble.c index da8137e432..454ebc722e 100644 --- a/components/bt/host/bluedroid/stack/btm/btm_ble.c +++ b/components/bt/host/bluedroid/stack/btm/btm_ble.c @@ -1704,6 +1704,9 @@ tBTM_STATUS btm_ble_start_encrypt(BD_ADDR bda, BOOLEAN use_stk, BT_OCTET16 stk) #if (SMP_INCLUDED == TRUE) void btm_ble_link_encrypted(BD_ADDR bd_addr, UINT8 encr_enable) { +#if BLE_INCLUDED == TRUE + l2cble_notify_le_connection(bd_addr); +#endif // BLE_INCLUDED == TRUE tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bd_addr); BOOLEAN enc_cback;