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

Commit 646a053a authored by Jack He's avatar Jack He
Browse files

Log encryption key size

* Log result from HCI_READ_ENCR_KEY_SIZE command

Bug: 124301137
Test: test drive with statsd
Change-Id: Ifa195887284a22225a1b71d5a78a25cb8776647e
Merged-In: I6274f244a6f03d2a0054e985d7daf8104c8cdfe7
(cherry picked from commit 0e23425e)
parent 261691bf
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -792,6 +792,16 @@ static void btu_hcif_log_command_complete_metrics(uint16_t opcode,
      bluetooth::common::LogClassicPairingEvent(RawAddress::kEmpty, bluetooth::common::kUnknownConnectionHandle, opcode,
                                                hci_event, status, reason, 0);
      break;
    case HCI_READ_ENCR_KEY_SIZE: {
      uint16_t handle;
      uint8_t key_size;
      STREAM_TO_UINT8(status, p_return_params);
      STREAM_TO_UINT16(handle, p_return_params);
      STREAM_TO_UINT8(key_size, p_return_params);
      bluetooth::common::LogClassicPairingEvent(RawAddress::kEmpty, handle, opcode, hci_event, status, reason,
                                                key_size);
      break;
    }
    case HCI_LINK_KEY_REQUEST_REPLY:
    case HCI_LINK_KEY_REQUEST_NEG_REPLY:
    case HCI_IO_CAPABILITY_REQUEST_REPLY: