Version 1.9.5
- Fix occasional 100 ms stall in HIDL code.
- Perform recovery when read operations fail in VFS.
- Fix issue where a failed open() call in VFS locked the stack in
ENABLING state.
- Fix VFS behavior when enable()/disable() called while already
in desired state.
diff --git a/src/qcomm-hidl/AntHidlClient.cpp b/src/qcomm-hidl/AntHidlClient.cpp
index 50e03ba..b5cf618 100644
--- a/src/qcomm-hidl/AntHidlClient.cpp
+++ b/src/qcomm-hidl/AntHidlClient.cpp
@@ -227,13 +227,9 @@
ANTStatus ant_rx_check()
{
ALOGV("%s: start", __func__);
- if (ant_hci.rx_processing)
- {
- return ANT_STATUS_SUCCESS;
- }
+ Lock lock(ant_hci.data_mtx);
while (ant_hci.rx_processing == 0)
{
- std::unique_lock< std::mutex> lock(ant_hci.data_mtx);
ant_hci.data_cond.wait_for(lock,std::chrono::milliseconds(POLL_TIMEOUT_MS));
if (ant_hci.state != ANT_RADIO_ENABLED)
{