linux/include/net/bluetooth
Antti Julku 5e762444b0 Bluetooth: Add mgmt events for blacklisting
Add management interface events for blocking/unblocking a device.
Sender of the block device command gets cmd complete and other
mgmt sockets get the event. Event is also sent to mgmt sockets when
blocking is done with ioctl, e.g when blocking a device with
hciconfig. This makes it possible for bluetoothd to track status
of blocked devices when a third party block or unblocks a device.

Event sending is handled in mgmt_device_blocked function which gets
called from hci_blacklist_add in hci_core.c. A pending command is
added in mgmt_block_device, so that it can found when sending the
event - the event is not sent to the socket from which the pending
command came. Locks were moved out from hci_core.c to hci_sock.c
and mgmt.c, because locking is needed also for mgmt_pending_add in
mgmt.c.

Signed-off-by: Antti Julku <antti.julku@nokia.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
2011-09-21 12:59:15 -03:00
..
bluetooth.h Bluetooth: Add support for returning the encryption key size 2011-07-08 18:39:31 -03:00
hci_core.h Bluetooth: Add mgmt events for blacklisting 2011-09-21 12:59:15 -03:00
hci.h Bluetooth: Add mgmt command for fast connectable mode 2011-09-21 12:58:12 -03:00
l2cap.h Bluetooth: Move SMP fields to a separate structure 2011-09-21 12:58:12 -03:00
mgmt.h Bluetooth: Add mgmt events for blacklisting 2011-09-21 12:59:15 -03:00
rfcomm.h Bluetooth: Clean up some code style issues 2011-06-09 16:33:28 -03:00
sco.h Bluetooth: clean up legal text 2010-12-01 21:04:43 -02:00
smp.h Bluetooth: Move SMP crypto functions to a workqueue 2011-09-21 12:58:12 -03:00