Fm: synchronize the FM Off and Scan cancel functionality

Issue :
When FM off is triggred from FM App during the on going
search operation it leads to update the incorrect FM state.
Due to incorrect FM state enableStereo command is sent after
FM Turned off And This causes the crash at HIDL layer.

Fix:
While disabling the FM if search operation is on going then
cancel the Search and Wait for the state to change from
Search ---> FMRxOn. Intiate the disbale commnd once FM state
is set back to On.
synchronize the FM Off and Scan cancel functionality.

CRs-Fixed: 2752868
Change-Id: I7a19bef537418d0deb001a04c8dca1e51b4b8009
1 file changed
tree: fcb959d4a2f8218fb1c15ed0e76bca3f62398bc0
  1. fm_hci/
  2. fmapp2/
  3. helium/
  4. jni/
  5. qcom/