From: Chris Manton Date: Sat, 24 Oct 2020 21:43:31 +0000 (-0700) Subject: Only send ReadRemoteVersionRequest in legacy mode X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=90b5964bb0;p=android-x86%2Fsystem-bt.git 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 --- 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); + } } /*******************************************************************************