diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2011-02-16 17:44:53 -0500 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-02-16 18:13:21 -0500 |
commit | 2ce603ebe1f1420c7c5b013638ec29b4fc975180 (patch) | |
tree | b315468b139f2bd7b7f8bbe45a3d32090dda01a2 /include | |
parent | 6bd32326cdaa9b14794416150c88e4832fb7e592 (diff) |
Bluetooth: Send LE Connection Update Command
If the new connection update parameter are accepted, the LE master
host sends the LE Connection Update Command to its controller informing
the new requested parameters.
Signed-off-by: Claudio Takahasi <claudio.takahasi@openbossa.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/bluetooth/hci.h | 11 | ||||
-rw-r--r-- | include/net/bluetooth/hci_core.h | 2 |
2 files changed, 13 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index 6d4e11624fef..a5f8c4684a32 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h | |||
@@ -677,6 +677,17 @@ struct hci_cp_le_create_conn { | |||
677 | 677 | ||
678 | #define HCI_OP_LE_CREATE_CONN_CANCEL 0x200e | 678 | #define HCI_OP_LE_CREATE_CONN_CANCEL 0x200e |
679 | 679 | ||
680 | #define HCI_OP_LE_CONN_UPDATE 0x2013 | ||
681 | struct hci_cp_le_conn_update { | ||
682 | __le16 handle; | ||
683 | __le16 conn_interval_min; | ||
684 | __le16 conn_interval_max; | ||
685 | __le16 conn_latency; | ||
686 | __le16 supervision_timeout; | ||
687 | __le16 min_ce_len; | ||
688 | __le16 max_ce_len; | ||
689 | } __packed; | ||
690 | |||
680 | /* ---- HCI Events ---- */ | 691 | /* ---- HCI Events ---- */ |
681 | #define HCI_EV_INQUIRY_COMPLETE 0x01 | 692 | #define HCI_EV_INQUIRY_COMPLETE 0x01 |
682 | 693 | ||
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index ecd2acf24420..7ee921d78a94 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -777,4 +777,6 @@ struct hci_sec_filter { | |||
777 | 777 | ||
778 | void hci_req_complete(struct hci_dev *hdev, __u16 cmd, int result); | 778 | void hci_req_complete(struct hci_dev *hdev, __u16 cmd, int result); |
779 | 779 | ||
780 | void hci_le_conn_update(struct hci_conn *conn, u16 min, u16 max, | ||
781 | u16 latency, u16 to_multiplier); | ||
780 | #endif /* __HCI_CORE_H */ | 782 | #endif /* __HCI_CORE_H */ |