]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Remove unnecessary stop_scan_complete function
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 28 Feb 2014 18:26:13 +0000 (20:26 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 28 Feb 2014 18:28:17 +0000 (10:28 -0800)
commit2d35abd9e874b46a9cc7ae9208eea2d4ac991f68
treec60df62c7d343cf39dd9927f99fcd2b54e7b0785
parentab16cede6746f2c3e76db95c9f4e1615342a0e20
Bluetooth: Remove unnecessary stop_scan_complete function

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: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci.h
net/bluetooth/hci_conn.c
net/bluetooth/hci_event.c