Version 1.9.6
- Qualcomm bug fix for HIDL interface.
diff --git a/src/common/inc/ant_version.h b/src/common/inc/ant_version.h
index e7aea10..4a8881a 100644
--- a/src/common/inc/ant_version.h
+++ b/src/common/inc/ant_version.h
@@ -21,7 +21,7 @@
#define LIBANT_STACK_MAJOR "1"
#define LIBANT_STACK_MINOR "9"
-#define LIBANT_STACK_INCRE "6"
+#define LIBANT_STACK_INCRE "7"
#endif // __ANT_VERSION_H
diff --git a/src/qcomm-hidl/AntHidlClient.cpp b/src/qcomm-hidl/AntHidlClient.cpp
index c118da5..616a5a6 100644
--- a/src/qcomm-hidl/AntHidlClient.cpp
+++ b/src/qcomm-hidl/AntHidlClient.cpp
@@ -187,7 +187,11 @@
{
std::unique_lock< std::mutex> lock(ant_hci.data_mtx);
ant_hci.data_cond.notify_all();
- anthci->close();
+ auto hidl_daemon_status = anthci->close();
+ if(!hidl_daemon_status.isOk())
+ {
+ ALOGE("%s: HIDL daemon is dead", __func__);
+ }
}
ant_hci.state = ANT_RADIO_DISABLED;
ant_rx_clear();
@@ -213,12 +217,18 @@
if (packet_type == ANT_DATA_TYPE_PACKET)
{
auto hidl_daemon_status = anthci->sendAntData(data);
+ if (!hidl_daemon_status.isOk())
+ {
+ ALOGE("%s:sendAntData failed,HIDL dead", __func__);
+ return -1;
+ }
} else {
auto hidl_daemon_status = anthci->sendAntControl(data);
- }
- if (!hidl_daemon_status.isOk()) {
- ALOGE("%s:send cmd failed,HIDL daemon dead", __func__);
- return -1;
+ if (!hidl_daemon_status.isOk())
+ {
+ ALOGE("%s:sendAntControl failed,HIDL dead", __func__);
+ return -1;
+ }
}
} else {
ALOGE("%s: antHci is NULL", __func__);