|
@@ -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);
|
|
auto_off = hci_dev_test_and_clear_flag(hdev, HCI_AUTO_OFF);
|
|
|
|
|
|
|
|
if (!auto_off && hdev->dev_type == HCI_PRIMARY &&
|
|
if (!auto_off && hdev->dev_type == HCI_PRIMARY &&
|
|
|
|
|
+ !hci_dev_test_flag(hdev, HCI_USER_CHANNEL) &&
|
|
|
hci_dev_test_flag(hdev, HCI_MGMT))
|
|
hci_dev_test_flag(hdev, HCI_MGMT))
|
|
|
__mgmt_power_off(hdev);
|
|
__mgmt_power_off(hdev);
|
|
|
|
|
|