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

Commit 31ffa327 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Check MT call setup state before starting ring timer"

parents 9ab8623b f537a06e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1752,6 +1752,11 @@ void bta_ag_send_bcs(tBTA_AG_SCB* p_scb, tBTA_AG_DATA* p_data) {
 *
 ******************************************************************************/
void bta_ag_send_ring(tBTA_AG_SCB* p_scb, UNUSED_ATTR tBTA_AG_DATA* p_data) {
  if (p_scb->callsetup_ind != BTA_AG_CALLSETUP_INCOMING) {
    APPL_TRACE_DEBUG("%s: don't send the ring since there is no MT call setup",
                     __func__);
    return;
  }
  /* send RING */
  bta_ag_send_result(p_scb, BTA_AG_LOCAL_RES_RING, NULL, 0);