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

Commit 180ef131 authored by Chris Manton's avatar Chris Manton
Browse files

legacy: Restore missed check for interop role switch

Bug: 229924391
Tag: #refactor
Test: gd/cert/run
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: Ie4c34623a82ea539260bce6ee3cd842b9ab719d9
parent 826a70d6
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -577,6 +577,11 @@ tBTM_STATUS BTM_SwitchRoleToCentral(const RawAddress& remote_bd_addr) {
    return BTM_BUSY;
  }

  if (interop_match_addr(INTEROP_DYNAMIC_ROLE_SWITCH, &remote_bd_addr)) {
    LOG_DEBUG("Device restrict listed under INTEROP_DYNAMIC_ROLE_SWITCH");
    return BTM_DEV_RESTRICT_LISTED;
  }

  tBTM_PM_MODE pwr_mode;
  if (!BTM_ReadPowerMode(p_acl->remote_addr, &pwr_mode)) {
    LOG_WARN(