Bluetooth: Fix HCI request framework
authorAndre Guedes <andre.guedes@openbossa.org>
Wed, 27 Mar 2013 23:04:55 +0000 (20:04 -0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 4 Apr 2013 08:12:33 +0000 (11:12 +0300)
commit33720450bb811a0cec1f0147bf8a1801113fa94d
tree1b7e518959f0c0cff850569c2ed40d5084535e80
parent0fc110f4e4f569e12c472f73f0af485e05631403
Bluetooth: Fix HCI request framework

Some HCI commands don't send a Command Complete Event once the HCI
command has completed so they require some special handling from the
HCI request framework. These HCI commands, however, send a Command
Status Event to indicate that the command has been received, and
that the controller is currently performing the task for the command.

So, in order to properly handle those HCI commands, the HCI request
framework should consider the HCI command has completed once the
Command Status Event is received.

This way, we fix some issues regarding the Inquiry command support,
as well as add support for all those HCI commands which would require
some special handling from the HCI request framework.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/hci_event.c