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

Commit e4e61fa2 authored by Himanshu Rawat's avatar Himanshu Rawat Committed by Gerrit Code Review
Browse files

Merge "Set LE link as authenticated if encrypted with authenticated LTK" into main

parents a0107bdf daa3454c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -3397,7 +3397,10 @@ void btm_sec_encrypt_change(uint16_t handle, tHCI_STATUS status,
          p_dev_rec->sec_flags |= BTM_SEC_16_DIGIT_PIN_AUTHED;
        }
      } else if (p_dev_rec->ble_hci_handle == handle) {  // BLE
        p_dev_rec->sec_flags |= BTM_SEC_LE_ENCRYPTED;
        p_dev_rec->set_le_device_encrypted();
        if (p_dev_rec->is_le_link_key_authenticated()) {
            p_dev_rec->set_le_device_authenticated();
        }
      } else {
        LOG_ERROR(
            "Received encryption change for unknown device handle:0x%04x "