Bluetooth: Move hci_get_cmd_complete() to hci_event.c
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 2 Apr 2015 10:41:12 +0000 (13:41 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 2 Apr 2015 14:09:28 +0000 (16:09 +0200)
commit757aa0b56da5d1089c55bf349fa15836dae22b6f
tree7d5b7dd93801eaac90f3c8323ebf1a033349db6e
parentabe66a4d036933c7376b40b0d7bb5de0458331aa
Bluetooth: Move hci_get_cmd_complete() to hci_event.c

To make the hci_req_run_skb() API consistent with hci_cmd_sync_ev()
the callback should receive the cmd_complete parameters in the 'normal'
case and the full HCI event if a special event was expected. This patch
moves the hci_get_cmd_complete() function from hci_core.c to hci_event.c
where it's used to strip the skb from the needed headers before passing
it on to the callback.

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