Version 1.9.6

- Propagate write errors in HIDL interface.
diff --git a/src/common/inc/ant_version.h b/src/common/inc/ant_version.h
index 0a18c35..e7aea10 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 "5"

+#define LIBANT_STACK_INCRE "6"

 

 #endif // __ANT_VERSION_H

 

diff --git a/src/qcomm-hidl/AntHidlClient.cpp b/src/qcomm-hidl/AntHidlClient.cpp
index b5cf618..c118da5 100644
--- a/src/qcomm-hidl/AntHidlClient.cpp
+++ b/src/qcomm-hidl/AntHidlClient.cpp
@@ -212,9 +212,13 @@
       data.setToExternal(pucTxMessage+1, ucMessageLength-1);
       if (packet_type == ANT_DATA_TYPE_PACKET)
       {
-         anthci->sendAntData(data);
+         auto hidl_daemon_status = anthci->sendAntData(data);
       } else {
-         anthci->sendAntControl(data);
+         auto hidl_daemon_status = anthci->sendAntControl(data);
+      }
+      if (!hidl_daemon_status.isOk()) {
+         ALOGE("%s:send cmd failed,HIDL daemon dead", __func__);
+         return -1;
       }
    } else {
       ALOGE("%s: antHci is NULL", __func__);