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

Commit dd585af4 authored by Chris Manton's avatar Chris Manton
Browse files

Fix le transport selection

Bug: 164357702
Test: LE pairing dialog using nRF
Tag:#refactor

Change-Id: I3b0ce75435e91b409329dcae61e69a2c09e90b4b
parent 7256b7d0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -663,10 +663,10 @@ bool BTM_UseLeLink(const RawAddress& bd_addr) {
  tBLE_ADDR_TYPE addr_type;
  bool use_le = false;

  if (!BTM_IsAclConnectionUp(bd_addr, BT_TRANSPORT_BR_EDR)) {
  if (BTM_IsAclConnectionUp(bd_addr, BT_TRANSPORT_BR_EDR)) {
    return use_le;
  } else {
    if (!BTM_IsAclConnectionUp(bd_addr, BT_TRANSPORT_LE)) {
    if (BTM_IsAclConnectionUp(bd_addr, BT_TRANSPORT_LE)) {
      use_le = true;
    } else {
      BTM_ReadDevInfo(bd_addr, &dev_type, &addr_type);