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

Commit 4c122b27 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 am: d79ad825

Change-Id: I5af312e49f6c6440ae31d8bb55d1ed3311a46e43
parents 9bcad005 d79ad825
Loading
Loading
Loading
Loading
+4 −1
Original line number 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);
    UINT8 *pp = (UINT8 *)(p + 1);

    p->len    = HCIC_PREAMBLE_SIZE + 2;
    p->len    = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CMD_HANDLE;
    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);

    btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID,  p);