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

Commit 186ad889 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Fix bad encryption status logged

Obvious intention is to log change of encryption status of changed transport,
not wether encryption is enabled on any transport.

Bug: None
Test: mma -j32;
Flag: exempt, logging change
Change-Id: I238b9f214e310dec9c14bfa866d1530973ad2931
parent ce649c40
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,