X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=net%2Fbluetooth%2Fhci_core.c;h=3ac89e9ace71556c66804b19e8dde8d397eb308f;hb=d8ea757b25ec82687c497fc90aa83f9bcea24b5b;hp=ddf8432fe8fb9a3fe4fd903573cc3355d1a4732b;hpb=4305f42401b29e2e024bd064618faf25aef5cb69;p=cascardo%2Flinux.git diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index ddf8432fe8fb..3ac89e9ace71 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -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);