Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd69508d authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

gd_acl_shim: Wrap remote version check am: 20fff8ce am: 281ad206

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1491499

Change-Id: Ic358a057c3b2f76a5746ded1bc652bbcb8668cb3
parents 49a09088 281ad206
Loading
Loading
Loading
Loading
+16 −13
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@
#include "btif_storage.h"
#include "device/include/interop.h"
#include "internal_include/bt_target.h"
#include "main/shim/shim.h"
#include "osi/include/log.h"
#include "stack/btm/btm_dev.h"
#include "stack/btm/btm_int.h"
@@ -174,6 +175,7 @@ void smp_send_app_cback(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) {
                remote_lmp_version);
          }

          if (!bluetooth::shim::is_gd_acl_enabled()) {
            if (!p_cb->secure_connections_only_mode_required &&
                (!(p_cb->loc_auth_req & SMP_SC_SUPPORT_BIT) ||
                 remote_lmp_version < HCI_PROTO_VERSION_4_2 ||
@@ -188,6 +190,7 @@ void smp_send_app_cback(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) {
            if (remote_lmp_version < HCI_PROTO_VERSION_5_0) {
              p_cb->loc_auth_req &= ~SMP_H7_SUPPORT_BIT;
            }
          }

          LOG_DEBUG(
              "Remote request IO capabilities postcondition auth_req: 0x%02x,"