From 90b5964bb06142d773f67c5ca148149970f9e529 Mon Sep 17 00:00:00 2001 From: Chris Manton Date: Sat, 24 Oct 2020 14:43:31 -0700 Subject: [PATCH] Only send ReadRemoteVersionRequest in legacy mode gd acl can only accept an event for either classic or le, but not both. Bug: 166280067 Tag: #refactor Test: act.py -tc BleCocTest Change-Id: I719f09a380e7b75da7c40ffc136038ccaea90812 --- stack/btm/btm_ble_gap.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stack/btm/btm_ble_gap.cc b/stack/btm/btm_ble_gap.cc index e3780b199..b5c487b45 100644 --- a/stack/btm/btm_ble_gap.cc +++ b/stack/btm/btm_ble_gap.cc @@ -2201,7 +2201,10 @@ void btm_ble_read_remote_features_complete(uint8_t* p) { } } - btsnd_hcic_rmt_ver_req(handle); + // TODO gd can only handle classic ReadRemoteVersionRequest not le + if (!bluetooth::shim::is_gd_acl_enabled()) { + btsnd_hcic_rmt_ver_req(handle); + } } /******************************************************************************* -- 2.11.0