Bluetooth: Add definitions for LE Encrypt command and reply
Add definitions for implementing HCI controller encryption. Change-Id: I4e919c8a081c9e61174e6b08f5b2ac088e4b1a4d Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
7a995c0a60
commit
94fc5b27c5
1 changed files with 10 additions and 0 deletions
|
@ -202,6 +202,16 @@ struct bt_hci_cp_le_set_adv_enable {
|
|||
uint8_t enable;
|
||||
} PACK_STRUCT;
|
||||
|
||||
#define BT_HCI_OP_LE_ENCRYPT BT_OP(BT_OGF_LE, 0x0017)
|
||||
struct bt_hci_cp_le_encrypt {
|
||||
uint8_t key[16];
|
||||
uint8_t plaintext[16];
|
||||
} PACK_STRUCT;
|
||||
struct bt_hci_rp_le_encrypt {
|
||||
uint8_t status;
|
||||
uint8_t enc_data[16];
|
||||
} PACK_STRUCT;
|
||||
|
||||
/* Event definitions */
|
||||
|
||||
#define BT_HCI_EVT_DISCONN_COMPLETE 0x05
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue