diff options
author | 2024-12-18 18:36:54 +0800 | |
---|---|---|
committer | 2024-12-18 18:41:37 +0800 | |
commit | cd6c7a704e8e2e430c1972888792c9e04bf9c8ad (patch) | |
tree | 4a01ad8820f180cf90a470087fb9ecf260c7d33c | |
parent | 54edfd681f1ab0d270ebd347a11054c1bbdb5886 (diff) |
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
-rw-r--r-- | floss/hcidoc/src/groups/informational.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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); |