Merge tag 'fbdev-4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux
[cascardo/linux.git] / net / bluetooth / hci_core.c
index ddf8432..3ac89e9 100644 (file)
@@ -1562,6 +1562,7 @@ int hci_dev_do_close(struct hci_dev *hdev)
        auto_off = hci_dev_test_and_clear_flag(hdev, HCI_AUTO_OFF);
 
        if (!auto_off && hdev->dev_type == HCI_PRIMARY &&
+           !hci_dev_test_flag(hdev, HCI_USER_CHANNEL) &&
            hci_dev_test_flag(hdev, HCI_MGMT))
                __mgmt_power_off(hdev);