aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2015-03-14 19:27:53 -0700
committerJohan Hedberg <johan.hedberg@intel.com>2015-03-15 09:45:39 +0200
commit6befc6445ffc6868ee6e6d0e012fc149e88d96db (patch)
tree5ecf36b60d646665227c393d7e9f11a49ca11e37 /include/net
parentnet: dsa: do not use slave MII bus for fixed PHYs (diff)
downloadlinux-dev-6befc6445ffc6868ee6e6d0e012fc149e88d96db.tar.xz
linux-dev-6befc6445ffc6868ee6e6d0e012fc149e88d96db.zip
Bluetooth: Add flags field and setting function for HCI sockets
To filter out certain actions for certain HCI sockets introcuce a flags field that allows to configure specific settings on individual sockets. Since the hci_pinfo structure is private in hci_sock.c, provide helper functions for setting and clearing a given flag. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/bluetooth/bluetooth.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h
index e598ca096ec9..ae1f2ee1eaf3 100644
--- a/include/net/bluetooth/bluetooth.h
+++ b/include/net/bluetooth/bluetooth.h
@@ -335,6 +335,9 @@ out:
int bt_to_errno(__u16 code);
+void hci_sock_set_flag(struct sock *sk, int nr);
+void hci_sock_clear_flag(struct sock *sk, int nr);
+
int hci_sock_init(void);
void hci_sock_cleanup(void);