OSDN Git Service

Only send ReadRemoteVersionRequest in legacy mode
authorChris Manton <cmanton@google.com>
Sat, 24 Oct 2020 21:43:31 +0000 (14:43 -0700)
committerChris Manton <cmanton@google.com>
Sat, 24 Oct 2020 21:46:10 +0000 (14:46 -0700)
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

index e3780b1..b5c487b 100644 (file)
@@ -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);
+  }
 }
 
 /*******************************************************************************