OSDN Git Service

Suppress logging qualcomm debug unknown handle message
authorChris Manton <cmanton@google.com>
Thu, 7 Nov 2019 23:43:37 +0000 (15:43 -0800)
committerChris Manton <cmanton@google.com>
Fri, 8 Nov 2019 05:16:56 +0000 (21:16 -0800)
Bug: 143697964
Test: Verified logging messages suppressed during operation

Change-Id: Ic38bb6addbec348ef38d0801322d006109ad377a

gd/hci/acl_manager.cc

index b62887d..c60cf05 100644 (file)
@@ -30,6 +30,8 @@
 namespace bluetooth {
 namespace hci {
 
+constexpr uint16_t kQualcommDebugHandle = 0xedc;
+
 using common::Bind;
 using common::BindOnce;
 
@@ -221,6 +223,9 @@ struct AclManager::impl {
       return;
     }
     uint16_t handle = packet->GetHandle();
+    if (handle == kQualcommDebugHandle) {
+      return;
+    }
     auto connection_pair = acl_connections_.find(handle);
     if (connection_pair == acl_connections_.end()) {
       LOG_INFO("Dropping packet of size %zu to unknown connection 0x%0hx", packet->size(), handle);