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

Commit 2c4b41a6 authored by Jakub Pawłowski's avatar Jakub Pawłowski Committed by Gerrit Code Review
Browse files

Merge "Fix bad encryption status logged" into main

parents 0b588783 186ad889
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -3241,8 +3241,9 @@ void btm_sec_encrypt_change(uint16_t handle, tHCI_STATUS status, uint8_t encr_en
    }
  }

  const bool is_encrypted =
          p_dev_rec->sec_rec.is_le_device_encrypted() || p_dev_rec->sec_rec.is_device_encrypted();
  const bool is_encrypted = (transport == BT_TRANSPORT_LE)
                                    ? p_dev_rec->sec_rec.is_le_device_encrypted()
                                    : p_dev_rec->sec_rec.is_device_encrypted();
  BTM_LogHistory(
          kBtmLogTag,
          (transport == BT_TRANSPORT_LE) ? p_dev_rec->ble.pseudo_addr : p_dev_rec->bd_addr,