diff --git a/components/bt/controller/lib b/components/bt/controller/lib index 3adb056b8a..41866ca55b 160000 --- a/components/bt/controller/lib +++ b/components/bt/controller/lib @@ -1 +1 @@ -Subproject commit 3adb056b8ae4f67e929a6ba7ea1d918fec02aeaf +Subproject commit 41866ca55b805f947fc9b6fe565ca2b6eff3709a diff --git a/components/bt/host/bluedroid/stack/btm/btm_ble_gap.c b/components/bt/host/bluedroid/stack/btm/btm_ble_gap.c index 5fdc2c6e20..59827779eb 100644 --- a/components/bt/host/bluedroid/stack/btm/btm_ble_gap.c +++ b/components/bt/host/bluedroid/stack/btm/btm_ble_gap.c @@ -860,6 +860,8 @@ BOOLEAN BTM_BleConfigPrivacy(BOOLEAN privacy_mode, tBTM_SET_LOCAL_PRIVACY_CBACK (*random_cb->set_local_privacy_cback)(BTM_SET_PRIVACY_SUCCESS); random_cb->set_local_privacy_cback = NULL; } + //Disable RPA function + btsnd_hcic_ble_set_addr_resolution_enable(FALSE); } else { /* privacy is turned on*/ /* always set host random address, used when privacy 1.1 or priavcy 1.2 is disabled */ btm_gen_resolvable_private_addr((void *)btm_gen_resolve_paddr_low); @@ -878,6 +880,7 @@ BOOLEAN BTM_BleConfigPrivacy(BOOLEAN privacy_mode, tBTM_SET_LOCAL_PRIVACY_CBACK } else { /* 4.1/4.0 controller */ p_cb->privacy_mode = BTM_PRIVACY_1_1; } + btsnd_hcic_ble_set_addr_resolution_enable(TRUE); } #if (defined(GAP_INCLUDED) && GAP_INCLUDED == TRUE && GATTS_INCLUDED == TRUE)