]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
Bluetooth: Add support for custom event terminated commands
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 3 Apr 2013 18:50:29 +0000 (21:50 +0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 4 Apr 2013 16:16:08 +0000 (19:16 +0300)
commit02350a725f5bc44490c30a10e7e04a12a5ecd406
tree243d09f74edf36d79d50db5d470d340c733f38b1
parent75e84b7c522c6e07964cd1f5bf28535768a1e9fa
Bluetooth: Add support for custom event terminated commands

This patch adds support for having commands within HCI requests that do
not result in a command complete but some other event. This is at least
needed for some vendor specific commands to be issued in the
hdev->setup() procecure, but might also be useful for other commands.

The way that the support is implemented is by extending the skb control
buffer to have a field to indicate that the command is expected to
terminate with a special event. After sending the command each received
event can then be compared against this field through hdev->sent_cmd.

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