Bluetooth: Refactor HCI command skb creation
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 5 Mar 2013 18:37:45 +0000 (20:37 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Fri, 8 Mar 2013 13:40:26 +0000 (10:40 -0300)
commit1ca3a9d06e87e09d2f852397f1fbf7c442c921b5
treeace541f7bc9f195853064c9e50d2512b2fb01e9b
parent3119ae9599e5cdc1b9838563905c500b582ab6a5
Bluetooth: Refactor HCI command skb creation

This patch moves out the skb creation from hci_send_cmd() into its own
prepare_cmd() function. This is essential so the same prepare_cmd()
function can be easily reused for skb creation for asynchronous HCI
requests.

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