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 00:10:04 -0400
commit314b2381a79c6bfe3ddc4ba3806ecb6aec27a3db (patch)
tree985e9c6739efa1c4190034cb699c3a518ffbbf1e /net/bluetooth/mgmt.c
parent14a53664138a8407382745bb470045d1817b7801 (diff)
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 dbc248f27b1..4542396fc85 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)
2149 2149
2150 return mgmt_event(MGMT_EV_REMOTE_NAME, index, &ev, sizeof(ev), NULL); 2150 return mgmt_event(MGMT_EV_REMOTE_NAME, index, &ev, sizeof(ev), NULL);
2151} 2151}
2152
2153int mgmt_discovering(u16 index, u8 discovering)
2154{
2155 return mgmt_event(MGMT_EV_DISCOVERING, index, &discovering,
2156 sizeof(discovering), NULL);
2157}