aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/net/bluetooth/hci_core.h2
-rw-r--r--include/net/bluetooth/mgmt.h12
2 files changed, 14 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 009fa63a9048..746f8dc8aad1 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -714,6 +714,8 @@ int mgmt_powered(u16 index, u8 powered);
714int mgmt_discoverable(u16 index, u8 discoverable); 714int mgmt_discoverable(u16 index, u8 discoverable);
715int mgmt_connectable(u16 index, u8 connectable); 715int mgmt_connectable(u16 index, u8 connectable);
716int mgmt_new_key(u16 index, struct link_key *key, u8 old_key_type); 716int mgmt_new_key(u16 index, struct link_key *key, u8 old_key_type);
717int mgmt_connected(u16 index, bdaddr_t *bdaddr);
718int mgmt_disconnected(u16 index, bdaddr_t *bdaddr);
717 719
718/* HCI info for socket */ 720/* HCI info for socket */
719#define hci_pi(sk) ((struct hci_pinfo *) sk) 721#define hci_pi(sk) ((struct hci_pinfo *) sk)
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h
index 56b500a2f68c..6719e9a36613 100644
--- a/include/net/bluetooth/mgmt.h
+++ b/include/net/bluetooth/mgmt.h
@@ -162,3 +162,15 @@ struct mgmt_ev_new_key {
162 struct mgmt_key_info key; 162 struct mgmt_key_info key;
163 __u8 old_key_type; 163 __u8 old_key_type;
164} __packed; 164} __packed;
165
166#define MGMT_EV_CONNECTED 0x000B
167struct mgmt_ev_connected {
168 __le16 index;
169 bdaddr_t bdaddr;
170} __packed;
171
172#define MGMT_EV_DISCONNECTED 0x000C
173struct mgmt_ev_disconnected {
174 __le16 index;
175 bdaddr_t bdaddr;
176} __packed;