diff --git a/system/stack/acl/btm_acl.cc b/system/stack/acl/btm_acl.cc index 3bc256ff4f2127d56d1ae2486c14164336649fb3..05130f4fab870df9c101df7e31b1eb7e1d29ec17 100644 --- a/system/stack/acl/btm_acl.cc +++ b/system/stack/acl/btm_acl.cc @@ -2346,7 +2346,7 @@ bool acl_peer_supports_sniff_subrating(const RawAddress& remote_bda) { } bool acl_peer_supports_ble_connection_subrating(const RawAddress& remote_bda) { - tACL_CONN* p_acl = internal_.btm_bda_to_acl(remote_bda, BT_TRANSPORT_BR_EDR); + tACL_CONN* p_acl = internal_.btm_bda_to_acl(remote_bda, BT_TRANSPORT_LE); if (p_acl == nullptr) { LOG_WARN("Unable to find active acl"); return false; @@ -2361,7 +2361,7 @@ bool acl_peer_supports_ble_connection_subrating(const RawAddress& remote_bda) { bool acl_peer_supports_ble_connection_subrating_host( const RawAddress& remote_bda) { - tACL_CONN* p_acl = internal_.btm_bda_to_acl(remote_bda, BT_TRANSPORT_BR_EDR); + tACL_CONN* p_acl = internal_.btm_bda_to_acl(remote_bda, BT_TRANSPORT_LE); if (p_acl == nullptr) { LOG_WARN("Unable to find active acl"); return false; diff --git a/system/stack/l2cap/l2c_ble.cc b/system/stack/l2cap/l2c_ble.cc index b220af99cb6b1a88f5513d441936b904c1aa9fc4..101c7ec44a2e5acf9dddc9341d47f13affadd4f7 100644 --- a/system/stack/l2cap/l2c_ble.cc +++ b/system/stack/l2cap/l2c_ble.cc @@ -1793,8 +1793,7 @@ static void l2cble_start_subrate_change(tL2C_LCB* p_lcb) { return; } - if (!controller_get_interface()->supports_ble_connection_subrating_host() || - !controller_get_interface()->supports_ble_connection_subrating() || + if (!controller_get_interface()->supports_ble_connection_subrating() || !acl_peer_supports_ble_connection_subrating(p_lcb->remote_bd_addr) || !acl_peer_supports_ble_connection_subrating_host(p_lcb->remote_bd_addr)) { L2CAP_TRACE_DEBUG(