Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d084329e authored by Andre Guedes's avatar Andre Guedes Committed by Gustavo Padovan
Browse files

Bluetooth: Queue adv_work on system workqueue



This patch queues hdev->adv_work on the system-wide workqueue
instead of on hdev->workqueue. This way we keep only tx/rx works
on hdev->workqueue.

Signed-off-by: default avatarAndre Guedes <andre.guedes@openbossa.org>
Acked-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent c1b9b4f4
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1054,8 +1054,7 @@ static void hci_cc_le_set_scan_enable(struct hci_dev *hdev,
	case LE_SCANNING_DISABLED:
		clear_bit(HCI_LE_SCAN, &hdev->dev_flags);

		queue_delayed_work(hdev->workqueue, &hdev->adv_work,
							ADV_CLEAR_TIMEOUT);
		schedule_delayed_work(&hdev->adv_work, ADV_CLEAR_TIMEOUT);
		break;

	default: