OSDN Git Service

Internally link stack/acl/btm_acl::btm_ble_get_acl_remote_addr
authorChris Manton <cmanton@google.com>
Mon, 17 Aug 2020 04:55:20 +0000 (21:55 -0700)
committerChris Manton <cmanton@google.com>
Tue, 6 Oct 2020 06:03:34 +0000 (06:03 +0000)
Towards readable code

Bug: 163134718
Tag: #refactor
Test: act.py -tc BleCocTest
Test: ble paired 2 phones
Test: classic paired Bose SoundLink

Change-Id: Id440b966613aaeb4b39ece7d4517a5158e823456

stack/acl/btm_acl.cc

index 2b4d2b1..ebccfa1 100644 (file)
@@ -116,6 +116,9 @@ static void btm_sec_set_peer_sec_caps(tACL_CONN* p_acl_cb,
                                       tBTM_SEC_DEV_REC* p_dev_rec);
 static bool acl_is_role_master(const RawAddress& bda, tBT_TRANSPORT transport);
 static void btm_set_link_policy(tACL_CONN* conn, uint16_t policy);
+static bool btm_ble_get_acl_remote_addr(tBTM_SEC_DEV_REC* p_dev_rec,
+                                        RawAddress& conn_addr,
+                                        tBLE_ADDR_TYPE* p_addr_type);
 
 /* 3 seconds timeout waiting for responses */
 #define BTM_DEV_REPLY_TIMEOUT_MS (3 * 1000)