linux/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
..
bnep Bluetooth: bnep: Fix deadlock in session deletion 2011-08-11 19:50:27 -03:00
cmtp Bluetooth: cmtp: Fix session cleanup on failed conn add 2011-08-11 19:50:28 -03:00
hidp Bluetooth: hidp: Add support for NO_INIT_REPORTS quirk 2011-09-21 12:58:12 -03:00
rfcomm Bluetooth: rfcomm: Fix lost wakeups waiting to accept socket 2011-08-11 19:50:26 -03:00
Kconfig bluetooth: uses crypto interfaces, select CRYPTO 2011-06-27 15:09:39 -04:00
Makefile Bluetooth: Implement the first SMP commands 2011-06-13 15:11:55 -03:00
af_bluetooth.c Bluetooth: Fix lost wakeups waiting for sock state change 2011-08-11 19:50:26 -03:00
hci_conn.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2011-07-14 07:56:40 -07:00
hci_core.c Bluetooth: Add mgmt events for blacklisting 2011-09-21 12:59:15 -03:00
hci_event.c Bluetooth: Require authentication if MITM protection is requested 2011-09-21 12:58:12 -03:00
hci_sock.c Bluetooth: Add mgmt events for blacklisting 2011-09-21 12:59:15 -03:00
hci_sysfs.c Bluetooth: Add LE link type for debugfs output 2011-09-21 12:58:12 -03:00
l2cap_core.c Bluetooth: Move SMP crypto functions to a workqueue 2011-09-21 12:58:12 -03:00
l2cap_sock.c Bluetooth: Fixed wrong L2CAP Sock timer value 2011-08-11 19:50:27 -03:00
lib.c Bluetooth: Add bt_printk 2011-06-30 19:17:12 -03:00
mgmt.c Bluetooth: Add mgmt events for blacklisting 2011-09-21 12:59:15 -03:00
sco.c Bluetooth: sco: Fix lost wakeups waiting to accept socket 2011-08-11 19:50:26 -03:00
smp.c Bluetooth: Move SMP crypto functions to a workqueue 2011-09-21 12:58:12 -03:00