]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Add __hci_cmd_sync_ev function
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 3 Apr 2013 18:54:47 +0000 (21:54 +0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 4 Apr 2013 16:16:10 +0000 (19:16 +0300)
commitdca27e6f2252d953c5e51a10169bf7bd57bf09a8
tree2f79924c7a5dc4c128a9a8c45fa4671c062a0efe
parentb521b815bbb025eacef74d16b0b8db4347fa2aad
Bluetooth: Add __hci_cmd_sync_ev function

This patch adds a __hci_cmd_sync_ev function, analogous to
__hci_cmd_sync except that it also takes an event parameter to indicate
that the command completes with a special event instead of command
complete. Internally this new function takes advantage of the
hci_req_add_ev function introduced in the previous patch.

The primary expected user of this new function are the setup routines of
HCI drivers which may want to send custom commands and return only when
they have completed.

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