linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Bluetooth: Add/Remove Device completion through hci_request
@ 2014-12-19  9:23 Johan Hedberg
  2014-12-19  9:23 ` [PATCH 1/4] Bluetooth: Move struct hci_request definition higher up in hci_core.h Johan Hedberg
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Johan Hedberg @ 2014-12-19  9:23 UTC (permalink / raw)
  To: linux-bluetooth

Hi,

So far the last couple of Remove Device tests in mgmt-tester have been
randomly failing some 50% of the time, mainly because the Add/Remove
mgmt command implementation wouldn't wait for HCI command completion
before returning. This would let the tests proceed from the setup to the
test phase when there are still setup phase HCI command uncompleted.

This set of patches updates the HCI scanning functions to take a
hci_request parameter so that the completion of any HCI commands can be
hooked up to sending the mgmt response to user space.

Johan

----------------------------------------------------------------
Johan Hedberg (4):
      Bluetooth: Move struct hci_request definition higher up in hci_core.h
      Bluetooth: Add hci_request parameter to hci_update_background_scan
      Bluetooth: Fix Remove Device to wait for HCI before sending cmd_complete
      Bluetooth: Fix Add Device to wait for HCI before sending cmd_complete

 include/net/bluetooth/hci_core.h |  24 +++----
 net/bluetooth/hci_conn.c         |   2 +-
 net/bluetooth/hci_core.c         |  35 ++++++-----
 net/bluetooth/hci_event.c        |   4 +-
 net/bluetooth/mgmt.c             | 119 ++++++++++++++++++++++++++++-------
 5 files changed, 131 insertions(+), 53 deletions(-)


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2014-12-19 10:43 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-19  9:23 [PATCH 0/4] Bluetooth: Add/Remove Device completion through hci_request Johan Hedberg
2014-12-19  9:23 ` [PATCH 1/4] Bluetooth: Move struct hci_request definition higher up in hci_core.h Johan Hedberg
2014-12-19 10:00   ` Marcel Holtmann
2014-12-19 10:15     ` Johan Hedberg
2014-12-19 10:36       ` Marcel Holtmann
2014-12-19  9:23 ` [PATCH 2/4] Bluetooth: Add hci_request parameter to hci_update_background_scan Johan Hedberg
2014-12-19 10:03   ` Marcel Holtmann
2014-12-19 10:19     ` Johan Hedberg
2014-12-19 10:33       ` Marcel Holtmann
2014-12-19  9:23 ` [PATCH 3/4] Bluetooth: Fix Remove Device to wait for HCI before sending cmd_complete Johan Hedberg
2014-12-19 10:10   ` Marcel Holtmann
2014-12-19  9:23 ` [PATCH 4/4] Bluetooth: Fix Add " Johan Hedberg
2014-12-19 10:05   ` Marcel Holtmann
2014-12-19 10:13     ` Johan Hedberg
2014-12-19 10:37       ` Marcel Holtmann
2014-12-19 10:43         ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).