diff options
-rw-r--r-- | net/bluetooth/hci_core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index f575abdf2b4e..f82a6cf1aaa8 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c | |||
@@ -5465,8 +5465,7 @@ void hci_update_background_scan(struct hci_dev *hdev) | |||
5465 | 5465 | ||
5466 | hci_req_init(&req, hdev); | 5466 | hci_req_init(&req, hdev); |
5467 | 5467 | ||
5468 | if (!test_bit(HCI_CONNECTABLE, &hdev->dev_flags) && | 5468 | if (list_empty(&hdev->pend_le_conns) && |
5469 | list_empty(&hdev->pend_le_conns) && | ||
5470 | list_empty(&hdev->pend_le_reports)) { | 5469 | list_empty(&hdev->pend_le_reports)) { |
5471 | /* If there is no pending LE connections or devices | 5470 | /* If there is no pending LE connections or devices |
5472 | * to be scanned for, we should stop the background | 5471 | * to be scanned for, we should stop the background |