Loading system/stack/btm/btm_ble_privacy.cc +18 −0 Original line number Diff line number Diff line Loading @@ -488,6 +488,10 @@ void btm_ble_clear_resolving_list(void) { * ******************************************************************************/ bool btm_ble_read_resolving_list_entry(tBTM_SEC_DEV_REC* p_dev_rec) { if (btm_cb.ble_ctr_cb.privacy_mode < BTM_PRIVACY_1_2) { LOG_DEBUG("Privacy 1.2 is not enabled"); return false; } if (!(p_dev_rec->ble.in_controller_list & BTM_RESOLVING_LIST_BIT)) { LOG_INFO("%s Unable to read resolving list entry as resolving bit not set", __func__); Loading Loading @@ -540,6 +544,10 @@ static bool is_peer_identity_key_valid(const tBTM_SEC_DEV_REC& dev_rec) { static Octet16 get_local_irk() { return btm_cb.devcb.id_keys.irk; } void btm_ble_resolving_list_load_dev(tBTM_SEC_DEV_REC& dev_rec) { if (btm_cb.ble_ctr_cb.privacy_mode < BTM_PRIVACY_1_2) { LOG_DEBUG("Privacy 1.2 is not enabled"); return; } if (controller_get_interface()->get_ble_resolving_list_max_size() == 0) { LOG_INFO("Controller does not support RPA offloading or privacy 1.2"); return; Loading Loading @@ -572,6 +580,12 @@ void btm_ble_resolving_list_load_dev(tBTM_SEC_DEV_REC& dev_rec) { }; } if (!is_ble_addr_type_known(dev_rec.ble.identity_address_with_type.type)) { LOG_ERROR("Adding unknown address type(%d) to Address Resolving list.", dev_rec.ble.identity_address_with_type.type); return; } bluetooth::shim::ACL_AddToAddressResolution( dev_rec.ble.identity_address_with_type, peer_irk, local_irk); Loading @@ -593,6 +607,10 @@ void btm_ble_resolving_list_load_dev(tBTM_SEC_DEV_REC& dev_rec) { * ******************************************************************************/ void btm_ble_resolving_list_remove_dev(tBTM_SEC_DEV_REC* p_dev_rec) { if (btm_cb.ble_ctr_cb.privacy_mode < BTM_PRIVACY_1_2) { LOG_DEBUG("Privacy 1.2 is not enabled"); return; } BTM_TRACE_EVENT("%s", __func__); if ((p_dev_rec->ble.in_controller_list & BTM_RESOLVING_LIST_BIT) && Loading Loading
system/stack/btm/btm_ble_privacy.cc +18 −0 Original line number Diff line number Diff line Loading @@ -488,6 +488,10 @@ void btm_ble_clear_resolving_list(void) { * ******************************************************************************/ bool btm_ble_read_resolving_list_entry(tBTM_SEC_DEV_REC* p_dev_rec) { if (btm_cb.ble_ctr_cb.privacy_mode < BTM_PRIVACY_1_2) { LOG_DEBUG("Privacy 1.2 is not enabled"); return false; } if (!(p_dev_rec->ble.in_controller_list & BTM_RESOLVING_LIST_BIT)) { LOG_INFO("%s Unable to read resolving list entry as resolving bit not set", __func__); Loading Loading @@ -540,6 +544,10 @@ static bool is_peer_identity_key_valid(const tBTM_SEC_DEV_REC& dev_rec) { static Octet16 get_local_irk() { return btm_cb.devcb.id_keys.irk; } void btm_ble_resolving_list_load_dev(tBTM_SEC_DEV_REC& dev_rec) { if (btm_cb.ble_ctr_cb.privacy_mode < BTM_PRIVACY_1_2) { LOG_DEBUG("Privacy 1.2 is not enabled"); return; } if (controller_get_interface()->get_ble_resolving_list_max_size() == 0) { LOG_INFO("Controller does not support RPA offloading or privacy 1.2"); return; Loading Loading @@ -572,6 +580,12 @@ void btm_ble_resolving_list_load_dev(tBTM_SEC_DEV_REC& dev_rec) { }; } if (!is_ble_addr_type_known(dev_rec.ble.identity_address_with_type.type)) { LOG_ERROR("Adding unknown address type(%d) to Address Resolving list.", dev_rec.ble.identity_address_with_type.type); return; } bluetooth::shim::ACL_AddToAddressResolution( dev_rec.ble.identity_address_with_type, peer_irk, local_irk); Loading @@ -593,6 +607,10 @@ void btm_ble_resolving_list_load_dev(tBTM_SEC_DEV_REC& dev_rec) { * ******************************************************************************/ void btm_ble_resolving_list_remove_dev(tBTM_SEC_DEV_REC* p_dev_rec) { if (btm_cb.ble_ctr_cb.privacy_mode < BTM_PRIVACY_1_2) { LOG_DEBUG("Privacy 1.2 is not enabled"); return; } BTM_TRACE_EVENT("%s", __func__); if ((p_dev_rec->ble.in_controller_list & BTM_RESOLVING_LIST_BIT) && Loading