From: Johan Hedberg Date: Thu, 11 Dec 2014 19:45:46 +0000 (+0200) Subject: Bluetooth: Fix notifying mgmt power off before flushing connection list X-Git-Tag: omap-for-v3.19/fixes-rc1~39^2~17^2~6^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1aeb9c651c06282e84c33eb838d1069582879af8;p=pandora-kernel.git Bluetooth: Fix notifying mgmt power off before flushing connection list This patch moves the mgmt_powered() notification earlier in the hci_dev_do_close() function. This way the correct "not powered" error gets passed to any pending mgmt commands. Without the patch the pending commands would instead get a misleading "disconnected" response when powering down the adapter. Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed