Bluetooth: Move Start Discovery to req_workqueue
Subsystems (2)
PATCH v2 11/12 Bluetooth: Move Start Discovery to req_workqueue
From: Johan Hedberg <[email protected]>
Since discovery also deals with LE scanning it makes sense to move it behind the same req_workqueue as other LE scanning changes. This also simplifies the logic since we do many of the actions in a synchronous manner.
Signed-off-by Johan Hedberg <[email protected]>
--- include/net/bluetooth/hci_core.h | 2 + net/bluetooth/hci_request.c | 203 +++++++++++++++++++++++++++++++++ net/bluetooth/mgmt.c | 238 ++------------------------------------- 3 files changed, 214 insertions(+), 229 deletions(-)
include/net/bluetooth/hci_core.h +2 -0
@@ -327,6 +327,7 @@ struct hci_dev {struct work_struct cmd_work;struct work_struct tx_work; +struct work_struct discov_update;struct work_struct bg_scan_update;struct delayed_work le_scan_disable;struct delayed_work le_scan_restart;
@@ -1473,6 +1474,7 @@ void mgmt_ssp_enable_complete(struct hci_dev *hdev, u8 enable, u8 status);void mgmt_set_class_of_dev_complete (struct hci_dev *hdev,u8 *dev_class,u8 status);void mgmt_set_local_name_complete (struct hci_dev *hdev,u8 *name,u8 status); +void mgmt_start_discovery_complete (struct hci_dev *hdev,u8 status);void mgmt_device_found (struct hci_dev *hdev,bdaddr_t *bdaddr,u8 link_type,u8 addr_type,u8 *dev_class,s8 rssi,u32 flags,u8 *eir,u16 eir_len,u8 *scan_rsp,u8 scan_rsp_len);
net/bluetooth/hci_request.c +203 -0
217 lines not on this page · raw message
net/bluetooth/mgmt.c +9 -229
288 lines not on this page · raw message
Signature · 1 line
2.5.0