Hi, This function is mainly intended as a helper for the hdev->setup() routine which needs to be able to wait for completion of its commands before returning (i.e. a pre-requisite is Marcel's patch set I sent yesterday). Johan ---------------------------------------------------------------- Johan Hedberg (2): Bluetooth: Track received events in hdev Bluetooth: Add __hci_cmd_sync() helper function include/net/bluetooth/hci_core.h | 5 ++ net/bluetooth/hci_core.c | 98 ++++++++++++++++++++++++++++++++++++++ net/bluetooth/hci_event.c | 8 ++++ 3 files changed, 111 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html