diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2011-04-27 10:29:57 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-04-28 00:10:04 -0400 |
commit | 314b2381a79c6bfe3ddc4ba3806ecb6aec27a3db (patch) | |
tree | 985e9c6739efa1c4190034cb699c3a518ffbbf1e /include/net | |
parent | 14a53664138a8407382745bb470045d1817b7801 (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 'include/net')
-rw-r--r-- | include/net/bluetooth/hci_core.h | 1 | ||||
-rw-r--r-- | include/net/bluetooth/mgmt.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 4093133c1283..69967e540c96 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -790,6 +790,7 @@ int mgmt_read_local_oob_data_reply_complete(u16 index, u8 *hash, u8 *randomizer, | |||
790 | int mgmt_device_found(u16 index, bdaddr_t *bdaddr, u8 *dev_class, s8 rssi, | 790 | int mgmt_device_found(u16 index, bdaddr_t *bdaddr, u8 *dev_class, s8 rssi, |
791 | u8 *eir); | 791 | u8 *eir); |
792 | int mgmt_remote_name(u16 index, bdaddr_t *bdaddr, u8 *name); | 792 | int mgmt_remote_name(u16 index, bdaddr_t *bdaddr, u8 *name); |
793 | int mgmt_discovering(u16 index, u8 discovering); | ||
793 | 794 | ||
794 | /* HCI info for socket */ | 795 | /* HCI info for socket */ |
795 | #define hci_pi(sk) ((struct hci_pinfo *) sk) | 796 | #define hci_pi(sk) ((struct hci_pinfo *) sk) |
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h index be93dd0eb962..743440615349 100644 --- a/include/net/bluetooth/mgmt.h +++ b/include/net/bluetooth/mgmt.h | |||
@@ -285,3 +285,5 @@ struct mgmt_ev_remote_name { | |||
285 | bdaddr_t bdaddr; | 285 | bdaddr_t bdaddr; |
286 | __u8 name[MGMT_MAX_NAME_LENGTH]; | 286 | __u8 name[MGMT_MAX_NAME_LENGTH]; |
287 | } __packed; | 287 | } __packed; |
288 | |||
289 | #define MGMT_EV_DISCOVERING 0x0014 | ||