summaryrefslogtreecommitdiff
path: root/android/hal-bluetooth.c
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2014-01-14 12:51:47 +0100
committerSzymon Janc <szymon.janc@tieto.com>2014-01-14 12:57:18 +0100
commit8622810347b2be55570c49a44dacb4ab0de78ec7 (patch)
treef24183d3ebeb89d8a956ee41e47e49182928862b /android/hal-bluetooth.c
parent988bfaeac2ffafa7cef80bc1b9344f9a26587faf (diff)
downloadbluez-8622810347b2be55570c49a44dacb4ab0de78ec7.tar.gz
android: Remove support for old Android versions
This removes compatibility with Android 4.3 and older. Android 4.4 is current target. Due to bug in Audio HAL in 4.2 build was failing on that version anyway.
Diffstat (limited to 'android/hal-bluetooth.c')
-rw-r--r--android/hal-bluetooth.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/android/hal-bluetooth.c b/android/hal-bluetooth.c
index 7accdccb5..be45836cd 100644
--- a/android/hal-bluetooth.c
+++ b/android/hal-bluetooth.c
@@ -145,7 +145,6 @@ static void device_props_to_hal(bt_property_t *send_props,
enum_prop_to_hal(send_props[i], prop,
bt_device_type_t);
break;
-#if PLATFORM_SDK_VERSION > 17
case HAL_PROP_DEVICE_VERSION_INFO:
{
static bt_remote_version_t e;
@@ -161,7 +160,6 @@ static void device_props_to_hal(bt_property_t *send_props,
e.version = p->version;
}
break;
-#endif
case HAL_PROP_DEVICE_SERVICE_REC:
{
static bt_service_record_t e;
@@ -342,7 +340,6 @@ static void handle_dut_mode_receive(void *buf, uint16_t len)
bt_hal_cbacks->dut_mode_recv_cb(ev->opcode, ev->data, ev->len);
}
-#if PLATFORM_SDK_VERSION > 17
static void handle_le_test_mode(void *buf, uint16_t len)
{
struct hal_ev_le_test_mode *ev = buf;
@@ -352,7 +349,6 @@ static void handle_le_test_mode(void *buf, uint16_t len)
if (bt_hal_cbacks->le_test_mode_cb)
bt_hal_cbacks->le_test_mode_cb(ev->status, ev->num_packets);
}
-#endif
/* handlers will be called from notification thread context,
* index in table equals to 'opcode - HAL_MINIMUM_EVENT' */
@@ -410,13 +406,11 @@ static const struct hal_ipc_handler ev_handlers[] = {
.var_len = true,
.data_len = sizeof(struct hal_ev_dut_mode_receive),
},
-#if PLATFORM_SDK_VERSION > 17
{ /* HAL_EV_LE_TEST_MODE */
.handler = handle_le_test_mode,
.var_len = false,
.data_len = sizeof(struct hal_ev_le_test_mode),
}
-#endif
};
static int init(bt_callbacks_t *callbacks)
@@ -806,7 +800,6 @@ static int dut_mode_send(uint16_t opcode, uint8_t *buf, uint8_t len)
sizeof(cmd_buf), cmd, 0, NULL, NULL);
}
-#if PLATFORM_SDK_VERSION > 17
static int le_test_mode(uint16_t opcode, uint8_t *buf, uint8_t len)
{
uint8_t cmd_buf[sizeof(struct hal_cmd_le_test_mode) + len];
@@ -824,9 +817,7 @@ static int le_test_mode(uint16_t opcode, uint8_t *buf, uint8_t len)
return hal_ipc_cmd(HAL_SERVICE_ID_BLUETOOTH, HAL_OP_LE_TEST_MODE,
sizeof(cmd_buf), cmd, 0, NULL, NULL);
}
-#endif
-#if PLATFORM_SDK_VERSION > 18
static int config_hci_snoop_log(uint8_t enable)
{
DBG("enable %u", enable);
@@ -843,7 +834,6 @@ static int config_hci_snoop_log(uint8_t enable)
return BT_STATUS_SUCCESS;
}
-#endif
static const bt_interface_t bluetooth_if = {
.size = sizeof(bt_interface_t),
@@ -869,12 +859,8 @@ static const bt_interface_t bluetooth_if = {
.get_profile_interface = get_profile_interface,
.dut_mode_configure = dut_mode_configure,
.dut_mode_send = dut_mode_send,
-#if PLATFORM_SDK_VERSION > 17
.le_test_mode = le_test_mode,
-#endif
-#if PLATFORM_SDK_VERSION > 18
.config_hci_snoop_log = config_hci_snoop_log,
-#endif
};
static const bt_interface_t *get_bluetooth_interface(void)