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

Commit ec12afaa authored by Chris Manton's avatar Chris Manton
Browse files

Use new API stack/l2cap/l2c_utils

acl_is_role_switch_allowed

Working towards encapsulation of tACL_CONN

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: Id49d05d89c0ac745fcddb1dba1ea2f08a56e9caf
parent 871c32be
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2137,8 +2137,8 @@ void l2cu_create_conn_after_switch(tL2C_LCB* p_lcb) {
  uint8_t no_hi_prio_chs = l2cu_get_num_hi_priority();
  const controller_t* controller = controller_get_interface();

  bool disallow_switch = (btm_cb.acl_cb_.btm_def_link_policy &
                          HCI_ENABLE_MASTER_SLAVE_SWITCH) == 0;
  bool disallow_switch = !acl_is_role_switch_allowed();

  L2CAP_TRACE_DEBUG(
      "l2cu_create_conn_after_switch :%d num_acl:%d no_hi: %d is_bonding:%d",
      disallow_switch, num_acl, no_hi_prio_chs, p_lcb->is_bonding);