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

Commit eeeae59f authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

Use stack/acl/btm_acl::hci_btm_set_link_supervision_timeout am: 5ac4b918

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1546403

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0ab2e5afb82455d7a56f18ba93edf5fb78e33a2b
parents af556017 5ac4b918
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1429,7 +1429,11 @@ void StackAclBtmAcl::btm_acl_role_changed(tHCI_STATUS hci_status,
    /* Reload LSTO: link supervision timeout is reset in the LM after a role
     * switch */
    if (new_role == HCI_ROLE_CENTRAL) {
      BTM_SetLinkSuperTout(p_acl->remote_addr, p_acl->link_super_tout);
      uint16_t supervisor_timeout =
          (p_acl->link_super_tout == 0)  // uninitialized
              ? (btm_cb.acl_cb_.DefaultSupervisorTimeout())
              : (p_acl->link_super_tout);
      hci_btm_set_link_supervision_timeout(*p_acl, supervisor_timeout);
    }
  } else {
    new_role = p_acl->link_role;