• Andre Guedes's avatar
    Bluetooth: Fix HCI request framework · 33720450
    Andre Guedes authored
    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: default avatarAndre Guedes <andre.guedes@openbossa.org>
    Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
    33720450
hci_event.c 88.9 KB