From 61b1a4b7b89bcfb45ea3cd2393622321f3e5909e Mon Sep 17 00:00:00 2001 From: zwj Date: Fri, 11 Dec 2020 11:57:27 +0800 Subject: [PATCH] fix bluedroid repair faild if the two most significant bits of public address is '01' --- components/bt/host/bluedroid/stack/btm/btm_ble.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/bt/host/bluedroid/stack/btm/btm_ble.c b/components/bt/host/bluedroid/stack/btm/btm_ble.c index dd50732864..3205df4d60 100644 --- a/components/bt/host/bluedroid/stack/btm/btm_ble.c +++ b/components/bt/host/bluedroid/stack/btm/btm_ble.c @@ -2003,9 +2003,9 @@ void btm_ble_conn_complete(UINT8 *p, UINT16 evt_len, BOOLEAN enhanced) * slave or master*/ #if CONTROLLER_RPA_LIST_ENABLE - if (!match && role == HCI_ROLE_SLAVE && BTM_BLE_IS_RESOLVE_BDA(bda)) { + if (!match && role == HCI_ROLE_SLAVE && bda_type != BLE_ADDR_PUBLIC && BTM_BLE_IS_RESOLVE_BDA(bda)) { #else - if (!match && BTM_BLE_IS_RESOLVE_BDA(bda)) { + if (!match && bda_type != BLE_ADDR_PUBLIC && BTM_BLE_IS_RESOLVE_BDA(bda)) { #endif // save the enhanced value to used in btm_ble_resolve_random_addr_on_conn_cmpl func. temp_enhanced = enhanced;