From: Johan Hedberg Date: Wed, 29 May 2013 06:51:29 +0000 (+0300) Subject: Bluetooth: Fix mgmt handling of power on failures X-Git-Tag: v3.10-rc6~18^2^2^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96570ffcca0b872dc8626e97569d2697f374d868;p=pandora-kernel.git Bluetooth: Fix mgmt handling of power on failures If hci_dev_open fails we need to ensure that the corresponding mgmt_set_powered command gets an appropriate response. This patch fixes the missing response by adding a new mgmt_set_powered_failed function that's used to indicate a power on failure to mgmt. Since a situation with the device being rfkilled may require special handling in user space the patch uses a new dedicated mgmt status code for this. Signed-off-by: Johan Hedberg Cc: stable@vger.kernel.org Acked-by: Marcel Holtmann Signed-off-by: Gustavo Padovan Signed-off-by: John W. Linville --- Reading git-diff-tree failed