DivestOS/Patches/LineageOS-17.1/android_system_bt/403311.patch
Tavi 782f2e1dde
17.1: Reconcile picks
gains 10 Bluetooth patches + some corrections

Signed-off-by: Tavi <tavi@divested.dev>
2024-10-16 20:00:43 -04:00

41 lines
1.5 KiB
Diff

From 0690014ef4e8b810871c91372d61fd59f2f2f60e Mon Sep 17 00:00:00 2001
From: Chris Manton <cmanton@google.com>
Date: Fri, 1 Jan 2021 19:11:49 -0800
Subject: [PATCH] Add tACL_CONN::SupportsSecureConnections
Towards encapsulation
Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host
Change-Id: I4ede2886aa5d90bfab8fccea5edaed70ad1514e7
---
stack/btm/btm_int_types.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/stack/btm/btm_int_types.h b/stack/btm/btm_int_types.h
index a5bd894abd..3ca1182d54 100644
--- a/stack/btm/btm_int_types.h
+++ b/stack/btm/btm_int_types.h
@@ -578,7 +578,19 @@ typedef struct {
uint8_t sm4; /* BTM_SM4_TRUE, if the peer supports SM4 */
tBTM_IO_CAP rmt_io_caps; /* IO capability of the peer device */
tBTM_AUTH_REQ rmt_auth_req; /* the auth_req flag as in the IO caps rsp evt */
+
bool remote_supports_secure_connections;
+ friend void btm_sec_set_peer_sec_caps(uint16_t hci_handle, bool ssp_supported,
+ bool sc_supported,
+ bool hci_role_switch_supported,
+ bool br_edr_supported,
+ bool le_supported);
+
+ public:
+ bool SupportsSecureConnections() const {
+ return remote_supports_secure_connections;
+ }
+
bool remote_features_needed; /* set to true if the local device is in */
/* "Secure Connections Only" mode and it receives */
/* HCI_IO_CAPABILITY_REQUEST_EVT from the peer before */