• Johan Hedberg's avatar
    Bluetooth: Remove unnecessary stop_scan_complete function · 81ad6fd9
    Johan Hedberg authored
    The stop_scan_complete function was used as an intermediate step before
    doing the actual connection creation. Since we're using hci_request
    there's no reason to have this extra function around, i.e. we can simply
    put both HCI commands into the same request.
    
    The single task that the intermediate function had, i.e. indicating
    discovery as stopped is now taken care of by a new
    HCI_LE_SCAN_INTERRUPTED flag which allows us to do the discovery state
    update when the stop scan command completes.
    Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
    Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    81ad6fd9
hci_event.c 98.5 KB