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

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

Use acl_create_le_connection_with_id

Bug: 166280067
Tag: #refactor
Test: act.py -tc BleCocTest
Test: ble paired 2 phones
Test: classic paired Bose SoundLink

Change-Id: Ie1b2f0f60367ad15834b28ee896989674c6f3614
parent b984ab25
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -26,17 +26,18 @@

#include "bt_common.h"
#include "bt_utils.h"
#include "eatt.h"
#include "btif_storage.h"
#include "btm_ble_int.h"
#include "btm_int.h"
#include "connection_manager.h"
#include "device/include/interop.h"
#include "eatt.h"
#include "gatt_int.h"
#include "l2c_api.h"
#include "osi/include/osi.h"
#include "stack/btm/btm_dev.h"
#include "stack/btm/btm_sec.h"
#include "stack/include/l2cap_acl_interface.h"

using base::StringPrintf;
using bluetooth::eatt::EattExtension;
@@ -204,7 +205,7 @@ bool gatt_connect(const RawAddress& rem_bda, tGATT_TCB* p_tcb,
  }

  p_tcb->att_lcid = L2CAP_ATT_CID;
  return connection_manager::direct_connect_add(gatt_if, rem_bda);
  return acl_create_le_connection_with_id(gatt_if, rem_bda);
}

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