Bluetooth: Add structures for LE Data Length Extension feature
Subsystems (2)
Marcel Holtmann
maintainerPATCH 1/3 Bluetooth: Add structures for LE Data Length Extension feature
This patch adds the structures for HCI commands and events of the LE Data Length Extension feature from Bluetooth 4.2 specification.
Signed-off-by Marcel Holtmann <[email protected]>
--- include/net/bluetooth/hci.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+)
include/net/bluetooth/hci.h +43 -0
@@ -343,6 +343,7 @@ enum {#define HCI_LE_ENCRYPTION 0x01#define HCI_LE_CONN_PARAM_REQ_PROC 0x02#define HCI_LE_PING 0x10 +#define HCI_LE_DATA_LEN_EXT 0x20#define HCI_LE_EXT_SCAN_POLICY 0x80/* Connection modes */
@@ -1371,6 +1372,39 @@ struct hci_cp_le_conn_param_req_neg_reply {__u8 reason; } __packed; +#define HCI_OP_LE_SET_DATA_LEN 0x2022 +struct hci_cp_le_set_data_len { +__le16 handle; +__le16 tx_len; +__le16 tx_time; +} __packed; +struct hci_rp_le_set_data_len { +__u8 status; +__le16 handle; +} __packed; + +#define HCI_OP_LE_READ_DEF_DATA_LEN 0x2023 +struct hci_rp_le_read_def_data_len { +__u8 status; +__le16 tx_len; +__le16 tx_time; +} __packed; + +#define HCI_OP_LE_WRITE_DEF_DATA_LEN 0x2024 +struct hci_cp_le_write_def_data_len { +__le16 tx_len; +__le16 tx_time; +} __packed; + +#define HCI_OP_LE_READ_MAX_DATA_LEN 0x202f +struct hci_rp_le_read_max_data_len { +__u8 status; +__le16 tx_len; +__le16 tx_time; +__le16 rx_len; +__le16 rx_time; +} __packed; +/* ---- HCI Events ---- */ #define HCI_EV_INQUIRY_COMPLETE 0x01
@@ -1796,6 +1830,15 @@ struct hci_ev_le_remote_conn_param_req {__le16 timeout; } __packed; +#define HCI_EV_LE_DATA_LEN_CHANGE 0x07 +struct hci_ev_le_data_len_change { +__le16 handle; +__le16 tx_len; +__le16 tx_time; +__le16 rx_len; +__le16 rx_time; +} __packed; +#define HCI_EV_LE_DIRECT_ADV_REPORT 0x0Bstruct hci_ev_le_direct_adv_info {__u8 evt_type;
Signature · 1 line
2.1.0
Hi Marcel,
Quoted 7 lines · Marcel Holtmann
This patch adds the structures for HCI commands and events of the LE Data Length Extension feature from Bluetooth 4.2 specification.
Signed-off-by Marcel Holtmann <[email protected]>--- include/net/bluetooth/hci.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+)
All three patches in this set have been applied to bluetooth-next. Thanks.
Johan