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

Commit f36e5448 authored by Hsin-chen Chuang's avatar Hsin-chen Chuang Committed by Gerrit Code Review
Browse files

Merge "floss: Don't run VSC commands in l2cu_set_acl_priority" into main

parents 818145af ffeb51b1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2395,6 +2395,7 @@ bool l2cu_set_acl_priority(const RawAddress& bd_addr, tL2CAP_PRIORITY priority,
   * 2. High priority requested because of central/peripheral role switch */
  if ((!reset_after_rs && (priority != p_lcb->acl_priority)) ||
      (reset_after_rs && p_lcb->acl_priority == L2CAP_PRIORITY_HIGH)) {
#ifndef TARGET_FLOSS
    /* Use vendor specific commands to set the link priority */
    switch (controller_get_interface()->get_bt_version()->manufacturer) {
      case LMP_COMPID_BROADCOM:
@@ -2417,6 +2418,7 @@ bool l2cu_set_acl_priority(const RawAddress& bd_addr, tL2CAP_PRIORITY priority,
        /* Not supported/required for other vendors */
        break;
    }
#endif
  }

  /* Adjust lmp buffer allocation for this channel if priority changed */