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

Commit 9f6a15ae authored by Zyan Wu's avatar Zyan Wu Committed by Cheney Ni
Browse files

Fix: give an event for AVDT_DELAY_REPORT_CFM_EVT

AVDT_DELAY_REPORT_CFM_EVT is mistakenly mapped to 0 (BTA_AV)
event. This caused crash when delay report is supported and
delay report responses have been received.

Now creating a delay report confirm event so it can be handled
later in bta av system

Bug: 188367563
Tag: #feature
Test: atest --host bluetooth_test_gd
Change-Id: I41346787287f71152ed4f82b7185dd3795efd793
Merged-In: Icbe01569d90abd4a881489e013a111432cf53d01
(cherry picked from commit be69941d)
parent 608515b6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -132,7 +132,7 @@ static const uint16_t bta_av_stream_evt_ok[] = {
    BTA_AV_AVDT_RPT_CONN_EVT, /* AVDT_REPORT_CONN_EVT */
    BTA_AV_AVDT_RPT_CONN_EVT, /* AVDT_REPORT_DISCONN_EVT */
    BTA_AV_AVDT_DELAY_RPT_EVT, /* AVDT_DELAY_REPORT_EVT */
    0                          /* AVDT_DELAY_REPORT_CFM_EVT */
    BTA_AV_AVDT_DELAY_RPT_CFM_EVT, /* AVDT_DELAY_REPORT_CFM_EVT */
};

static const uint16_t bta_av_stream_evt_fail[] = {
@@ -157,7 +157,7 @@ static const uint16_t bta_av_stream_evt_fail[] = {
    BTA_AV_AVDT_RPT_CONN_EVT, /* AVDT_REPORT_CONN_EVT */
    BTA_AV_AVDT_RPT_CONN_EVT, /* AVDT_REPORT_DISCONN_EVT */
    BTA_AV_AVDT_DELAY_RPT_EVT, /* AVDT_DELAY_REPORT_EVT */
    0                          /* AVDT_DELAY_REPORT_CFM_EVT */
    BTA_AV_AVDT_DELAY_RPT_CFM_EVT, /* AVDT_DELAY_REPORT_CFM_EVT */
};

/***********************************************
+1 −0
Original line number Diff line number Diff line
@@ -90,6 +90,7 @@ enum {
  BTA_AV_AVDT_DISCONNECT_EVT,
  BTA_AV_ROLE_CHANGE_EVT,
  BTA_AV_AVDT_DELAY_RPT_EVT,
  BTA_AV_AVDT_DELAY_RPT_CFM_EVT,
  BTA_AV_ACP_CONNECT_EVT,
  BTA_AV_API_OFFLOAD_START_EVT,
  BTA_AV_API_OFFLOAD_START_RSP_EVT,