From: Andre Guedes Date: Wed, 27 Mar 2013 23:04:56 +0000 (-0300) Subject: Bluetooth: Fix hci_inquiry ioctl usage X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~43^2^2~62^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e13fa1e1fab479940728272b6425d343e0c0f84;p=pandora-kernel.git Bluetooth: Fix hci_inquiry ioctl usage Since the HCI request framework was properly fixed, the hci_req_sync call, in hci_inquiry, will return as soon as the HCI command completes (not the Inquiry procedure). However, in inquiry ioctl implementation, we want to sleep the user process until the inquiry procedure finishes. This patch changes hci_inquiry so, in case the HCI Inquiry command was executed successfully, it waits the HCI_INQUIRY flag to be cleared. This way, the user process will sleep until the inquiry procedure finishes. Signed-off-by: Andre Guedes Signed-off-by: Johan Hedberg --- Reading git-diff-tree failed