Stop reader thread when coreInit() failed.

Tml reader thread is only for UCI mode.
But when coreInit() failed, it should restore the state back
to the FW download mode for 2nd try of coreInit().
To do so, add phTmlUwb_StopRead() to stop UCI reader thread.

Instead of calling phTmlUwb_Read() for every received packet,
call phTmlUwb_StartRead() once and read_callback will be called
for every RX packet until phTmlUwb_StopRead() is called.

From this change, phTmlUwb_Init() creates writer thread only.
Reader thread is created later from phTmlUwb_StartRead().
Accordingly, change internal function name phTmlUwb_StartThread()
to phTmlUwb_StartWrite() as it only starts writer thread.

Bug: 336425207
Test: uwb regression test
Change-Id: I80633217fc4ba06655d67b93a74b7be7c9308fb5
3 files changed
tree: 71f747dd57d2a218a3d2b287336c16837423c5b5
  1. aidl/
  2. extns/
  3. halimpl/
  4. Android.bp