diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 0aa3924066298333ca1fa360472812b49c696a42..25ed6d3de4109b0b73c9d6f51b8fcbafbe86c792 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -5306,6 +5306,7 @@ void hci_update_background_scan(struct hci_dev *hdev) if (!test_bit(HCI_UP, &hdev->flags) || test_bit(HCI_INIT, &hdev->flags) || test_bit(HCI_SETUP, &hdev->dev_flags) || + test_bit(HCI_AUTO_OFF, &hdev->dev_flags) || test_bit(HCI_UNREGISTER, &hdev->dev_flags)) return;