Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd6c7a70 authored by Archie Pusaka's avatar Archie Pusaka Committed by Archie Pusaka
Browse files

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
parent 54edfd68
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);