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

Commit ffeb51b1 authored by Hsin-chen Chuang's avatar Hsin-chen Chuang
Browse files

floss: Don't run VSC commands in l2cu_set_acl_priority

These VSC are not available on ChromeOS boards and causes crashes.

Bug: 322734793
Tag: #floss
Test: mmm packages/modules/Bluetooth
Test: bluetooth_AdapterAUHealth.au_a2dp_test.floss
Flag: EXEMPT floss only changes
Change-Id: I9bf2307c1052ff07db45e52bc063cd079cc3c1f9
parent 703121d6
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 */