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

Commit 023899eb authored by Android Build Merger (Role)'s avatar Android Build Merger (Role)
Browse files

[automerger] DO NOT MERGE Send HCI Read Encryption Key properly am: 438875c6...

[automerger] DO NOT MERGE Send HCI Read Encryption Key properly am: 438875c6 am: d79ad825 am: 4c122b27 am: 209aa50c

Change-Id: I1f9eb6a5010e8ffef7b7e0912b7f6ce81067ccec
parents 03ed5265 209aa50c
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -1360,9 +1360,12 @@ BOOLEAN btsnd_hcic_read_encryption_key_size(UINT16 handle) {
    BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE);
    BT_HDR *p = (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE);
    UINT8 *pp = (UINT8 *)(p + 1);
    UINT8 *pp = (UINT8 *)(p + 1);


    p->len    = HCIC_PREAMBLE_SIZE + 2;
    p->len    = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE;
    p->offset = 0;
    p->offset = 0;


    UINT16_TO_STREAM (pp, HCI_READ_ENCR_KEY_SIZE);
    UINT8_TO_STREAM  (pp, HCIC_PARAM_SIZE_CMD_HANDLE);

    UINT16_TO_STREAM (pp, handle);
    UINT16_TO_STREAM (pp, handle);


    btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID,  p);
    btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID,  p);