OSDN Git Service

Remove duplicate code
authorChris Manton <cmanton@google.com>
Fri, 9 Oct 2020 21:14:32 +0000 (14:14 -0700)
committerChris Manton <cmanton@google.com>
Sat, 10 Oct 2020 01:11:43 +0000 (18:11 -0700)
Bug: 170396407
Tag: #refactor
Test: act.py -tc BleCocTest
Test: ble paired 2 phones
Test: classic paired Bose SoundLink

Change-Id: Ibc6194b79025171d1ba8bdc73186ecbe79acaf6b

stack/acl/btm_ble_connection_establishment.cc

index bd186e3..59a84f7 100644 (file)
@@ -176,13 +176,6 @@ void btm_ble_conn_complete(uint8_t* p, UNUSED_ATTR uint16_t evt_len,
       btm_ble_clear_topology_mask(BTM_BLE_STATE_INIT_BIT);
     }
 
-    connection_manager::on_connection_complete(bda);
-    btm_ble_connected(bda, handle, HCI_ENCRYPT_MODE_DISABLED, role, bda_type,
-                      is_in_security_db);
-
-    l2cble_conn_comp(handle, role, bda, bda_type, conn_interval, conn_latency,
-                     conn_timeout);
-
     tBLE_BD_ADDR address_with_type{.bda = bda, .type = bda_type};
     if (enhanced) {
       acl_ble_enhanced_connection_complete(