Files
linux/include/net
Johan Hedberg 23bb57633d Bluetooth: Fix __hci_request synchronization for hci_open_dev
The initialization function used by hci_open_dev (hci_init_req) sends
many different HCI commands. The __hci_request function should only
return when all of these commands have completed (or a timeout occurs).
Several of these commands cause hci_req_complete to be called which
causes __hci_request to return prematurely.

This patch fixes the issue by adding a new hdev->req_last_cmd variable
which is set during the initialization procedure. The hci_req_complete
function will no longer mark the request as complete until the command
matching hdev->req_last_cmd completes.

Signed-off-by: Johan Hedberg <johan.hedberg@nokia.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
2010-12-22 22:58:07 -02:00
..
2010-09-23 14:33:39 -07:00
2010-10-17 13:49:14 -07:00
2010-09-23 14:33:39 -07:00
2010-10-16 11:13:24 -07:00
2009-11-04 05:06:25 -08:00
2010-06-03 03:21:52 -07:00
2010-06-03 03:21:52 -07:00
2009-03-21 19:06:54 -07:00
2010-10-27 11:37:31 -07:00
2010-10-27 11:37:32 -07:00
2010-10-25 13:09:44 -07:00
2009-11-04 05:06:25 -08:00
2010-09-23 14:33:39 -07:00
2010-10-27 11:37:33 -07:00
2010-04-13 01:41:33 -07:00
2010-10-25 13:09:45 -07:00
2008-06-11 21:00:38 -07:00
2010-10-27 11:37:32 -07:00
2010-09-23 14:33:39 -07:00
2010-06-03 03:21:52 -07:00
2009-12-26 20:46:28 -08:00
2010-06-03 03:21:52 -07:00
2010-06-03 03:21:52 -07:00
2010-10-25 14:18:27 -07:00
2009-01-06 11:38:15 -07:00
2010-06-23 12:58:40 -07:00
2009-11-20 15:35:04 -08:00
2009-03-21 19:06:50 -07:00
2009-11-04 05:06:25 -08:00
2009-07-26 19:11:14 -07:00
2010-10-21 03:09:45 -07:00
2010-06-30 13:31:19 -07:00
2010-10-25 14:18:28 -07:00
2008-07-05 21:25:39 -07:00
2010-10-21 16:05:41 +02:00
2009-10-07 16:39:43 -04:00
2010-10-27 11:37:32 -07:00