From: Andre Guedes Date: Tue, 30 Apr 2013 18:29:33 +0000 (-0300) Subject: Bluetooth: Update stop_discovery to use HCI request X-Git-Tag: v3.11-rc1~64^2~78^2^2~23^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e05bba6f6f8c2dca7a13fe0566742277e92df07;p=pandora-kernel.git Bluetooth: Update stop_discovery to use HCI request This patch modifies the stop_discovery function so it uses the HCI request framework. The HCI request is built according to the current discovery state (inquiry, LE scanning or name resolving) and a complete callback is register to handle the command complete event for the stop discovery command. This way, we move all stop_discovery mgmt handling code spread in hci_event.c to a single place in mgmt.c. Signed-off-by: Andre Guedes Acked-by: Johan Hedberg Signed-off-by: Gustavo Padovan --- Reading git-diff-tree failed