diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2011-02-19 10:05:56 -0500 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-02-21 15:22:43 -0500 |
commit | e9a416b5ce0c0f93819f55d34cf6882196e9c3b2 (patch) | |
tree | d5225a0013d3e561f02fc36d89e34c0db162fcf5 /include/net/bluetooth/mgmt.h | |
parent | 366a033698266c304abd6365ea3bcaec36860328 (diff) |
Bluetooth: Add mgmt_pair_device command
This patch adds a new mgmt_pair_device which can be used to initiate a
dedicated bonding procedure. Some extra callbacks are added to the
hci_conn struct so that the pairing code can get notified of the
completion of the procedure.
Signed-off-by: Johan Hedberg <johan.hedberg@nokia.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net/bluetooth/mgmt.h')
-rw-r--r-- | include/net/bluetooth/mgmt.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h index 44ac55c85079..1d25c59be2e3 100644 --- a/include/net/bluetooth/mgmt.h +++ b/include/net/bluetooth/mgmt.h | |||
@@ -160,6 +160,18 @@ struct mgmt_cp_set_io_capability { | |||
160 | __u8 io_capability; | 160 | __u8 io_capability; |
161 | } __packed; | 161 | } __packed; |
162 | 162 | ||
163 | #define MGMT_OP_PAIR_DEVICE 0x0014 | ||
164 | struct mgmt_cp_pair_device { | ||
165 | __le16 index; | ||
166 | bdaddr_t bdaddr; | ||
167 | __u8 io_cap; | ||
168 | } __packed; | ||
169 | struct mgmt_rp_pair_device { | ||
170 | __le16 index; | ||
171 | bdaddr_t bdaddr; | ||
172 | __u8 status; | ||
173 | } __packed; | ||
174 | |||
163 | #define MGMT_EV_CMD_COMPLETE 0x0001 | 175 | #define MGMT_EV_CMD_COMPLETE 0x0001 |
164 | struct mgmt_ev_cmd_complete { | 176 | struct mgmt_ev_cmd_complete { |
165 | __le16 opcode; | 177 | __le16 opcode; |