aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-07-14 14:13:48 -0400
committerMarcel Holtmann <marcel@holtmann.org>2008-07-14 14:13:48 -0400
commit0493684ed2397e111574f343534d8e4ec440dfa5 (patch)
treeea27e8d7ecbc197893c16b36af0ac4419264d62d /include
parentc7bdd5026d28d178238bd794c61612602a54d55e (diff)
[Bluetooth] Disable disconnect timer during Simple Pairing
During the Simple Pairing process the HCI disconnect timer must be disabled. The way to do this is by holding a reference count of the HCI connection. The Simple Pairing process on both sides starts with an IO Capabilities Request and ends with Simple Pairing Complete. Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include')
-rw-r--r--include/net/bluetooth/hci.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index efc8c555c182..79629ff40e3e 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -794,6 +794,17 @@ struct extended_inquiry_info {
794 __u8 data[240]; 794 __u8 data[240];
795} __attribute__ ((packed)); 795} __attribute__ ((packed));
796 796
797#define HCI_EV_IO_CAPA_REQUEST 0x31
798struct hci_ev_io_capa_request {
799 bdaddr_t bdaddr;
800} __attribute__ ((packed));
801
802#define HCI_EV_SIMPLE_PAIR_COMPLETE 0x36
803struct hci_ev_simple_pair_complete {
804 __u8 status;
805 bdaddr_t bdaddr;
806} __attribute__ ((packed));
807
797/* Internal events generated by Bluetooth stack */ 808/* Internal events generated by Bluetooth stack */
798#define HCI_EV_STACK_INTERNAL 0xfd 809#define HCI_EV_STACK_INTERNAL 0xfd
799struct hci_ev_stack_internal { 810struct hci_ev_stack_internal {