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

Commit 145c8a42 authored by Chris Manton's avatar Chris Manton
Browse files

Use proper API stack/btm/btm_pm::btm_pm_proc_ssr_evt

Working towards encapsulation of tACL_CONN

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: Ie87d03fb92bad6c534d4214a1ec53f4cf33bbdea
parent 19dae339
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -788,8 +788,8 @@ void btm_pm_proc_ssr_evt(uint8_t* p, UNUSED_ATTR uint16_t evt_len) {
  STREAM_TO_UINT16(max_rx_lat, p);
  p_cb = &(btm_cb.pm_mode_db[xx]);

  tACL_CONN* p_acl = &btm_cb.acl_cb_.acl_db[xx];
  if (p_acl == nullptr) {
  const RawAddress bd_addr = acl_address_from_handle(handle);
  if (bd_addr == RawAddress::kEmpty) {
    BTM_TRACE_EVENT("%s Received sniff subrating event with no active ACL",
                    __func__);
    return;
@@ -803,8 +803,7 @@ void btm_pm_proc_ssr_evt(uint8_t* p, UNUSED_ATTR uint16_t evt_len) {
  /* notify registered parties */
  for (yy = 0; yy < BTM_MAX_PM_RECORDS; yy++) {
    if (btm_cb.pm_reg_db[yy].mask & BTM_PM_REG_NOTIF) {
      (*btm_cb.pm_reg_db[yy].cback)(p_acl->remote_addr, BTM_PM_STS_SSR, use_ssr,
                                    status);
      (*btm_cb.pm_reg_db[yy].cback)(bd_addr, BTM_PM_STS_SSR, use_ssr, status);
    }
  }
}