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

Commit d68a5c5a authored by Henri Chataing's avatar Henri Chataing
Browse files

[MTK][CONVERGENCE][ALPS07830065] Use 1M to response

Use 1M to response when contoller not support 2M/Codec  PHY

Feature: BT HOST SW

Bug: 328842533
Fix: 328842533
Test: m com.android.btservices
Flag: EXEMPT, minor bug fix
Change-Id: I8ec5ab8d7da2a4135639504d0ae783858d65b20e
parent 63c95dd5
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -167,11 +167,11 @@ void BTM_BleReadPhy(const RawAddress& bd_addr,
    return;
    return;
  }
  }


  // checking if local controller supports it!
  // The connection PHY is always LE_1M when the controller supports
  // neither LE_2M nor LE_CODED PHYs.
  if (!bluetooth::shim::GetController()->SupportsBle2mPhy() &&
  if (!bluetooth::shim::GetController()->SupportsBle2mPhy() &&
      !bluetooth::shim::GetController()->SupportsBleCodedPhy()) {
      !bluetooth::shim::GetController()->SupportsBleCodedPhy()) {
    log::error("request not supported in local controller!");
    cb.Run(1, 1, HCI_SUCCESS);
    cb.Run(0, 0, GATT_REQ_NOT_SUPPORTED);
    return;
    return;
  }
  }