]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Make hci_send_to_sock usable for management control sockets
authorJohan Hedberg <johan.hedberg@nokia.com>
Tue, 7 Dec 2010 22:21:07 +0000 (00:21 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Wed, 8 Dec 2010 01:03:39 +0000 (23:03 -0200)
commit6924c79fafbf9863455459823d131c0b123465c5
tree30c0242aea1c7a5acdaab1e7a4493ff5245e98fa
parentf30bc087dd3e06644c2d4e3f9dd52460ba5ea122
Bluetooth: Make hci_send_to_sock usable for management control sockets

In order to send data to management control sockets the function should:

  - skip checks intended for raw HCI data and stack internal events
  - make sure RAW HCI data or stack internal events don't go to
    management control sockets

In order to accomplish this the patch adds a new member to the bluetooth
skb private data to flag skb's that are destined for management control
sockets.

Signed-off-by: Johan Hedberg <johan.hedberg@nokia.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
include/net/bluetooth/bluetooth.h
net/bluetooth/hci_sock.c