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

Commit 3156a97e authored by Chris Manton's avatar Chris Manton
Browse files

Dead code removal stack::btm::btm_ble_update_mode_operation

Bug: 319280616
Test: m .
Flag: EXEMPT, Dead code removal

Change-Id: Ic2ef77de3d43089b99b8c3b5344f80d7fa126422
parent 41195410
Loading
Loading
Loading
Loading
+0 −18
Original line number Diff line number Diff line
@@ -3226,24 +3226,6 @@ void btm_ble_update_mode_operation(uint8_t link_role, const RawAddress* bd_addr,
    btm_ble_set_connectability(btm_cb.btm_inq_vars.connectable_mode |
                               btm_cb.ble_ctr_cb.inq_var.connectable_mode);
  }

  /* in case of disconnected, we must cancel bgconn and restart
     in order to add back device to acceptlist in order to reconnect */
  if (bd_addr != nullptr) {
      LOG_DEBUG("gd_acl enabled so skip background connection logic");
  }

  /* when no connection is attempted, and controller is not rejecting last
     request
     due to resource limitation, start next direct connection or background
     connection
     now in order */
  if (btm_cb.ble_ctr_cb.is_connection_state_idle() &&
      status != HCI_ERR_HOST_REJECT_RESOURCES &&
      status != HCI_ERR_MAX_NUM_OF_CONNECTIONS) {
      LOG_DEBUG("Resuming le background connections");
      btm_ble_resume_bg_conn();
  }
}

/*******************************************************************************