Bluetooth: Add class of device control to the management interface
authorJohan Hedberg <johan.hedberg@nokia.com>
Thu, 13 Jan 2011 19:56:52 +0000 (21:56 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Tue, 8 Feb 2011 03:40:06 +0000 (01:40 -0200)
commit1aff6f09491f454d4cd9f405c783fa5e9d3168a0
tree3c51a386ada638e39bf6fa42dbc35413ede08ddd
parentd5859e22cd40b73164b3e5d8d5d796f96edcc6af
Bluetooth: Add class of device control to the management interface

This patch adds the possibility for user space to fully control the
Class of Device value of local adapters. To control the service class
bits each UUID that's added comes with a service class "hint" which acts
as a mask of bits that the UUID needs to have enabled. The
set_service_cache management command is used to make sure we queue up
all UUID changes as user space initializes its drivers and then send a
single HCI_Write_Class_of_Device command when initialization is
complete.

Signed-off-by: Johan Hedberg <johan.hedberg@nokia.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
include/net/bluetooth/hci.h
include/net/bluetooth/hci_core.h
include/net/bluetooth/mgmt.h
net/bluetooth/mgmt.c