FM: while stopping TX Thread put lock before notify to TX Thread
Change-Id: I8fb17e1686d74a6e896e4c233f48069487c6c771
diff --git a/fm_hci/fm_hci.cpp b/fm_hci/fm_hci.cpp
index 105535a..e77603a 100644
--- a/fm_hci/fm_hci.cpp
+++ b/fm_hci/fm_hci.cpp
@@ -367,7 +367,10 @@
int ret;
ALOGI("%s:stop_tx_thread ++", __func__);
+ hci.tx_cond_mtx.lock();
hci.tx_cond.notify_all();
+ ALOGI("%s:notify to tx thread", __func__);
+ hci.tx_cond_mtx.unlock();
hci.tx_thread_.join();
ALOGI("%s:stop_tx_thread --", __func__);