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

Commit 1c8fe24f authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by Jakub Pawłowski
Browse files

LE Audio: don't use stored device type when choosing Bond transport

When choosing transport to use for bonding, we should rely just on the
most recent data. What we receive from storage might be outdated.

Test: Pair with dual mode device that's advertising over classic only, forget bond, try to pair again, ensure 2nd attempt is successful
Bug: 248340112
Change-Id: I7769296206d47db80cbcd962d7bf7a61e8ac60b2
parent 16555181
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -651,14 +651,6 @@ static bool is_device_le_audio_capable(const RawAddress bd_addr) {
    return true;
  }

  int device_type = 0;
  std::string addrstr = bd_addr.ToString();
  const char* bdstr = addrstr.c_str();
  btif_config_get_int(bdstr, "DevType", &device_type);
  if ((device_type & BT_DEVICE_TYPE_BLE) == BT_DEVICE_TYPE_BLE) {
    return true;
  }

  return false;
}