From 7d03eec8d36847c761c65bb580e20993e7efc5a9 Mon Sep 17 00:00:00 2001 From: Arkadiusz Lichwa Date: Fri, 29 Jan 2016 11:48:32 +0100 Subject: [PATCH] Bluetooth: BR/EDR: Add HCI SSP exchange IO Capa defines Adds values to be validated during examining Secure Simple Pairing exchange IO capabilities and bond types. Change-Id: I3f25fa863b9a8a46c0a0e3c366e8b915c7db0bc7 Signed-off-by: Arkadiusz Lichwa --- include/bluetooth/hci.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/bluetooth/hci.h b/include/bluetooth/hci.h index 46af054b107..8fb8159ce5c 100644 --- a/include/bluetooth/hci.h +++ b/include/bluetooth/hci.h @@ -129,6 +129,20 @@ struct bt_hci_cmd_hdr { #define BT_HCI_LE_CONN_PARAM_REQ_PROC 0x02 #define BT_HCI_LE_SLAVE_FEATURES 0x08 +/* Bonding/authentication types */ +#define BT_HCI_NO_BONDING 0x00 +#define BT_HCI_NO_BONDING_MITM 0x01 +#define BT_HCI_DEDICATED_BONDING 0x02 +#define BT_HCI_DEDICATED_BONDING_MITM 0x03 +#define BT_HCI_GENERAL_BONDING 0x04 +#define BT_HCI_GENERAL_BONDING_MITM 0x05 + +/* I/O capabilities */ +#define BT_IO_DISPLAY_ONLY 0x00 +#define BT_IO_DISPLAY_YESNO 0x01 +#define BT_IO_KEYBOARD_ONLY 0x02 +#define BT_IO_NO_INPUT_OUTPUT 0x03 + /* Defined GAP timers */ #define BT_GAP_SCAN_FAST_INTERVAL 0x0060 /* 60 ms */ #define BT_GAP_SCAN_FAST_WINDOW 0x0030 /* 30 ms */