tBTA_DM_SEARCH_CBACK * p_cback;
}tBTA_DM_API_BLE_OBSERVE;
-typedef struct
-{
- BT_HDR hdr;
- BOOLEAN enable_or_disable;
-}tBTA_DM_API_SET_AFH_CHANNEL_ASSESSMENT;
-
-
/* set adv parameter for BLE advertising */
typedef struct
{
#endif
+typedef struct
+{
+ BT_HDR hdr;
+ BOOLEAN enable_or_disable;
+}tBTA_DM_API_SET_AFH_CHANNEL_ASSESSMENT;
+
#if ( BTM_EIR_SERVER_INCLUDED == TRUE )&&( BTA_EIR_CANNED_UUID_LIST != TRUE )&&(BTA_EIR_SERVER_NUM_CUSTOM_UUID > 0)
/* data type for BTA_DM_API_UPDATE_EIR_UUID_EVT */
typedef struct
**
*******************************************************************************/
BTA_API extern void BTA_DmSetAfhChannelAssessment (BOOLEAN enable_or_disable);
+
+#if BLE_INCLUDE == TRUE
// btla-specific --
/*******************************************************************************
**
*******************************************************************************/
BTA_API extern void BTA_DmBleSetAdvConfig (tBTA_BLE_AD_MASK data_mask,
tBTA_BLE_ADV_DATA *p_adv_cfg);
+#endif
#ifdef __cplusplus
}
#endif
#if (defined BLE_INCLUDED && BLE_INCLUDED == TRUE)
#include "bte_appl.h"
-#endif
tBTE_APPL_CFG bte_appl_cfg = { 0x5, 0x4, 0x7, 0x7, 0x10 };
+#endif
/*******************************************************************************
**
if (is_profile(profile_id, BT_PROFILE_HEALTH_ID))
return btif_hl_get_interface();
+#if BTA_GATT_INCLUDED == TRUE
if (is_profile(profile_id, BT_PROFILE_GATT_ID))
return btif_gatt_get_interface();
+#endif
if (is_profile(profile_id, BT_PROFILE_AV_RC_ID))
return btif_rc_get_interface();
return btif_dut_mode_send(opcode, buf, len);
}
+
+#if BLE_INCLUDED == TRUE
int le_test_mode(uint16_t opcode, uint8_t* buf, uint8_t len)
{
ALOGI("le_test_mode");
return btif_le_test_mode(opcode, buf, len);
}
-
+#endif
static const bt_interface_t bluetoothInterface = {
sizeof(bluetoothInterface),
get_profile_interface,
dut_mode_configure,
dut_mode_send,
+#if BLE_INCLUDED == TRUE
le_test_mode
+#else
+ NULL
+#endif
};
const bt_interface_t* bluetooth__get_bluetooth_interface ()
}
else
{
+#if BLE_INCLUDED == TRUE
int device_type;
int addr_type;
bdstr_t bdstr;
{
BTA_DmAddBleDevice(bd_addr->address, addr_type, BT_DEVICE_TYPE_BLE);
}
+#endif
BTA_DmBond ((UINT8 *)bd_addr->address);
}
/* Track originator of bond creation */
*
******************************************************************************/
-
#include <hardware/bluetooth.h>
#include <hardware/bt_gatt.h>
#include <stdio.h>
#include "btif_gatt.h"
#include "btif_gatt_util.h"
+#if BTA_GATT_INCLUDED == TRUE
+
#define GATTC_READ_VALUE_TYPE_VALUE 0x0000 /* Attribute value itself */
#define GATTC_READ_VALUE_TYPE_AGG_FORMAT 0x2905 /* Characteristic Aggregate Format*/
&btif_gatt_set_encryption_cb, BTM_BLE_SEC_ENCRYPT);
}
}
+
+#endif
uint2devclass((UINT32)cod, dev_class);
BTA_DmAddDevice(bd_addr.address, dev_class, link_key, 0, 0, (UINT8)linkkey_type, 0);
+#if BLE_INCLUDED == TRUE
if (btif_config_get_int("Remote", kname, "DevType", &device_type) &&
(device_type == BT_DEVICE_TYPE_DUMO) )
{
btif_gatts_add_bonded_dev_from_nv(bd_addr.address);
}
+#endif
}
bt_linkkey_file_found = TRUE;
memcpy(&p_bonded_devices->devices[p_bonded_devices->num_devices++], &bd_addr, sizeof(bt_bdaddr_t));
return;
}
+#if BLE_INCLUDED == TRUE
+
/*******************************************************************************
**
** Function BTM_BleReceiverTest
}
}
+#endif
+
/*******************************************************************************
** Internal Functions
*******************************************************************************/
{
btm_read_ble_wl_size();
}
+ else
#elif BTM_INTERNAL_BB == TRUE
{
UINT8 buf[9] = BTM_INTERNAL_LOCAL_FEA;
btm_read_local_features_complete( buf, 9 );
}
#endif
- else
{
btm_reset_ctrlr_complete();
}
NULL, /* acl_state_changed_cb */
NULL, /* thread_evt_cb */
dut_mode_recv, /*dut_mode_recv_cb */
- NULL, /*authorize_request_cb */
+// NULL, /*authorize_request_cb */
+#if BLE_INCLUDED == TRUE
le_test_mode /* le_test_mode_cb */
+#else
+ NULL
+#endif
};
void bdt_init(void)