Loading system/stack/btm/btm_ble_sec.cc +5 −13 Original line number Diff line number Diff line Loading @@ -1496,19 +1496,11 @@ void btm_ble_connected(const RawAddress& bda, uint16_t handle, uint8_t enc_mode, uint8_t role, tBLE_ADDR_TYPE addr_type, bool addr_matched, bool can_read_discoverable_characteristics) { tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bda); if (!p_dev_rec) { LOG_INFO("Creating new device record for new ble connection"); p_dev_rec = btm_sec_alloc_dev(bda); if (p_dev_rec == nullptr) { LOG_WARN("Unable to create device record for new ble connection"); return; } } else { LOG_INFO("Updating device record timestamp for existing ble connection"); tBTM_SEC_DEV_REC* p_dev_rec = btm_find_or_alloc_dev(bda); LOG_INFO("Updating device record timestamp for the ble connection"); // TODO() Why is timestamp a counter ? p_dev_rec->timestamp = btm_sec_cb.dev_rec_count++; } if (is_ble_addr_type_known(addr_type)) p_dev_rec->ble.SetAddressType(addr_type); Loading Loading
system/stack/btm/btm_ble_sec.cc +5 −13 Original line number Diff line number Diff line Loading @@ -1496,19 +1496,11 @@ void btm_ble_connected(const RawAddress& bda, uint16_t handle, uint8_t enc_mode, uint8_t role, tBLE_ADDR_TYPE addr_type, bool addr_matched, bool can_read_discoverable_characteristics) { tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bda); if (!p_dev_rec) { LOG_INFO("Creating new device record for new ble connection"); p_dev_rec = btm_sec_alloc_dev(bda); if (p_dev_rec == nullptr) { LOG_WARN("Unable to create device record for new ble connection"); return; } } else { LOG_INFO("Updating device record timestamp for existing ble connection"); tBTM_SEC_DEV_REC* p_dev_rec = btm_find_or_alloc_dev(bda); LOG_INFO("Updating device record timestamp for the ble connection"); // TODO() Why is timestamp a counter ? p_dev_rec->timestamp = btm_sec_cb.dev_rec_count++; } if (is_ble_addr_type_known(addr_type)) p_dev_rec->ble.SetAddressType(addr_type); Loading