aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/hci.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-09-26 03:43:48 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-28 21:01:33 -0400
commit6ac59344ef25d5f0ebadb5663cf700d25d2a3886 (patch)
treeb4dbdf1589e0a7b6d3ed04d38fb7615a54f0d7af /include/net/bluetooth/hci.h
parent1143e5a6d4d69cd36d44e0184769aa2b17041a10 (diff)
[Bluetooth] Support create connection cancel command
In case of non-blocking connects it is possible that the last user of an ACL link quits before the connection has been fully established. This will lead to a race condition where the internal state of a connection is closed, but the actual link has been established and is active. In case of Bluetooth 1.2 and later devices it is possible to call create connection cancel to abort the connect. For older devices the disconnect timer will be used to trigger the needed disconnect. Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth/hci.h')
-rw-r--r--include/net/bluetooth/hci.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index 5f04181b8109..10a3eec191fd 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -297,6 +297,7 @@ struct hci_cp_host_buffer_size {
297 297
298/* Link Control */ 298/* Link Control */
299#define OGF_LINK_CTL 0x01 299#define OGF_LINK_CTL 0x01
300
300#define OCF_CREATE_CONN 0x0005 301#define OCF_CREATE_CONN 0x0005
301struct hci_cp_create_conn { 302struct hci_cp_create_conn {
302 bdaddr_t bdaddr; 303 bdaddr_t bdaddr;
@@ -307,6 +308,11 @@ struct hci_cp_create_conn {
307 __u8 role_switch; 308 __u8 role_switch;
308} __attribute__ ((packed)); 309} __attribute__ ((packed));
309 310
311#define OCF_CREATE_CONN_CANCEL 0x0008
312struct hci_cp_create_conn_cancel {
313 bdaddr_t bdaddr;
314} __attribute__ ((packed));
315
310#define OCF_ACCEPT_CONN_REQ 0x0009 316#define OCF_ACCEPT_CONN_REQ 0x0009
311struct hci_cp_accept_conn_req { 317struct hci_cp_accept_conn_req {
312 bdaddr_t bdaddr; 318 bdaddr_t bdaddr;