From: Johan Hedberg Date: Thu, 10 Jan 2013 12:54:09 +0000 (+0200) Subject: Bluetooth: Fix returning proper command status for start_discovery X-Git-Tag: v3.9-rc1~139^2~2^2^2~42^2~49^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04106755763f558886a631338d12546345bae6e9;p=pandora-kernel.git Bluetooth: Fix returning proper command status for start_discovery Management commands should whenever possible fail with proper command status or command complete events. This patch fixes the mgmt_start_discovery command to do this for the failure cases where an incorrect parameter value was passed to it ("not supported" if the parameter value was valid but the controller doesn't support it and "invalid params" if it isn't valid at all). Signed-off-by: Johan Hedberg Acked-by: Marcel Holtmann Signed-off-by: Gustavo Padovan --- Reading git-diff-tree failed