]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit483f9300dc8c164637f4de9c4af2aad84f1afa3a
tree7d5b7dd93801eaac90f3c8323ebf1a033349db6e
parent66f404fcbc83bb7fae3a03de4fd68982bcc98ad1
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