diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2015-03-17 07:48:46 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-03-17 13:03:07 -0400 |
commit | d0f172b14afa7e0d8a19db5baa07e20b3ec8dcc8 (patch) | |
tree | 3c793723557a6e5b9d33ce65e7ac5f51064a4746 /include/net/bluetooth | |
parent | 49c989a0d6cd097f00f45e5c180bf3e315ca2bfa (diff) |
Bluetooth: Add helper to get HCI channel of a socket
We'll need to have access to which HCI channel a socket is bound to, in
order to manage pending mgmt commands in clean way. This patch adds a
helper for the purpose.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r-- | include/net/bluetooth/bluetooth.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h index d871ba313f64..33a5e00025aa 100644 --- a/include/net/bluetooth/bluetooth.h +++ b/include/net/bluetooth/bluetooth.h | |||
@@ -338,6 +338,7 @@ int bt_to_errno(__u16 code); | |||
338 | void hci_sock_set_flag(struct sock *sk, int nr); | 338 | void hci_sock_set_flag(struct sock *sk, int nr); |
339 | void hci_sock_clear_flag(struct sock *sk, int nr); | 339 | void hci_sock_clear_flag(struct sock *sk, int nr); |
340 | int hci_sock_test_flag(struct sock *sk, int nr); | 340 | int hci_sock_test_flag(struct sock *sk, int nr); |
341 | unsigned short hci_sock_get_channel(struct sock *sk); | ||
341 | 342 | ||
342 | int hci_sock_init(void); | 343 | int hci_sock_init(void); |
343 | void hci_sock_cleanup(void); | 344 | void hci_sock_cleanup(void); |