From 31130b677bfa4746e5fe9c7009697694cd62cdc7 Mon Sep 17 00:00:00 2001 From: Chris Manton Date: Thu, 14 Jan 2021 14:04:09 -0800 Subject: [PATCH] Add APIs stack/btm/security_device_record:: get_br_edr_hci_handle,Handle Towards encapsulated code Bug: 163134718 Tag: #refactor Test: gd/cert/run Change-Id: I820541c1f2fc86202710b7ef1bb5756ca9427851 --- stack/btm/security_device_record.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stack/btm/security_device_record.h b/stack/btm/security_device_record.h index 7cbf543c1..b3f0c8a68 100644 --- a/stack/btm/security_device_record.h +++ b/stack/btm/security_device_record.h @@ -188,6 +188,10 @@ struct tBTM_SEC_DEV_REC { DEV_CLASS dev_class; /* DEV_CLASS of the device */ LinkKey link_key; /* Device link key */ + public: + RawAddress RemoteAddress() const { return bd_addr; } + uint16_t get_br_edr_hci_handle() const { return hci_handle; } + private: friend bool BTM_SecAddDevice(const RawAddress& bd_addr, DEV_CLASS dev_class, BD_NAME bd_name, uint8_t* features, -- 2.11.0