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

Commit 6d475ef5 authored by Jakub Pawłowski's avatar Jakub Pawłowski Committed by Gerrit Code Review
Browse files

Merge "Fix gatt autoconnect"

parents de2a3e58 515c2bd7
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -127,12 +127,7 @@ void acl_ble_enhanced_connection_complete_from_shim(
    uint16_t conn_interval, uint16_t conn_latency, uint16_t conn_timeout,
    const RawAddress& local_rpa, const RawAddress& peer_rpa,
    tBLE_ADDR_TYPE peer_addr_type) {
  if (!connection_manager::remove_unconditional_from_shim(
          address_with_type.bda)) {
    LOG_WARN(
        "Unable to remove from legacy connection manager accept list addr:%s",
        PRIVATE_ADDRESS(address_with_type.bda));
  }
  connection_manager::on_connection_complete(address_with_type.bda);

  tBLE_BD_ADDR resolved_address_with_type;
  const bool is_in_security_db = maybe_resolve_received_address(
+0 −11
Original line number Diff line number Diff line
@@ -135,17 +135,6 @@ bool remove_unconditional(const RawAddress& address) {
  return true;
}

/** Removes the registrations for connection for given device.
 * but does not change the controller acceptlist.  Used for
 * shim purposes.
 * Returns true if anything was removed, false otherwise */
bool remove_unconditional_from_shim(const RawAddress& address) {
  auto it = bgconn_dev.find(address);
  if (it == bgconn_dev.end()) return false;
  bgconn_dev.erase(it);
  return true;
}

/** Remove device from the background connection device list or listening to
 * advertising list.  Returns true if device was on the list and was succesfully
 * removed */
+0 −1
Original line number Diff line number Diff line
@@ -41,7 +41,6 @@ extern bool background_connect_add(tAPP_ID app_id, const RawAddress& address);
extern bool background_connect_remove(tAPP_ID app_id,
                                      const RawAddress& address);
extern bool remove_unconditional(const RawAddress& address);
extern bool remove_unconditional_from_shim(const RawAddress& address);

extern void reset(bool after_reset);

+0 −5
Original line number Diff line number Diff line
@@ -71,11 +71,6 @@ bool connection_manager::remove_unconditional(const RawAddress& address) {
  mock_function_count_map[__func__]++;
  return false;
}
bool connection_manager::remove_unconditional_from_shim(
    const RawAddress& address) {
  mock_function_count_map[__func__]++;
  return false;
}
std::set<tAPP_ID> connection_manager::get_apps_connecting_to(
    const RawAddress& address) {
  mock_function_count_map[__func__]++;