aboutsummaryrefslogtreecommitdiffstats
path: root/src/bt-vendor_vfs/ant_native_chardev.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bt-vendor_vfs/ant_native_chardev.c')
-rw-r--r--src/bt-vendor_vfs/ant_native_chardev.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bt-vendor_vfs/ant_native_chardev.c b/src/bt-vendor_vfs/ant_native_chardev.c
index a90c8c4..844aef0 100644
--- a/src/bt-vendor_vfs/ant_native_chardev.c
+++ b/src/bt-vendor_vfs/ant_native_chardev.c
@@ -901,7 +901,9 @@ int init_transport_bdroid(int on) {
return -1;
}
/*call ANT_USERIAL_OPEN to get ANT handle*/
+#ifdef BT_SOC_TYPE_ROME
ret = vendor_interface->op(BT_VND_OP_ANT_USERIAL_OPEN, fd);
+#endif
ALOGE("ret value: %d", ret);
if (ret != 1)
{
@@ -914,8 +916,9 @@ int init_transport_bdroid(int on) {
} else {
if (vendor_interface) {
ALOGE("Close and cleanup the interfaces");
+#ifdef BT_SOC_TYPE_ROME
int ret = vendor_interface->op(BT_VND_OP_ANT_USERIAL_CLOSE, NULL);
-
+#endif
ALOGE("ret value: %d", ret);
ALOGI("Turn off BT power");
powerstate = BT_VND_PWR_OFF;