|
@@ -5465,8 +5465,7 @@ void hci_update_background_scan(struct hci_dev *hdev)
|
|
|
|
|
|
hci_req_init(&req, hdev);
|
|
hci_req_init(&req, hdev);
|
|
|
|
|
|
- if (!test_bit(HCI_CONNECTABLE, &hdev->dev_flags) &&
|
|
|
|
- list_empty(&hdev->pend_le_conns) &&
|
|
|
|
|
|
+ if (list_empty(&hdev->pend_le_conns) &&
|
|
list_empty(&hdev->pend_le_reports)) {
|
|
list_empty(&hdev->pend_le_reports)) {
|
|
/* If there is no pending LE connections or devices
|
|
/* If there is no pending LE connections or devices
|
|
* to be scanned for, we should stop the background
|
|
* to be scanned for, we should stop the background
|