summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/mgmt.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2011-04-27 16:29:57 +0200
committerGustavo F. Padovan <padovan@profusion.mobi>2011-04-28 06:10:04 +0200
commit314b2381a79c6bfe3ddc4ba3806ecb6aec27a3db (patch)
tree985e9c6739efa1c4190034cb699c3a518ffbbf1e /net/bluetooth/mgmt.c
parentBluetooth: Add basic discovery commands to the management interface (diff)
downloadlinux-314b2381a79c6bfe3ddc4ba3806ecb6aec27a3db.tar.xz
linux-314b2381a79c6bfe3ddc4ba3806ecb6aec27a3db.zip
Bluetooth: Add discovering event to the Management interface
This patch adds a new event to the Management interface to track when local adapters are discovering remote devices. For now this only tracks BR/EDR discovery procedures. Signed-off-by: Johan Hedberg <johan.hedberg@nokia.com> Signed-off-by: Anderson Briglia <anderson.briglia@openbossa.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r--net/bluetooth/mgmt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index dbc248f27b1b..4542396fc856 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -2149,3 +2149,9 @@ int mgmt_remote_name(u16 index, bdaddr_t *bdaddr, u8 *name)
return mgmt_event(MGMT_EV_REMOTE_NAME, index, &ev, sizeof(ev), NULL);
}
+
+int mgmt_discovering(u16 index, u8 discovering)
+{
+ return mgmt_event(MGMT_EV_DISCOVERING, index, &discovering,
+ sizeof(discovering), NULL);
+}