Bluetooth: Add le_scan_restart work for LE scan restarting
commit2d28cfe7aada495f87bb439151e9bcc86998fb6d
authorJakub Pawlowski <jpawlowski@google.com>
Mon, 2 Feb 2015 07:07:54 +0000 (1 23:07 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 2 Feb 2015 07:52:33 +0000 (2 08:52 +0100)
tree732485826c4bf96c215fc716926e9a31809b5c69
parent3251ca334bcc379b4685bf6850bf38db365cbe6f
Bluetooth: Add le_scan_restart work for LE scan restarting

Currently there is no way to restart le scan, and it's needed in
service scan method. The way it work: it disable, and then enable le
scan on controller.

During the restart, we must remember when the scan was started, and
it's duration, to later re-schedule the le_scan_disable work, that was
stopped during the stop scan phase.

Signed-off-by: Jakub Pawlowski <jpawlowski@google.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c
net/bluetooth/mgmt.c