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

Commit bfd92721 authored by Ted Wang's avatar Ted Wang
Browse files

Do not perform SSR when avdtp start

To make sure exit sniff mode can be perform before AVTDP start, stack do
not need to perform ssr which is redundant while activating the link.

Tag: #compatibility
Bug: 226693442
Bug: 232519172
Test: Regression Test b/226693442
Change-Id: Id6f983aadc78af11cd3e21ee727e0bb207291ad2
Merged-In: Id6f983aadc78af11cd3e21ee727e0bb207291ad2
parent 587ed2ff
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -449,7 +449,12 @@ static void bta_dm_pm_cback(tBTA_SYS_CONN_STATUS status, uint8_t id,
  }

  if (p_bta_dm_ssr_spec[index].max_lat || index == BTA_DM_PM_SSR_HH) {
    /* do not perform ssr for AVDTP start */
    if (id != BTA_ID_AV || status != BTA_SYS_CONN_BUSY) {
      bta_dm_pm_ssr(peer_addr, index);
    } else {
      LOG_DEBUG("Do not perform SSR when AVDTP start");
    }
  } else {
    const controller_t* controller = controller_get_interface();
    uint8_t* p = NULL;