aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2010-12-13 14:07:05 -0500
committerGustavo F. Padovan <padovan@profusion.mobi>2010-12-22 19:57:44 -0500
commitfaba42eb2a8cf905ed26d540c3c93d429e327224 (patch)
treea9cf2411c9de333efcf1616f546865301a72615d /include/net
parent02d981292ad3149e8e5f37cffbccedab1a8576d8 (diff)
Bluetooth: Add read_index_list management command
This patch implements the read_index_list command through which userspace can get a list of current adapter indices. 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/net')
-rw-r--r--include/net/bluetooth/mgmt.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h
index d353d64bfffb..c2b4c83ab175 100644
--- a/include/net/bluetooth/mgmt.h
+++ b/include/net/bluetooth/mgmt.h
@@ -33,6 +33,12 @@ struct mgmt_rp_read_version {
33 __le16 revision; 33 __le16 revision;
34} __packed; 34} __packed;
35 35
36#define MGMT_OP_READ_INDEX_LIST 0x0003
37struct mgmt_rp_read_index_list {
38 __le16 num_controllers;
39 __le16 index[0];
40} __packed;
41
36#define MGMT_EV_CMD_COMPLETE 0x0001 42#define MGMT_EV_CMD_COMPLETE 0x0001
37struct mgmt_ev_cmd_complete { 43struct mgmt_ev_cmd_complete {
38 __le16 opcode; 44 __le16 opcode;