]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix stand-alone HCI command handling
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 5 Mar 2013 18:37:47 +0000 (20:37 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Fri, 8 Mar 2013 13:40:26 +0000 (10:40 -0300)
commitaa96d725a4804807251bd76c4f7694d6095f91b1
tree3b22e42a6ffd636a94e97c3b86b0fc72b62c0df0
parent4600b3642ab8aee282a5b4985b6f84268430e2cd
Bluetooth: Fix stand-alone HCI command handling

To have a consistent content for hdev->cmd_q all entries need to follow
the semantics of asynchronous HCI requests. This means that even single
commands need to be dressed as requests by having a request start
indicator. This patch adds these indicators to the two places needing
it (hci_send_cmd and hci_sock_sendmsg).

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/hci_core.c
net/bluetooth/hci_sock.c