aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/mgmt.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2011-04-27 10:29:57 -0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-04-28 01:10:04 -0300
commit314b2381a79c6bfe3ddc4ba3806ecb6aec27a3db (patch)
tree985e9c6739efa1c4190034cb699c3a518ffbbf1e /net/bluetooth/mgmt.c
parent14a53664138a8407382745bb470045d1817b7801 (diff)
downloadkernel_samsung_aries-314b2381a79c6bfe3ddc4ba3806ecb6aec27a3db.zip
kernel_samsung_aries-314b2381a79c6bfe3ddc4ba3806ecb6aec27a3db.tar.gz
kernel_samsung_aries-314b2381a79c6bfe3ddc4ba3806ecb6aec27a3db.tar.bz2
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 dbc248f..4542396 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);
+}