Remove UNKNOWN link type that isn't int the spec
Bug: 301661850
Test: mma -j32
Change-Id: Ice6772296133adbab5887ac393e70b98e10c24cd
diff --git a/system/gd/hci/acl_manager/classic_impl.h b/system/gd/hci/acl_manager/classic_impl.h
index 6fa13e7..85d9dfc 100644
--- a/system/gd/hci/acl_manager/classic_impl.h
+++ b/system/gd/hci/acl_manager/classic_impl.h
@@ -274,8 +274,10 @@
client_callbacks_, &ConnectionCallbacks::HACK_OnEscoConnectRequest, address, request.GetClassOfDevice());
return;
- case ConnectionRequestLinkType::UNKNOWN:
- LOG_ERROR("Request has unknown ConnectionRequestLinkType.");
+ default:
+ LOG_ERROR(
+ "Request has unknown ConnectionRequestLinkType %s",
+ ConnectionRequestLinkTypeText(request.GetLinkType()).c_str());
return;
}
diff --git a/system/pdl/hci/hci_packets.pdl b/system/pdl/hci/hci_packets.pdl
index 8543e881..53193d4 100644
--- a/system/pdl/hci/hci_packets.pdl
+++ b/system/pdl/hci/hci_packets.pdl
@@ -5816,7 +5816,6 @@
}
enum ConnectionRequestLinkType : 8 {
- UNKNOWN = 0xFF,
SCO = 0x00,
ACL = 0x01,
ESCO = 0x02,