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

Commit 06014c2c authored by Dmitry Shmidt's avatar Dmitry Shmidt Committed by Automerger Merge Worker
Browse files

Merge "bt: Fix acl_ble_is_role_central() removal" am: 5d186ded am: 7cf7674a am: b7f60ce3

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5d3115f7cae2a63e46c80626769045d650ad1712
parents 064fb1a3 b7f60ce3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -318,7 +318,9 @@ tGATT_STATUS gatts_db_read_attr_value_by_type(
        (type.As16Bit() == GATT_UUID_GAP_DEVICE_NAME)) {
      if ((flag & (BTM_SEC_LINK_KEY_KNOWN | BTM_SEC_FLAG_ENCRYPTED)) ==
          BTM_SEC_LINK_KEY_KNOWN) {
        if (acl_ble_is_role_central(tcb.peer_bda)) {
        uint8_t role = HCI_ROLE_UNKNOWN;
        BTM_GetRole(tcb.peer_bda, &role);
        if (role == HCI_ROLE_CENTRAL) {
          btm_ble_set_encryption(tcb.peer_bda, BTM_BLE_SEC_ENCRYPT,
                                 HCI_ROLE_CENTRAL);
        }