diff options
| author | Johan Hedberg <johan.hedberg@nokia.com> | 2010-12-13 14:07:06 -0500 |
|---|---|---|
| committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2010-12-22 19:57:51 -0500 |
| commit | f7b64e69c7c75c8e9f2d5e23edec8de1ce883bcc (patch) | |
| tree | f13810db736718264f08717e9f0ba04fc2ac9da5 /include | |
| parent | faba42eb2a8cf905ed26d540c3c93d429e327224 (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 <johan.hedberg@nokia.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/bluetooth/mgmt.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h index c2b4c83ab17..70985aacc14 100644 --- a/include/net/bluetooth/mgmt.h +++ b/include/net/bluetooth/mgmt.h | |||
| @@ -39,6 +39,25 @@ struct mgmt_rp_read_index_list { | |||
| 39 | __le16 index[0]; | 39 | __le16 index[0]; |
| 40 | } __packed; | 40 | } __packed; |
| 41 | 41 | ||
| 42 | #define MGMT_OP_READ_INFO 0x0004 | ||
| 43 | struct mgmt_cp_read_info { | ||
| 44 | __le16 index; | ||
| 45 | } __packed; | ||
| 46 | struct mgmt_rp_read_info { | ||
| 47 | __le16 index; | ||
| 48 | __u8 type; | ||
| 49 | __u8 powered; | ||
| 50 | __u8 discoverable; | ||
| 51 | __u8 pairable; | ||
| 52 | __u8 sec_mode; | ||
| 53 | bdaddr_t bdaddr; | ||
| 54 | __u8 dev_class[3]; | ||
| 55 | __u8 features[8]; | ||
| 56 | __u16 manufacturer; | ||
| 57 | __u8 hci_ver; | ||
| 58 | __u16 hci_rev; | ||
| 59 | } __packed; | ||
| 60 | |||
| 42 | #define MGMT_EV_CMD_COMPLETE 0x0001 | 61 | #define MGMT_EV_CMD_COMPLETE 0x0001 |
| 43 | struct mgmt_ev_cmd_complete { | 62 | struct mgmt_ev_cmd_complete { |
| 44 | __le16 opcode; | 63 | __le16 opcode; |
