diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2011-01-21 13:56:35 +0200 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-02-08 01:40:07 -0200 |
commit | 2784eb41b1fbb3ff80f4921fe9dbb4c4acb6dc24 (patch) | |
tree | e13ea997be45f3d1abf5f3b4733a9da075a0410f /include | |
parent | 17d5c04cb597418a177c3ca18dfde679636dd51c (diff) | |
download | linux-2784eb41b1fbb3ff80f4921fe9dbb4c4acb6dc24.tar.gz linux-2784eb41b1fbb3ff80f4921fe9dbb4c4acb6dc24.tar.bz2 linux-2784eb41b1fbb3ff80f4921fe9dbb4c4acb6dc24.zip |
Bluetooth: Add get_connections managment interface command
This patch adds a get_connections command to the management interface.
With this command userspace can get the current list of connected
devices. Typically this command would only be used once when enumerating
existing adapters. After that the connected and disconnected events are
used to track connections.
Signed-off-by: Johan Hedberg <johan.hedberg@nokia.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/bluetooth/mgmt.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h index 1d822f2c0f1a..3d8d589fa559 100644 --- a/include/net/bluetooth/mgmt.h +++ b/include/net/bluetooth/mgmt.h @@ -130,6 +130,16 @@ struct mgmt_rp_disconnect { bdaddr_t bdaddr; } __packed; +#define MGMT_OP_GET_CONNECTIONS 0x0010 +struct mgmt_cp_get_connections { + __le16 index; +} __packed; +struct mgmt_rp_get_connections { + __le16 index; + __le16 conn_count; + bdaddr_t conn[0]; +} __packed; + #define MGMT_EV_CMD_COMPLETE 0x0001 struct mgmt_ev_cmd_complete { __le16 opcode; |