From cd6c7a704e8e2e430c1972888792c9e04bf9c8ad Mon Sep 17 00:00:00 2001 From: Archie Pusaka Date: Wed, 18 Dec 2024 18:36:54 +0800 Subject: hcidoc: fix the number of ACL connections Previously an update is made to support distinguishing BREDR and LE connections which changed the data type of DeviceInformation::acls. The output that prints the number of ACL connections was not updated and thus will always shows 2. This CL fixes it. Bug: 293397988 Test: m -j Flag: EXEMPT, floss only changes Change-Id: I6eb3f1f58ec771921c21cff27ce56dd1e93d9b83 --- floss/hcidoc/src/groups/informational.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/floss/hcidoc/src/groups/informational.rs b/floss/hcidoc/src/groups/informational.rs index 1827b64282..dc90ccafdf 100644 --- a/floss/hcidoc/src/groups/informational.rs +++ b/floss/hcidoc/src/groups/informational.rs @@ -244,7 +244,7 @@ impl fmt::Display for DeviceInformation { address = self.address, address_type = self.address_type, device_names = DeviceInformation::print_names(&self.names), - num_connections = self.acls.len() + num_connections = self.acls[&Transport::BREDR].len() + self.acls[&Transport::LE].len() ); for acl in &self.acls[&Transport::BREDR] { let _ = write!(f, "{}", acl); -- cgit v1.2.3-59-g8ed1b