aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorAndre Guedes <andre.guedes@openbossa.org>2011-06-30 18:20:52 -0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-07-06 18:10:27 -0400
commit971e3a4bbcbf7378315b85150853d86be59cffe0 (patch)
tree4c93a5a8411893e4b21522eca4b28f532e9bbe41 /include/net
parent02f1b641060486df8eecd66b060ae6551f398593 (diff)
Bluetooth: Add extfeatures to struct hci_dev
This new field holds the extended LMP features value. Some LE mechanism such as discovery procedure needs to read the extended LMP features to work properly. Signed-off-by: Andre Guedes <andre.guedes@openbossa.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/bluetooth/hci.h4
-rw-r--r--include/net/bluetooth/hci_core.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index 65345cd215be..741a2d658ad4 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -216,6 +216,7 @@ enum {
216 216
217#define LMP_LSTO 0x01 217#define LMP_LSTO 0x01
218#define LMP_INQ_TX_PWR 0x02 218#define LMP_INQ_TX_PWR 0x02
219#define LMP_EXTFEATURES 0x80
219 220
220/* Connection modes */ 221/* Connection modes */
221#define HCI_CM_ACTIVE 0x0000 222#define HCI_CM_ACTIVE 0x0000
@@ -676,6 +677,9 @@ struct hci_rp_read_local_features {
676} __packed; 677} __packed;
677 678
678#define HCI_OP_READ_LOCAL_EXT_FEATURES 0x1004 679#define HCI_OP_READ_LOCAL_EXT_FEATURES 0x1004
680struct hci_cp_read_local_ext_features {
681 __u8 page;
682} __packed;
679struct hci_rp_read_local_ext_features { 683struct hci_rp_read_local_ext_features {
680 __u8 status; 684 __u8 status;
681 __u8 page; 685 __u8 page;
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 90d81f9b19a2..eb7fe99979e1 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -113,6 +113,7 @@ struct hci_dev {
113 __u8 major_class; 113 __u8 major_class;
114 __u8 minor_class; 114 __u8 minor_class;
115 __u8 features[8]; 115 __u8 features[8];
116 __u8 extfeatures[8];
116 __u8 commands[64]; 117 __u8 commands[64];
117 __u8 ssp_mode; 118 __u8 ssp_mode;
118 __u8 hci_ver; 119 __u8 hci_ver;