Get rid of selective connection procedure
Bug: 30622771
Test: compilation test
Change-Id: I1a7e4c49f93f11a350b96ffe7b2e69974ed82f46
diff --git a/bta/dm/bta_dm_api.cc b/bta/dm/bta_dm_api.cc
index 2dac457..bffedec 100644
--- a/bta/dm/bta_dm_api.cc
+++ b/bta/dm/bta_dm_api.cc
@@ -1003,31 +1003,14 @@
* BLE ADV data management API
******************************************************************************/
-/*******************************************************************************
- *
- * Function BTA_DmBleSetBgConnType
- *
- * Description This function is called to set BLE connectable mode for a
- * peripheral device.
- *
- * Parameters bg_conn_type: it can be auto connection, or selective
- * connection.
- * p_select_cback: callback function when selective connection
- * procedure is being used.
- *
- * Returns void
- *
- ******************************************************************************/
-void BTA_DmBleSetBgConnType(tBTA_DM_BLE_CONN_TYPE bg_conn_type,
- tBTA_DM_BLE_SEL_CBACK* p_select_cback) {
- tBTA_DM_API_BLE_SET_BG_CONN_TYPE* p_msg =
- (tBTA_DM_API_BLE_SET_BG_CONN_TYPE*)osi_calloc(
- sizeof(tBTA_DM_API_BLE_SET_BG_CONN_TYPE));
+/**
+ * Set BLE connectable mode to auto connect
+ */
+void BTA_DmBleStartAutoConn() {
+ tBTA_DM_API_SET_NAME* p_msg =
+ (tBTA_DM_API_SET_NAME*)osi_calloc(sizeof(tBTA_DM_API_SET_NAME));
p_msg->hdr.event = BTA_DM_API_BLE_SET_BG_CONN_TYPE;
- p_msg->bg_conn_type = bg_conn_type;
- p_msg->p_select_cback = p_select_cback;
-
bta_sys_sendmsg(p_msg);
}