From 50acbef970c9998c680222091693b42016f8c86a Mon Sep 17 00:00:00 2001 From: Chris Manton Date: Fri, 25 Sep 2020 12:53:32 -0700 Subject: [PATCH] Restore Le transport for SetPhy function Bug: 163134718 Tag: #refactor Test: ble paired 2 phones Test: act.py -tc BleCocTest Change-Id: I5952932176fdd1392142eb3a3df9e2f4f0e94dab --- stack/btm/btm_ble.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stack/btm/btm_ble.cc b/stack/btm/btm_ble.cc index 8c8aa19a9..1ac7fa253 100644 --- a/stack/btm/btm_ble.cc +++ b/stack/btm/btm_ble.cc @@ -805,7 +805,7 @@ void BTM_BleSetPhy(const RawAddress& bd_addr, uint8_t tx_phys, uint8_t rx_phys, return bluetooth::shim::BTM_BleSetPhy(bd_addr, tx_phys, rx_phys, phy_options); } - if (!BTM_IsAclConnectionUp(bd_addr, BT_TRANSPORT_BR_EDR)) { + if (!BTM_IsAclConnectionUp(bd_addr, BT_TRANSPORT_LE)) { BTM_TRACE_ERROR("%s: Wrong mode: no LE link exist or LE not supported", __func__); return; @@ -820,7 +820,7 @@ void BTM_BleSetPhy(const RawAddress& bd_addr, uint8_t tx_phys, uint8_t rx_phys, "= 0x%04x", __func__, all_phys, tx_phys, rx_phys, phy_options); - uint16_t handle = acl_get_hci_handle_for_hcif(bd_addr, BT_TRANSPORT_BR_EDR); + uint16_t handle = acl_get_hci_handle_for_hcif(bd_addr, BT_TRANSPORT_LE); // checking if local controller supports it! if (!controller_get_interface()->supports_ble_2m_phy() && -- 2.11.0