Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15652212 authored by Sungsoo Lim's avatar Sungsoo Lim Committed by Chris Manton
Browse files

Do not clear post_soc when close RFCOMM

Some devices close RFCOMM first before disconnect SCO.
This CL makes post_sco action be executed in that case.

Bug: 215674671
Tag: #refactor
Test: atest CtsBluetoothTestCases bluetooth_test_gd_unit
Change-Id: I3eac0c2f902f1fdb254f5446bd481b2edd4ed713
parent daa7c0ef
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -373,7 +373,6 @@ void bta_ag_rfc_close(tBTA_AG_SCB* p_scb,
  p_scb->codec_fallback = false;
  p_scb->codec_msbc_settings = BTA_AG_SCO_MSBC_SETTINGS_T2;
  p_scb->role = 0;
  p_scb->post_sco = BTA_AG_POST_SCO_NONE;
  p_scb->svc_conn = false;
  p_scb->hsp_version = HSP_VERSION_1_2;
  bta_ag_at_reinit(&p_scb->at_cb);