aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohan Hedberg <[email protected]>2010-12-13 21:07:06 +0200
committerGustavo F. Padovan <[email protected]>2010-12-22 22:57:51 -0200
commitf7b64e69c7c75c8e9f2d5e23edec8de1ce883bcc (patch)
treef13810db736718264f08717e9f0ba04fc2ac9da5 /include
parentfaba42eb2a8cf905ed26d540c3c93d429e327224 (diff)
Bluetooth: Add read_info management command
This patch implements the read_info command which is used to fetch basic info about an adapter. Signed-off-by: Johan Hedberg <[email protected]> Acked-by: Marcel Holtmann <[email protected]> Signed-off-by: Gustavo F. Padovan <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/net/bluetooth/mgmt.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h
index c2b4c83ab175..70985aacc14b 100644
--- a/include/net/bluetooth/mgmt.h
+++ b/include/net/bluetooth/mgmt.h
@@ -39,6 +39,25 @@ struct mgmt_rp_read_index_list {
__le16 index[0];
} __packed;
+#define MGMT_OP_READ_INFO 0x0004
+struct mgmt_cp_read_info {
+ __le16 index;
+} __packed;
+struct mgmt_rp_read_info {
+ __le16 index;
+ __u8 type;
+ __u8 powered;
+ __u8 discoverable;
+ __u8 pairable;
+ __u8 sec_mode;
+ bdaddr_t bdaddr;
+ __u8 dev_class[3];
+ __u8 features[8];
+ __u16 manufacturer;
+ __u8 hci_ver;
+ __u16 hci_rev;
+} __packed;
+
#define MGMT_EV_CMD_COMPLETE 0x0001
struct mgmt_ev_cmd_complete {
__le16 opcode;