aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2011-03-22 08:12:21 -0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-03-31 13:22:57 -0400
commitc35938b2f56547ee77b5a038fe0db394aeac59bb (patch)
tree8bb0975ce5b48bd01ca04432e3fa13ae605b60b9 /include
parent8fce6357a9e72c4c9c846f9951895954bfb34ad1 (diff)
Bluetooth: Add read_local_oob_data management command
This patch adds a command to read local OOB data to the managment interface. The command maps directly to the Read Local OOB Data HCI command. Signed-off-by: Szymon Janc <szymon.janc@tieto.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include')
-rw-r--r--include/net/bluetooth/hci.h7
-rw-r--r--include/net/bluetooth/hci_core.h2
-rw-r--r--include/net/bluetooth/mgmt.h6
3 files changed, 15 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index 1cd031cd1c4d..ac4de1afe046 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -613,6 +613,13 @@ struct hci_cp_write_ssp_mode {
613 __u8 mode; 613 __u8 mode;
614} __packed; 614} __packed;
615 615
616#define HCI_OP_READ_LOCAL_OOB_DATA 0x0c57
617struct hci_rp_read_local_oob_data {
618 __u8 status;
619 __u8 hash[16];
620 __u8 randomizer[16];
621} __packed;
622
616#define HCI_OP_READ_INQ_RSP_TX_POWER 0x0c58 623#define HCI_OP_READ_INQ_RSP_TX_POWER 0x0c58
617 624
618#define HCI_OP_READ_LOCAL_VERSION 0x1001 625#define HCI_OP_READ_LOCAL_VERSION 0x1001
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 3912c7ab717c..fd9b8a31e5b0 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -768,6 +768,8 @@ int mgmt_user_confirm_neg_reply_complete(u16 index, bdaddr_t *bdaddr,
768 u8 status); 768 u8 status);
769int mgmt_auth_failed(u16 index, bdaddr_t *bdaddr, u8 status); 769int mgmt_auth_failed(u16 index, bdaddr_t *bdaddr, u8 status);
770int mgmt_set_local_name_complete(u16 index, u8 *name, u8 status); 770int mgmt_set_local_name_complete(u16 index, u8 *name, u8 status);
771int mgmt_read_local_oob_data_reply_complete(u16 index, u8 *hash, u8 *randomizer,
772 u8 status);
771 773
772/* HCI info for socket */ 774/* HCI info for socket */
773#define hci_pi(sk) ((struct hci_pinfo *) sk) 775#define hci_pi(sk) ((struct hci_pinfo *) sk)
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h
index 89e7c82c4784..6ebb1265c36e 100644
--- a/include/net/bluetooth/mgmt.h
+++ b/include/net/bluetooth/mgmt.h
@@ -177,6 +177,12 @@ struct mgmt_cp_set_local_name {
177 __u8 name[MGMT_MAX_NAME_LENGTH]; 177 __u8 name[MGMT_MAX_NAME_LENGTH];
178} __packed; 178} __packed;
179 179
180#define MGMT_OP_READ_LOCAL_OOB_DATA 0x0018
181struct mgmt_rp_read_local_oob_data {
182 __u8 hash[16];
183 __u8 randomizer[16];
184} __packed;
185
180#define MGMT_EV_CMD_COMPLETE 0x0001 186#define MGMT_EV_CMD_COMPLETE 0x0001
181struct mgmt_ev_cmd_complete { 187struct mgmt_ev_cmd_complete {
182 __le16 opcode; 188 __le16 opcode;