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

Commit 1b69fb98 authored by Chris Manton's avatar Chris Manton
Browse files

gd_acl: No need to read remote version twice

Bug: 166280067
Test: Manual verification via wireshark
Tag: #refactor

Change-Id: I2296b99a2bbcfb3adb9585e6541fc21d726fd9eb
parent 0a86bb38
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -400,8 +400,9 @@ void btm_acl_created(const RawAddress& bda, uint16_t hci_handle,
  /* if BR/EDR do something more */
  if (transport == BT_TRANSPORT_BR_EDR) {
    btsnd_hcic_read_rmt_clk_offset(hci_handle);
    if (!bluetooth::shim::is_gd_l2cap_enabled()) {
      // GD L2cap reads this automatically
    if (!bluetooth::shim::is_gd_l2cap_enabled() &&
        !bluetooth::shim::is_gd_acl_enabled()) {
      // GD L2cap and GD Acl read this automatically
      btsnd_hcic_rmt_ver_req(hci_handle);
    }
  }