aboutsummaryrefslogtreecommitdiffstats
path: root/src/bt-vendor_vfs/ant_native_chardev.c
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2014-05-29 04:34:20 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2014-05-29 04:34:20 -0700
commit9f9ee431dfb6708f6a9ac5c028585cf42f225461 (patch)
tree55d42d5439784f5ffba7388a70977320bc20a2c5 /src/bt-vendor_vfs/ant_native_chardev.c
parenta801d46a306dd041aef17d98a291da6a64bb5247 (diff)
parent8ceb4dc331bf5910ecce6f98a1fbe9068d560293 (diff)
downloadandroid_external_ant-wireless_ant_native-9f9ee431dfb6708f6a9ac5c028585cf42f225461.tar.gz
android_external_ant-wireless_ant_native-9f9ee431dfb6708f6a9ac5c028585cf42f225461.tar.bz2
android_external_ant-wireless_ant_native-9f9ee431dfb6708f6a9ac5c028585cf42f225461.zip
Merge "ANT: Featurize WCNSS filter to build for Rome only"
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;