]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Send control open and close messages for HCI raw sockets
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 30 Aug 2016 03:00:39 +0000 (05:00 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 19 Sep 2016 18:19:34 +0000 (20:19 +0200)
commite26130dd8acbc5e002a38f060f46646df6389bab
treef5ef557afd1ec1600ebf3b72aa3275f368c97630
parent27c3fec730a7515baa8719bf69bac7b60165d24e
Bluetooth: Send control open and close messages for HCI raw sockets

When opening and closing HCI raw sockets their main usage is for legacy
userspace. To track interaction with the modern mgmt interface, send
open and close monitoring messages for these action.

The HCI raw sockets is special since it supports unbound ioctl operation
and for that special case delay the notification message until at least
one ioctl has been executed. The difference between a bound and unbound
socket will be detailed by the fact the HCI index is present or not.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/hci_sock.c