OSDN Git Service

Streamline bta/hh/bta_hh_le::bta_hh_le_remove_dev_bg_conn
authorChris Manton <cmanton@google.com>
Fri, 26 Feb 2021 03:16:37 +0000 (19:16 -0800)
committerChris Manton <cmanton@google.com>
Tue, 2 Mar 2021 16:53:11 +0000 (08:53 -0800)
Bug: 163134718
Test: cert
Tag: #refactor

Change-Id: I7e7fe917cbf8b4695f2c209ace1bc0783e5adef9

bta/hh/bta_hh_le.cc

index a892146..9a58887 100755 (executable)
@@ -27,6 +27,7 @@
 #include "bta/include/bta_gatt_queue.h"
 #include "bta/include/bta_hh_co.h"
 #include "device/include/interop.h"
+#include "main/shim/dumpsys.h"
 #include "osi/include/log.h"
 #include "osi/include/osi.h"
 #include "stack/btm/btm_sec.h"
@@ -2013,6 +2014,8 @@ uint8_t bta_hh_le_add_device(tBTA_HH_DEV_CB* p_cb,
  ******************************************************************************/
 void bta_hh_le_remove_dev_bg_conn(tBTA_HH_DEV_CB* p_dev_cb) {
   if (p_dev_cb->in_bg_conn) {
+    LOG_DEBUG("Removing from background connection device:%s",
+              PRIVATE_ADDRESS(p_dev_cb->addr));
     p_dev_cb->in_bg_conn = false;
 
     BTA_GATTC_CancelOpen(bta_hh_cb.gatt_if, p_dev_cb->addr, false);