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

Commit 02eb2c00 authored by Chris Manton's avatar Chris Manton
Browse files

Check power mode only on classic links

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working
Test: act.py -tc BleCocTest
Change-Id: Ie70a5fecea4909a4755f98b9393843371009a2a3
parent 655eb7e7
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -146,8 +146,11 @@ tBTM_STATUS BTM_SetPowerMode(uint8_t pm_id, const RawAddress& remote_bda,

  int acl_ind = btm_pm_find_acl_ind(remote_bda);
  if (acl_ind == MAX_L2CAP_LINKS) {
    LOG_ERROR("addr %s is unknown", remote_bda.ToString().c_str());
    return (BTM_UNKNOWN_ADDR);
    if (btm_pm_is_le_link(remote_bda)) {
      return BTM_MODE_UNSUPPORTED;
    }
    LOG_ERROR("br_edr acl addr %s is unknown", remote_bda.ToString().c_str());
    return BTM_UNKNOWN_ADDR;
  }

  // per ACL link