diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-13 09:59:33 -0500 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-15 07:28:07 -0500 |
commit | e70bb2e89959983aebcfce28f645a1104ffa9ab2 (patch) | |
tree | 721c67618b45cce0d6adc610f59589d5ef9bc816 /include | |
parent | 9ab875affbe61b2c88685c342461c9a367ab7a3e (diff) |
Bluetooth: Implement Read Supported Commands commands for mgmt
This patch implements the Read Supported Commands mgmt command which was
recently added to the API specification. It returns a list of supported
commands and events to user space.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/bluetooth/mgmt.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h index 5b5edeed59e2..255a99600f08 100644 --- a/include/net/bluetooth/mgmt.h +++ b/include/net/bluetooth/mgmt.h | |||
@@ -63,6 +63,13 @@ struct mgmt_rp_read_version { | |||
63 | __le16 revision; | 63 | __le16 revision; |
64 | } __packed; | 64 | } __packed; |
65 | 65 | ||
66 | #define MGMT_OP_READ_COMMANDS 0x0002 | ||
67 | struct mgmt_rp_read_commands { | ||
68 | __le16 num_commands; | ||
69 | __le16 num_events; | ||
70 | __le16 opcodes[0]; | ||
71 | } __packed; | ||
72 | |||
66 | #define MGMT_OP_READ_INDEX_LIST 0x0003 | 73 | #define MGMT_OP_READ_INDEX_LIST 0x0003 |
67 | struct mgmt_rp_read_index_list { | 74 | struct mgmt_rp_read_index_list { |
68 | __le16 num_controllers; | 75 | __le16 num_controllers; |