Bluetooth: Add support for reading LE supported states
The LE supported states indicate the states and state combinations that the link layer supports. This is important information for knowing what operations are possible when dealing with multiple connected devices. This patch adds reading of the supported states to the HCI init sequence. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
This commit is contained in:

committed by
Gustavo Padovan

parent
cf1d081f65
commit
9b008c0457
@@ -1045,6 +1045,12 @@ struct hci_rp_le_ltk_neg_reply {
|
||||
__le16 handle;
|
||||
} __packed;
|
||||
|
||||
#define HCI_OP_LE_READ_SUPPORTED_STATES 0x201c
|
||||
struct hci_rp_le_read_supported_states {
|
||||
__u8 status;
|
||||
__u8 le_states[8];
|
||||
} __packed;
|
||||
|
||||
/* ---- HCI Events ---- */
|
||||
#define HCI_EV_INQUIRY_COMPLETE 0x01
|
||||
|
||||
|
@@ -154,6 +154,7 @@ struct hci_dev {
|
||||
__u8 host_features[8];
|
||||
__u8 le_features[8];
|
||||
__u8 le_white_list_size;
|
||||
__u8 le_states[8];
|
||||
__u8 commands[64];
|
||||
__u8 hci_ver;
|
||||
__u16 hci_rev;
|
||||
|
Reference in New Issue
Block a user