Re: [PATCH v2 3/4] Bluetooth: Add support for custom event terminated commands

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Johan,

> 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@xxxxxxxxx>
> ---
> include/net/bluetooth/bluetooth.h |    1 +
> include/net/bluetooth/hci_core.h  |    2 ++
> net/bluetooth/hci_core.c          |   10 +++++++++-
> net/bluetooth/hci_event.c         |   11 ++++++++++-
> 4 files changed, 22 insertions(+), 2 deletions(-)

Acked-by: Marcel Holtmann <marcel@xxxxxxxxxxxx>

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux