From 1f4d3ac30a4029fb80cb07d021e9662de249cdef Mon Sep 17 00:00:00 2001 From: zhiweijian Date: Mon, 22 Feb 2021 14:54:01 +0800 Subject: [PATCH] fix bluedroid repair faild if the two most significant bits of public address is '01' --- components/bt/bluedroid/stack/btm/btm_ble.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bt/bluedroid/stack/btm/btm_ble.c b/components/bt/bluedroid/stack/btm/btm_ble.c index db3d75119e..356c02bd15 100644 --- a/components/bt/bluedroid/stack/btm/btm_ble.c +++ b/components/bt/bluedroid/stack/btm/btm_ble.c @@ -1961,7 +1961,7 @@ void btm_ble_conn_complete(UINT8 *p, UINT16 evt_len, BOOLEAN enhanced) * slave or master*/ /* if (!match && role == HCI_ROLE_SLAVE && BTM_BLE_IS_RESOLVE_BDA(bda)) { */ - if (!match && BTM_BLE_IS_RESOLVE_BDA(bda)) { + if (!match && bda_type != BLE_ADDR_PUBLIC && BTM_BLE_IS_RESOLVE_BDA(bda)) { // save the enhanced value to used in btm_ble_resolve_random_addr_on_conn_cmpl func. temp_enhanced = enhanced; btm_ble_resolve_random_addr(bda, btm_ble_resolve_random_addr_on_conn_cmpl, p_data);