]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Introduce user channel flag for HCI devices
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 27 Aug 2013 04:40:51 +0000 (21:40 -0700)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 16 Sep 2013 17:35:55 +0000 (14:35 -0300)
commit9be7a56791a1627d2731a9587f5b4423fb4f2ed6
tree849bd355b3451bbf6a1b3b7b01fa11ce3c09e153
parent782aab475a0ca202cb933b0a81cf3dfb8f54a15f
Bluetooth: Introduce user channel flag for HCI devices

This patch introduces a new user channel flag that allows to give full
control of a HCI device to a user application. The kernel will stay away
from the device and does not allow any further modifications of the
device states.

The existing raw flag is not used since it has a bit of unclear meaning
due to its legacy. Using a new flag makes the code clearer.

A device with the user channel flag set can still be enumerate using the
legacy API, but it does not longer enumerate using the new management
interface used by BlueZ 5 and beyond. This is intentional to not confuse
users of modern systems.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
include/net/bluetooth/hci.h
net/bluetooth/hci_core.c
net/bluetooth/hci_sock.c
net/bluetooth/mgmt.c